[SOLVED] Fatal error when building lua

Questions about applications and software
Forum rules
Before you post please read this

[SOLVED] Fatal error when building lua

Postby SadBlobfish on Sun Dec 29, 2013 5:44 pm

I'm trying to install/compile lua manually for my computer. I downloaded lua-5.2.3.tar.qz and I've extracted the files. Tutorials have told me to then to open a terminal windows, direct it inside the folder with the extracted contents (lua-5.2.3 in this case), and run this command...

Code: Select all
make linux test


What I get in return is this...

Code: Select all
joshypoo@Triangular-Pudding /data/lua-5.2.3 $ make linux test
cd src && make linux
make[1]: Entering directory `/data/lua-5.2.3/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Entering directory `/data/lua-5.2.3/src'
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lapi.o lapi.c
lapi.c:9:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
make[2]: *** [lapi.o] Error 1
make[2]: Leaving directory `/data/lua-5.2.3/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/data/lua-5.2.3/src'
make: *** [linux] Error 2
joshypoo@Triangular-Pudding /data/lua-5.2.3 $


I couldn't seem to find anyone who'd had the same issue in Linux when I used Google. I don't know too much about Linux Mint's C Compiler, or much about C in general. Any advice? Thanks?
Last edited by SadBlobfish on Mon Dec 30, 2013 9:04 pm, edited 1 time in total.
SadBlobfish
Level 1
Level 1
 
Posts: 9
Joined: Tue Dec 24, 2013 3:22 am

Linux Mint is funded by ads and donations.
 

Re: Fatal error when building lua

Postby Previous1 on Sun Dec 29, 2013 5:52 pm

Code: Select all
sudo apt-get install build-essentials libreadline6 libreadline6-dev
Image
Tutorials | cynicaltux
Arch Linux i3wm, 64bit
User avatar
Previous1
Level 4
Level 4
 
Posts: 367
Joined: Sun Dec 01, 2013 11:48 am

Re: Fatal error when building lua

Postby SadBlobfish on Mon Dec 30, 2013 9:04 pm

Previous1 wrote:
Code: Select all
sudo apt-get install build-essentials libreadline6 libreadline6-dev


Yes, that worked! By the way it's "build-essential" not "build-essentials". I'd left out the "build-essential" when I tried this in the terminal before making this topic, but now Lua has compiled properly. Thanks!
SadBlobfish
Level 1
Level 1
 
Posts: 9
Joined: Tue Dec 24, 2013 3:22 am


Return to Software & Applications

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests