I'm kinda new to Linux, I'm mostly run websites, and it's rather easy to do everything... except install this PECL LUA plugin. :wall:
I start by running this command: pecl install lua-0.9.4
downloading lua-0.9.4.tgz ...
Starting to download lua-0.9.4.tgz (12,617 bytes)
.....done: 12,617 bytes
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone _set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ' America/Chicago' for 'CDT/-5.0/DST' instead in PEAR/Validate.php on line 486
8 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
building in /var/tmp/pear-build-root/lua-0.9.4
running: /tmp/tmpITDpqH/lua-0.9.4/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/i nclude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/ph p/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for lua support... yes, shared
checking for lua in default path... not found
configure: error: Please reinstall the lua distribution - lua.h should be in <lu a-dir>/include/
ERROR: `/tmp/tmpITDpqH/lua-0.9.4/configure' failed
I found this: bugs.php.net / bug.php?id=60641 (I can't post URLs, sorry for the bypass)
But it's partially nonsense to me. From what I understand I need to create a symbiotic link to reference the lua.so file, which isn't in the default location as they suggest. I have installed LUA, here's a list of relevant files:
/usr/bin/lua
/usr/bin/luac
/usr/include/lua
/usr/include/lua.h
/usr/include/lua.hpp
/usr/include/luaconf.h
/usr/include/lualib.h
/usr/lib/liblua-5.1.so
/usr/lib/liblua.a
/usr/lib/liblua.so
/usr/lib/lua
/usr/lib/pkgconfig/lua.pc
/usr/lib64/liblua-5.1.so
/usr/lib64/liblua.a
/usr/lib64/liblua.so
/usr/lib64/lua
/usr/lib64/php/modules/lua.so
/usr/lib64/pkgconfig/lua.pc
I understand it isn't in it's default directory, what would be the symbiotic links I need to create so I can install PECL LUA?