LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2015, 01:04 PM   #1
redssr
Member
 
Registered: Oct 2013
Location: Dist Nasik MH State Country India
Distribution: Linux
Posts: 111

Rep: Reputation: Disabled
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
 
Old 04-08-2015, 07:34 AM   #2
marius162
LQ Newbie
 
Registered: Apr 2015
Posts: 15

Rep: Reputation: Disabled
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
 
Old 04-09-2015, 08:55 AM   #3
redssr
Member
 
Registered: Oct 2013
Location: Dist Nasik MH State Country India
Distribution: Linux
Posts: 111

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
make: *** [libphp5.la] Error 1 monocube Linux - Software 3 05-23-2012 06:02 AM
php can't load libphp5.so TrevorH Linux - Software 5 03-29-2012 04:15 AM
PHP - Libphp5.so not created Thanotos Linux - Networking 3 12-07-2005 10:37 AM
libphp5.so not created issey Linux - Newbie 1 04-01-2005 09:54 PM
libphp5.so fukumdaryl *BSD 4 03-21-2005 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:32 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