Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-11-2012
Registered User
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Installing PECL LUA on Centos for PHP

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.

I start by running this command: pecl install lua-0.9.4


Code:
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:


Code:
/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?

Last edited by pludi; 06-12-2012 at 04:08 AM.. Reason: QUOTE -> CODE
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need help in installing Xen on Centos 6 ahmedamer12 Red Hat 0 12-24-2011 05:44 AM
Installing centOS in i686 thegeek Linux 1 09-26-2011 03:19 PM
Installing CentOS 5.5 on Virtual Box motoko Virtualization and Cloud Computing 5 01-05-2011 03:43 AM
Installing CVS on Centos 5.3 mojoman UNIX for Dummies Questions & Answers 2 10-30-2009 12:07 AM
installing psybnc on CentOS wmccull Linux 0 03-05-2008 09:22 PM



All times are GMT -4. The time now is 12:24 AM.