LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2009, 11:03 AM   #1
pokipoki08
Member
 
Registered: Mar 2009
Posts: 76

Rep: Reputation: 16
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.
 
Old 09-04-2009, 11:54 AM   #2
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
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.

Last edited by larryhaja; 09-04-2009 at 11:56 AM.
 
Old 09-04-2009, 12:24 PM   #3
pokipoki08
Member
 
Registered: Mar 2009
Posts: 76

Original Poster
Rep: Reputation: 16
Thanks for your advice.

Will uninstall lua & compile using lua slackbuild 12.2. That should get glest working.
 
Old 09-04-2009, 01:45 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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
 
Old 09-04-2009, 04:21 PM   #5
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
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

Last edited by larryhaja; 09-07-2009 at 10:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
e17: source install, edje cannot find lua, ./autogen.sh fails. Sum1 Linux - Desktop 8 07-28-2010 03:18 AM
Installed flashplayer10 sbopkg in slack 12.2, but doesn't work, what to do? linus72 Slackware 7 07-04-2009 09:41 AM
Lua not found, yet installed adriv Slackware 20 05-22-2007 11:42 AM
Good open source RTS game: Glest 2.0 released zero0w Linux - Games 1 04-22-2006 01:27 AM
install can't find installed rpms vijayind Linux - Newbie 1 12-12-2004 04:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration