Ad Widget

Collapse

Solaris 10 checking for mysql_config...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samagee
    Junior Member
    • Dec 2010
    • 1

    #1

    Solaris 10 checking for mysql_config...

    Hi all:

    I am trying to install Zabbix 1.8.3 on to Solaris 10 and getting the following error.

    checking for mysql_config... /usr/sfw/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library

    I have tried either of these and get the same result.

    ./configure --enable-server --enable-agent --with-mysql --with-mysql-libraries=/usr/sfw/lib --with-net-snmp --with-jabber --with-libcurl

    ./configure --enable-server --with-mysql --with-mysql-libraries=/usr/sfw/lib --with-net-snmp

    Does any one have any suggestions for this situation? Thank you.
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    I had a hard time with Solaris and libraries. This is what I needed just to configure and compile:

    Code:
    CC=/usr/bin/cc CFLAGS="-I/opt/sfw/include -I/opt/mysql/mysql32/include" LDFLAGS="-L/opt/sfw/lib -L/opt/mysql/mysql32/lib -R/opt/sfw/lib -R/opt/mysql/mysql32/lib" ./configure --with-net-snmp=/usr/local/bin/net-snmp-config --with-libcurl=/opt/sfw/bin/curl-config --with-mysql=/opt/mysql/mysql32/bin/mysql_config --without-jabber --enable-server
    You should substitute for what you use. This did work for me, however.

    Comment

    Working...