LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   libphp5.so not created (https://www.linuxquestions.org/questions/linux-newbie-8/libphp5-so-not-created-4175539020/)

redssr 04-07-2015 01:04 PM

libphp5.so not created
 
Hi,

Friends,

I had i problem with php compilation. When i do make install I get below error.

Code:

make install
Installing PHP SAPI module:      apache2handler
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr/build-1/libtool' libphp5.la /usr/lib/httpd/modules
/usr/lib/apr/build-1/libtool --mode=install install libphp5.la /usr/lib/httpd/modules/
libtool: install: install .libs/libphp5.lai /usr/lib/httpd/modules/libphp5.la
libtool: install: install .libs/libphp5.a /usr/lib/httpd/modules/libphp5.a
libtool: install: chmod 644 /usr/lib/httpd/modules/libphp5.a
libtool: install: ranlib /usr/lib/httpd/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.4.37/libs'
Warning!  dlname not found in /usr/lib/httpd/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/lib/httpd/modules/libphp5.so
chmod: cannot access `/usr/lib/httpd/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536

I had below httpd modules install

Code:


[root@centos6php54 php-5.4.37]# rpm -qa|grep httpd|sort
httpd-2.4.12-1.i686
httpd-debuginfo-2.4.12-1.i686
httpd-devel-2.4.12-1.i686
httpd-manual-2.4.12-1.i686
httpd-tools-2.4.12-1.i686

I have below config parameters

Code:


'./configure'  '--build=i686' '--host=i686' '--target=i686' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=/lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mime-magic=/usr/share/file/magic' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-interbase=shared,/usr/lib/firebird' '--with-pdo-firebird=shared,/usr/lib/firebird' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-pdo-dblib=shared,/usr' '--with-sqlite=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--with-readline' '--enable-dbase=shared' '--with-pspell=shared' '--with-mcrypt=shared,/usr' '--with-mhash=shared,/usr' '--with-tidy=shared,/usr' '--with-mssql=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--with-apxs2'

apxs path

Code:

[root@centos6php54 php-5.4.37]# which apxs
/usr/bin/apxs

OS Version

Code:

[root@centos6php54 php-5.4.37]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

Any help will be really appreciable.

Regards,

Redssr

marius162 04-08-2015 07:34 AM

Quote:

chmod 755 /usr/lib/httpd/modules/libphp5.so
chmod: cannot access `/usr/lib/httpd/modules/libphp5.so': No such file or directory
indicate that make install hasn't installed libphp5.so to that
directory. Does /usr/lib/httpd/modules exist? If not, you may
want to

mkdir /usr/lib/httpd/modules

and copy the .so manually to that folder (and hope there are no
unresolved depencies, try ldd on the .so).

To locate the .so, try

which libphp5.so (only works if the directory containing the
file is in the PATH variable)

or

whereis libphp5.so.

If make has built it, it should also be somewhere in the directory where you have executed configure, make, make install.

HTH

redssr 04-09-2015 08:55 AM

Dear marius162,

Thanks for the reply.

I don't know what was the problem, but when i recreated the fresh VM and compiled PHP it worked.

Before doing this i also did,

find . -name "libphp5.so" in the compiled directory but there were no result. Hence I decided to do fresh installation and it worked.

Warm Regards,

Redssr.


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