Shared object “libz.so.5″ not found, required by “zlib.so” in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/gd.so’ – Shared object “libz.so.5″ not found, required by “gd.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/zip.so’ – Shared object “libz.so.5″ not found, required by “zip.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/zlib.so’ – Shared object “libz.so.5″ not found, required by “zlib.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/xml.so’ – Shared object “libz.so.5″ not found, required by “xml.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/xmlrpc.so’ – Shared object “libz.so.5″ not found, required by “xmlrpc.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/pdo_mysql.so’ – Shared object “libz.so.5″ not found, required by “pdo_mysql.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/dom.so’ – Shared object “libz.so.5″ not found, required by “dom.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/xmlreader.so’ – Shared object “libz.so.5″ not found, required by “xmlreader.so” in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/20060613/mysqli.so’ – Shared object “libz.so.5″ not found, required by “mysqli.so” in Unknown on line 0

Solved these errors by just making a symnlink to the never version…

[root@web9 /usr/local/etc/rc.d]# locate libz.so.5
/lib/libz.so.5
[root@web9 /usr/local/etc/rc.d]# ls -als /lib/libz.so.*
78 -r–r–r– 1 root wheel 77980 Apr 11 09:51 /lib/libz.so.6
[root@web9 /usr/local/etc/rc.d]# cd /lib/
[root@web9 /lib]# ln -s libz.so.6 libz.so.5

What u should do is just recompile all the installed software, so it links to the new libary’s

Grgr Thomas

Leave a Reply

Your email address will not be published. Required fields are marked *