Ad Widget

Collapse

Compiling Zabbix 1.4.2 on Solaris10 x86 with Mysql error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • halomoan
    Junior Member
    • Jul 2007
    • 10

    #1

    Compiling Zabbix 1.4.2 on Solaris10 x86 with Mysql error

    Dear all

    I'm compiling Zabbix 1.4.2 on Solaris10 x86 too. But my error is about mysql.
    I used mysql/mysql-devel package from http://www.blastwave.org/ packages

    I pointed the include and library path to what i have

    CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include'
    LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/'


    My error is:

    bash# env CPPFLAGS='-I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/opt/csw/include/' \
    LDFLAGS='-L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/' \
    ./configure --enable-server --with-mysql

    .
    .
    .
    checking for mysql_config... /opt/csw/mysql5/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library

    from the config.log i see

    configure:8658: found /opt/csw/mysql5/bin/mysql_config
    configure:8671: result: /opt/csw/mysql5/bin/mysql_config
    configure:8802: checking for main in -lmysqlclient
    configure:8831: gcc -o conftest -g -O2 -I/opt/csw/mysql5/include/mysql -mt -D_FORTEC_ -xtarget=386 -I/opt/csw/mysql5/include/mysql/ -I/usr/sfw/include/ -I/op
    t/csw/include/ -L/opt/csw/mysql5/lib/mysql/ -L/opt/csw/lib/ -L/usr/sfw/lib/ -L/opt/csw/lib/32 -L/opt/csw/mysql5/lib/mysql -L/opt/csw/lib conftest.c -lmysqlc
    lient -lkvm -lm -lresolv -lnsl -lkstat -lsocket >&5
    gcc: language target=386 not recognized
    ld: fatal: file conftest.c: unknown file type
    ld: fatal: File processing errors. No output written to conftest
    collect2: ld returned 1 exit status

    What do I miss ? Thank you for helping

    Regards,

    Halomoan Zhou
  • alxzed
    Junior Member
    • Sep 2007
    • 7

    #2
    try --with-mysql=<the_path_goes_here>libmysqlclient.so with ./configure

    Comment

    • halomoan
      Junior Member
      • Jul 2007
      • 10

      #3
      solved !

      hi alxzed

      You solved my problem. Great thanks.

      Halomoan Zhou

      Comment

      Working...