|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-03 12:14 UTC] laruence@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: laruence
[2012-01-03 12:14 UTC] laruence@php.net
[2012-01-04 11:39 UTC] alexjarkey at gmail dot com
-Status: Feedback
+Status: Assigned
[2012-01-04 11:39 UTC] alexjarkey at gmail dot com
[2012-01-04 12:24 UTC] alexjarkey at gmail dot com
[2012-01-04 12:24 UTC] alexjarkey at gmail dot com
-Status: Assigned
+Status: Closed
[2012-01-05 17:23 UTC] laruence@php.net
[2013-12-05 19:16 UTC] mgraham at etsy dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ I'm unable to install the lua extension using PECL with lua5.1 packages. The error message I receive when running "sudo pecl install lua-0.9.1" is: ... checking for lua support... yes, shared checking for lua in default path... found in /usr checking for lua library in default path... not found configure: error: Please reinstall the lua distribution - lua library should be in <lua-dir>/lib/ As far as I can tell, the packages have placed the lua header files in /usr/include/lua5.1 (Note that I had to "ln -s /usr/include/lua5.1/lua.h /usr/include/lua/include.h" to get past the header check). And the lua library seems to be in /usr/lib/x86_64-linux-gnu/liblua5.1.a After examining config.m4a, I'm not sure I will be able to do the same linking trick with the library path, since line 31 is checking for .../{LUA_LIB_DIR}.a, which hasn't been defined. Should it be .../{LUA_LIB_NAME}.a? From config.m4a: 24 LUA_LIB_NAME=lua 25 26 if test -r $PHP_LUA/$PHP_LIBDIR/lib${LUA_LIB_NAME}.a; then 27 LUA_LIB_DIR=$PHP_LUA/$PHP_LIBDIR 28 else 29 AC_MSG_CHECKING(for lua library in default path) 30 for i in /usr/lib /usr/lib64; do 31 if test -r $i/$PHP_LIBDIR/${LUA_LIB_DIR}.a; then 32 LUA_LIB_DIR=$i 33 AC_MSG_RESULT(found in $i) 34 break 35 fi 36 done 37 fi Apologies if this isn't a bug and I've just missed something. Thanks for your help, and thanks for the hard work in making this extension! Test script: --------------- sudo apt-get install lua5.1 liblua5.1-0 liblua5.1-0-dev sudo apt-get install php5-cli php5-dev php-pear sudo pecl install lua-0.9.1 Expected result: ---------------- ... checking for lua in default path... found in /usr checking for lua library in default path... found in /usr/x86_64-linux-gnu Actual result: -------------- ... checking for lua library in default path... not found configure: error: Please reinstall the lua distribution - lua library should be in <lua-dir>/lib/