Unable to load dynamic library mhash.so

I’ve been procrastinating on fixing this annoying error from PHP on Ubuntu 10.04:

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20090626/mhash.so’ – /usr/lib/php5/20090626/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0

The fix is to purge the mhash package:

sudo dpkg -P php5-mhash

Had I only known the fix was this simple, I would’ve fixed it much sooner.

Here is the official bug report:

~ by ityndall on May 19, 2011.

2 Responses to “Unable to load dynamic library mhash.so”

  1. Thanks man, very helpful!

  2. thanks so much…get the exact same error after the linux version upgrade. it’s fixed the warning simply~

Leave a Reply