16 November 2006 ~ 2 Comments

MySQL upgrade breaks PHP

As I’ve mentioned before, I use Cacti at home to monitor my systems. If you’ve ever used Cacti, you know that the most common way that people poll their systems is using the PHP poller. Well, today I upgraded MySQL on my server (Gentoo) and that apparently broke PHP.

Running the Cacti poller yielded this error:

/usr/bin/php: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory

Matt recommended that I re-emerge PHP, which I did. That fixed it. Everything appears to be back up and running.

2 Responses to “MySQL upgrade breaks PHP”

  1. Alan Trick 17 November 2006 at 2:10 pm Permalink

    If you have any other peices of software that use mysql you might need to re-emerge them too. If you not sure, there’s a command called `revdep-rebuild` you can run as root that will check for any dependacies broken by ugrades/downgrades

  2. John 17 November 2006 at 8:01 pm Permalink

    Alan:

    Good call. I had heard of revdep-rebuild, but I’ve never used it. I’ll be sure to check that out.

    Thanks,
    John


Leave a Reply