httpd: fatal: libpng12.so.0: open failed: No such file or directory
Hello all,
I have the following problem, i'm compiling php5 on a solaris 10 sparc box, using solaris studio 12.2, i dont have any problem compiling apache or php, all the procees goes smooth PHP5 compiling parameters Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 --with-apxs2=/opt/apache2/bin/apxs --with-config-file-path=/opt/php5/etc --with-libdir=lib --enable-ftp --with-zlib-dir --enable-mbstring --enable-exif --enable-sockets --with-xmlrpc --enable-soap --with-oci8=instantclient,/opt/instantclient_10_2,10.2.0.5.0 --with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.5.0 --with-openssl=/usr/local/ssl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-sigchild --with-xml --enable-bcmath --enable-track-vars --enable-trans-sid --enable-calendar --without-pear Code:
bash-3.00# ./apachectl -k start Code:
bash-3.00# ldd libphp5.so Code:
bash-3.00# ls -l /usr/local/lib/libpng12.so.0 Apache: 2.2.19 OpenSSL: 1.0.0d* PHP: 5.3.6 PNG: 1.2.44* GD: 2.0.35* *:SunfreeWare packages Thanks for any tip |
You anticipated my first response: "run ldd on your libPHP5 file".
Perhaps you have a broken link? Or an invalid libpng .so? "ls -lL" will help answer the first question; "ldd libpng*" the second one. |
Good Night,
Sorry for the late reply, it's been hell today at work, database server stop responding... so imagine. About the commands you ask for, here is the ls, in blue the libpng Quote:
Quote:
|
not sure on solaris 10 but
fedora ,suse, SL6 ,... packageconfig has 2 png .pc files one pointing to png12 and one pointing to png14 php might be linking to the wrong one png 13 ( 12b ? whatever one wants to call png3) |
Hi, plique -
I meant "just run ls -lL on your libpng". Not the whole directory :) Nevertheless: Code:
/usr/local/lib/libpng12.so.0 -> libpng12.so.0.44.0 You've got two different versions of libpng*.so. Maybe "libpng.so" is a symbolic link, and maybe it should point to libpng.so.3 instead of to libpng12.so? Use "ls -l" to sort out what's pointing to what, use "rm" to delete a symbolic link, and use "ln -s" to recreate it. |
Sorry for the late reply, but past week was crazy.
Gonna try to play with the symslink as you suggested and gonna inform the results. But here are are the libpng and syslinks in /usr/local/lib Code:
bash-3.00# ls -l libpng* |
are you sure that "/usr/local/lib" is in the system path ?
/usr/local might not be Apache & php5 might be looking in /usr/lib for libpng |
Hey Jhon,
Really appreciate your time here Actually i was checking that, i just modified with crle and put /usr/local/lib first and /usr/lib at last Code:
bash-3.00# crle Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 \ Edit: Found something, if i tried to use this option Code:
--with-libdir=/usr/local/lib but if i set Code:
--with-libdir=lib |
I make it work, i tried the compilation without the --with-libdir option and worked
Waiting for the developer to test it and will inform |
Developer test the new config and worked, indeed had to remove the --with-libdir and point all the rest to /usr/local
Will add the compiling parameters that worked. Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 \ |
All times are GMT -5. The time now is 09:26 PM. |