lua-users home
lua-l archive

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


Hi,

Thanx for help, but it's still nothing...

The script (./configure) is looking for (as far as I managed to find):

if test -d /usr/include/lua50; then
	CPPFLAGS="$CPPFLAGS -I/usr/include/lua50"
fi
if test -d /usr/include/lua51; then
	CPPFLAGS="$CPPFLAGS -I/usr/include/lua51"
fi

...but there's no /usr/include , there's /usr/local/include . There's no
lua50 or lua51 files, there are only: /usr/local/bin/lua ,
/usr/local/lib/lua , /usr/local/share/lua (the rest is listed below).

I installed lua (make && make install) from sources from lua.org and
everything should be fine.

Fink... I started by Fink, but it didn't have lua:
$ fink list lua
Information about 2088 packages read in 5 seconds.
$

= nothing with "lua" in its name.

...and yes, fink was updated before.

Greetz,
Timo



Asko Kauppi wrote:
> 
> Can be a bunch of issues.  First you should see how the ./configure of
> your game is trying to find liblua5 (or similar). Most likely it's not
> looking under /usr/local, and/or your Lua isn't even installed there
> ("make install").
> 
> You can also use the OS X Fink distro of Lua 5, by "sudo fink install
> lua51-dev" (worth at least if you're otherwise using Fink).
> 
> Send me your ./configure if you wish 1-on-1 help.
> 
> -asko
> 
> 
> Tymek W kirjoitti 9.12.2007 kello 18:01:
> 
>> Hi,
>>
>> I'm trying to install Stratagus game on Mac OS X 10.4 (PPC) and I have
>> problems with lua...
>>
>> I followed:
>>
>> http://www.stratagus.org/install.shtml
>> http://www.schwedischejungfrauen.de/stratagus-on-mac-os-x/
>>
>> (Patches suggested by author of second linked page aren't needed on
>> 2.4.2 version. I tried also version used by author + patches, it doesn't
>> work either.)
>>
>> After './configure' I get errors:
>> (...)
>> checking lua.h usability... yes
>> checking lua.h presence... yes
>> checking for lua.h... yes
>> checking for library containing lua_getfenv... no
>> configure: error: Lua5 is required
>>
>> ...and the script stops.
>>
>> The problem is that I installed Lua from sources, that I got from
>> lua.org, and it works:
>> $ lua
>> Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
>>>
>>
>> Lua files:
>> $ find /usr 2> /dev/null | awk '/lua/{print;}'
>> /usr/local/bin/lua
>> /usr/local/bin/luac
>> /usr/local/include/lua.h
>> /usr/local/include/lua.hpp
>> /usr/local/include/luaconf.h
>> /usr/local/include/lualib.h
>> /usr/local/lib/liblua.a
>> /usr/local/lib/lua
>> /usr/local/lib/lua/5.1
>> /usr/local/man/man1/lua.1
>> /usr/local/man/man1/luac.1
>> /usr/local/share/lua
>> /usr/local/share/lua/5.1
>> /usr/share/vim/vim62/ftplugin/lua.vim
>> /usr/share/vim/vim62/indent/lua.vim
>> /usr/share/vim/vim62/syntax/lua.vim
>> /usr/X11R6/lib/X11/doc/html/XSetDeviceValuators.3.html
>> /usr/X11R6/man/man3/XSetDeviceValuators.3
>>
>> Here are similar problems with earlier versions of Stratagus:
>> http://www.bebits.com/talkback/4074
>>
>> I googled for more, but got nothing helpful...
>>
>> What's wrong? Do you have any ideas?
>>
>> Thanx in advance,
>> Timo
> 
>