LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sbopkg : trying to install glest (game), cannot find lua although installed (https://www.linuxquestions.org/questions/slackware-14/sbopkg-trying-to-install-glest-game-cannot-find-lua-although-installed-752682/)

pokipoki08 09-04-2009 11:03 AM

sbopkg : trying to install glest (game), cannot find lua although installed
 
sbopkg output

Quote:

checking sys/filio.h presence... no
checking for sys/filio.h... no
checking for socklen_t... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.5... yes
checking for xerces... found
checking for OpenAL... found
checking for pow in -lm... yes
checking for lua.hpp in /usr/local/include/lua5.1... no
checking for lua.hpp in /usr/local/include... no
checking for lua.hpp in /usr/include/lua5.1... no
checking for lua.hpp in /usr/include... yes
checking for luaL_newstate in -llua... no
configure: error: Please install lua 5.1


glest:
Would you like to continue processing the rest of the
build queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

Press (Y)es to continue, (N)o to abort, (R)etry to try
to build the package again.
Quote:

bash-3.1# ls /var/log/packages | grep lua
lua-5.1.4-i486-2_SBo
Quote:

bash-3.1# cat /var/log/packages/lua-5.1.4-i486-2_SBo
PACKAGE NAME: lua-5.1.4-i486-2_SBo
COMPRESSED PACKAGE SIZE: 372K
UNCOMPRESSED PACKAGE SIZE: 1010K
PACKAGE LOCATION: /tmp/sbopkg/sbopkg-sbooutputdir/lua-5.1.4-i486-2_SBo.tgz
PACKAGE DESCRIPTION:
lua: Lua (a powerful, fast, light-weight, embeddable scripting language)
lua:
lua: Lua combines simple procedural syntax with powerful data description
lua: constructs based on associative arrays and extensible semantics.
lua: Lua is dynamically typed, runs by interpreting bytecode for a
lua: register-based virtual machine, and has automatic memory management
lua: with incremental garbage collection, making it ideal for
lua: configuration, scripting, and rapid prototyping.
lua:
lua:
lua:
FILE LIST:
./
usr/
usr/share/
usr/share/lua/
usr/share/lua/5.1/
usr/bin/
usr/bin/luac
usr/bin/lua
usr/man/
usr/man/man1/
usr/man/man1/lua.1.gz
usr/man/man1/luac.1.gz
usr/include/
usr/include/lua.h
usr/include/lauxlib.h
usr/include/lua.hpp
usr/include/luaconf.h
usr/include/lualib.h
usr/lib/
usr/lib/liblua.a
usr/lib/pkgconfig/
usr/lib/pkgconfig/lua.pc
usr/lib/liblua.so.5.1.4
usr/lib/lua/
usr/lib/lua/5.1/
usr/doc/
usr/doc/lua-5.1.4/
usr/doc/lua-5.1.4/lua.SlackBuild
usr/doc/lua-5.1.4/INSTALL
usr/doc/lua-5.1.4/COPYRIGHT
usr/doc/lua-5.1.4/HISTORY
usr/doc/lua-5.1.4/extras/
usr/doc/lua-5.1.4/extras/etc/
usr/doc/lua-5.1.4/extras/etc/lua.ico
usr/doc/lua-5.1.4/extras/etc/strict.lua
usr/doc/lua-5.1.4/extras/etc/all.c
usr/doc/lua-5.1.4/extras/etc/README
usr/doc/lua-5.1.4/extras/etc/lua.hpp
usr/doc/lua-5.1.4/extras/etc/Makefile
usr/doc/lua-5.1.4/extras/etc/lua.pc
usr/doc/lua-5.1.4/extras/etc/noparser.c
usr/doc/lua-5.1.4/extras/etc/min.c
usr/doc/lua-5.1.4/extras/etc/luavs.bat
usr/doc/lua-5.1.4/extras/test/
usr/doc/lua-5.1.4/extras/test/xd.lua
usr/doc/lua-5.1.4/extras/test/trace-globals.lua
usr/doc/lua-5.1.4/extras/test/fib.lua
usr/doc/lua-5.1.4/extras/test/life.lua
usr/doc/lua-5.1.4/extras/test/luac.lua
usr/doc/lua-5.1.4/extras/test/factorial.lua
usr/doc/lua-5.1.4/extras/test/env.lua
usr/doc/lua-5.1.4/extras/test/printf.lua
usr/doc/lua-5.1.4/extras/test/trace-calls.lua
usr/doc/lua-5.1.4/extras/test/sieve.lua
usr/doc/lua-5.1.4/extras/test/fibfor.lua
usr/doc/lua-5.1.4/extras/test/echo.lua
usr/doc/lua-5.1.4/extras/test/README
usr/doc/lua-5.1.4/extras/test/hello.lua
usr/doc/lua-5.1.4/extras/test/table.lua
usr/doc/lua-5.1.4/extras/test/readonly.lua
usr/doc/lua-5.1.4/extras/test/bisect.lua
usr/doc/lua-5.1.4/extras/test/sort.lua
usr/doc/lua-5.1.4/extras/test/globals.lua
usr/doc/lua-5.1.4/extras/test/cf.lua
usr/doc/lua-5.1.4/README
usr/doc/lua-5.1.4/html/
usr/doc/lua-5.1.4/html/readme.html
usr/doc/lua-5.1.4/html/contents.html
usr/doc/lua-5.1.4/html/logo.gif
usr/doc/lua-5.1.4/html/lua.html
usr/doc/lua-5.1.4/html/manual.html
usr/doc/lua-5.1.4/html/lua.css
usr/doc/lua-5.1.4/html/luac.html
install/
install/slack-desc
install/doinst.sh
What do I do to install glest successfully? Thanks.

larryhaja 09-04-2009 11:54 AM

All of the dependencies are listed in the README for glest. I have successfully compiled and installed glest on my Slackware 13.0 (32bit) system.

However, I have run into a situation where I couldn't compile podofo with lua installed. I looked at the slackbuild in the 13.0 repo and it doesn't look like it properly links to the appropriate libraries.

For example, when I compile podofo with lua from the 13.0 repo I get an error message similar to:
Code:

[ 98%] Building CXX object tools/podofoimpose/CMakeFiles/podofoimpose.dir/planreader_legacy.o
[ 99%] Building CXX object tools/podofoimpose/CMakeFiles/podofoimpose.dir/planreader_lua.o
Linking CXX executable podofoimpose
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../liblua.so: undefined reference to `dlsym'
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../liblua.so: undefined reference to `dlerror'
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../liblua.so: undefined reference to `dlopen'
/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../liblua.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [tools/podofoimpose/podofoimpose] Error 1
make[1]: *** [tools/podofoimpose/CMakeFiles/podofoimpose.dir/all] Error 2
make: *** [all] Error 2

podofo:
Would you like to continue processing the rest of the
build queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

Press (Y)es to continue, (N)o to abort, (R)etry to try
to build the package again.

The slackbuild for lua in 13.0 repo seems broken. Lua doesn't properly link to -ldl, -lreadline, -lhistory and -lncurses. I can only confirm -ldl with the 13.0 lua script because of the above error.

My suggestion is to use the slackbuild script for lua from the 12.1 or 12.2 repo. 12.1/12.2 slackbuilds properly links to the appropriate libraries and podofo compiles successfully against the 12.1/12.2 lua slackbuild. Hope this helps.

pokipoki08 09-04-2009 12:24 PM

Thanks for your advice.

Will uninstall lua & compile using lua slackbuild 12.2. That should get glest working.

rworkman 09-04-2009 01:45 PM

See latest update :-)
Code:

Fri Sep  4 18:43:15 UTC 2009
development/lua: Fixed linkage of -ldl, -lreadline, -lhistory and -lncurses
  in the shared library.  Thanks to pokipoki08 on LQ for the initial report
  and to Larry Hajali for giving me enough information to fix it.  --rworkman


larryhaja 09-04-2009 04:21 PM

rworkman: Thanks for the quick update.

As a quick update, it looks like the glest slackbuild still won't compile correctly even with the corrected lua slackbuild. When I built glest it was against my own personal version, which has a few modifications since I originally uploaded it to slackbuilds.org. It apparently won't build against gcc-4.3.

Edit: Removed patch. Glest now compiles on Slackware 13.0 at slackbuilds.org


All times are GMT -5. The time now is 09:16 AM.