lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Turned out that I downloaded the wrong package from sourceforge.  Downloading and compiling from www.lua.org/ftp works great.
Message: 8
Date: Sat, 17 Mar 2007 10:19:10 +0200
From: Asko Kauppi <askok@dnainternet.net>
Subject: Re: Compiling Lua Problem on OSX?
To: Lua list <lua@bazar2.conectiva.com.br>
Message-ID: <97DA7700-722B-4E2E-8C0F-6949D80BA347@dnainternet.net>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


 :)    how did you get That Stuck?

Anyways, how about fink and "sudo fink install lua" ?

I am the maintainer for Lua 5.1 on fink, but there shouldn't be any issues. There are separate lua51-dev packages etc. if you need the header files.

-asko



Richard Warburton kirjoitti 15.3.2007 kello 13:05:

> 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'