“/usr/bin/ld: cannot find -lprobes_mysql”

I got the following error when I was building my PHP 5.3.5 on MySQL 5.5 / HTTPD 2.2.17 / CentOS 5.5 64bit.

checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. Check config.log for more information.

I discovered the issue was with my build of MySQL 5.5. You need to disable DTRACE. I needed to add the following cmake config:

-DENABLE_DTRACE=0

I then recompiled MySQL and rebuilt my PHP 5.3.5. Hope it helps.


Posted

in

,

by

Comments

One response to ““/usr/bin/ld: cannot find -lprobes_mysql””

  1. huarong Avatar

    I have the same problem.
    thanks a lot for your article.

    How did you find the relationship between lprobes_mysql and DENABLE_DTRACE?

Leave a Reply

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