[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Compiling Lua Problem on OSX?
- From: Richard Warburton <richard@...>
- Date: Fri, 16 Mar 2007 00:05:55 +1300
Can someone tell me what I'm missing or doing wrong?
Cheers.
~/Desktop/Install/lua5.1 root# make -f Makefile.std
Please do
make PLATFORM
where PLATFORM is one of these:
aix ansi bsd generic linux macosx mingw posix solaris
See INSTALL for complete instructions.
-- Seems simple enough
~/Desktop/Install/lua5.1 root# make -f Makefile.std macosx
cd src && make macosx
make[1]: *** No rule to make target `macosx'. Stop.
make: *** [macosx] Error 2
-- I guess not
~/Desktop/Install/lua5.1 root# cd mak.macosx/
~/Desktop/Install/lua5.1/mak.macosx root# make
==== Building lua5.1_dll ====
lapi.c
lcode.c
...
...
==== Building bin2c5.1_exe ====
bin2c.c
Linking bin2c5.1_exe
-- Cool
~/Desktop/Install/lua5.1/mak.macosx root# make install
make: *** No rule to make target `install'. Stop.
-- Tricky. Fine I'll do it myself.
~/Desktop/Install/lua5.1/mak.macosx root# cd ..
~/Desktop/Install/lua5.1 root# cp include/* /usr/local/include/lua5.1
~/Desktop/Install/lua5.1 root# cp lib/* /usr/local/lib/lua
~/Desktop/Install/lua5.1 root# cp bin/* /usr/local/bin
-- Did I get it right?
~/Desktop/Install/lua5.1 root# make -f Makefile.std test
src/lua test/hello.lua
make: src/lua: Command not found
make: *** [test] Error 127
-- Grrr, well I must have done something right as luasocket worked just
by typing 'make install'