“/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:


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

1 Comment

  1. huarong

    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 Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>