Monthly Archives: April 2013

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

FreeBSD shared object “libutil.so.8″ not found

Hi,

Stumbled into this problem today by doing an upgrade from 8.3 to 9.1-release-p2.

First time i ran freebsd-update it all gone well, nothing was broke, but after ur done recompiling ports and reboot the machine all sorts of software complains that it cant find the required libary.

The solution is to make a symnlink from the old to the new library:
cd /lib
ln -s libutil.so.9 libutil.so.8

Not the best solution tho, the best way is to look the specific programs that give this error and reinstall them against the new 9.x librarys.