Ad Widget

Collapse

Configuration Error: checking for main in -lmysqlclient

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bisbell
    Junior Member
    • May 2008
    • 14

    #1

    Configuration Error: checking for main in -lmysqlclient

    I'm doing a compile on Solaris 10. I have 2 different versions of MySQL installed on the system. When I set my PATH variable to include the MySQL bin directory of one of them my compile has no problems. When I change my PATH to point to the other installation of MySQL I get the following configuration error.
    checking for mysql_config... /opt/webstack/mysql/5.1/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library

    The mysqlclient library does exist as /opt/webstack/mysql/5.1/lib/mysql/libmysqlclient.so.16.0.0


    The output from the 2 different mysql_config commands are:

    Working (PATH includes /opt/coolstack/mysql_32bit/bin)
    # mysql_config --libs
    -L/opt/coolstack/lib -R/opt/coolstack/lib -L/opt/coolstack/mysql_32bit/lib/mysql -lmysqlclient -R/opt/coolstack/mysql_32bit/lib/mysql -lz -lposix4 -lresolv -lgen -lsocket -lnsl -lm -L/opt/coolstack/lib/ -lssl -lcrypto


    Not Working (PATH includes /opt/webstack/mysql/5.1/bin)
    # mysql_config --libs
    -s -L/opt/webstack/mysql/5.1/lib/mysql -R/opt/webstack/mysql/5.1/lib/mysql -lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm


    I'm doing this with a very simple configuration:
    # ./configure --prefix=/opt/zabbix --enable-server --enable-agent --with-mysql

    Any help would be appreciated.
Working...