Ad Widget

Collapse

Compiling zabbix under Solaris10/SPARC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ajunne
    Junior Member
    • Jun 2007
    • 9

    #1

    Compiling zabbix under Solaris10/SPARC

    Hi All,

    I can't seem to get Zabbix 1.4 compiled on my Solaris machine.

    I have enabled mysql, client and server support. The following command line is used:

    ./configure --prefix=/data/zabbix-1.4 --with-mysql=/usr/sfw/bin/mysql_config --enable-server --enable-client

    mysql_config output:

    Usage: /usr/sfw/bin/mysql_config [OPTIONS]
    Options:
    --cflags [-I/usr/sfw/include/mysql -xstrconst -mt]
    --include [-I/usr/sfw/include/mysql]
    --libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm]
    --libs_r [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient_r -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread]
    --socket [/tmp/mysql.sock]
    --port [3306]
    --version [4.0.24]
    --libmysqld-libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqld -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lrt]


    I keep 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 using LDFLAGS:

    export LDFLAGS="-L/usr/sfw/lib/mysql"

    Or even the longer version (as output from mysql_config):

    export LDFLAGS="-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm"

    No use. The configure program still does not find my libmysqlclient, even though it's installed. MySQL is also running fine on this machine.

    Anyone some ideas?

    Thanks
    Cedric
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please can you try with "--with-mysql=/usr/sfw/bin".
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Ajunne
      Junior Member
      • Jun 2007
      • 9

      #3
      Slightly different error message now, but still not working:

      checking for mysql_config... /usr/sfw/bin
      configure: error: Not found MySQL library

      Comment

      • sauron
        Senior Member
        • Jan 2005
        • 215

        #4
        Check crle.

        # crle
        Configuration file [version 4]: /var/ld/ld.config
        Default Library Path (ELF): /lib:/usr/lib:/usr/sfw/lib:/usr/local/lib
        Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

        Comment

        • Ajunne
          Junior Member
          • Jun 2007
          • 9

          #5
          Still no luck. I've added both to crle:

          $ crle

          Configuration file [version 4]: /var/ld/ld.config
          Default Library Path (ELF): /lib:/usr/lib:/opt/oracle/product/instantclient_10_2-32bit/:/usr/sfw/lib:/usr/sfw/lib/mysql
          Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)

          Command line:
          crle -c /var/ld/ld.config -l /lib:/usr/lib:/opt/oracle/product/instantclient_10_2-32bit/:/usr/sfw/lib:/usr/sfw/lib/mysql

          But still:

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

          Comment

          • rafael
            Junior Member
            • Sep 2006
            • 11

            #6
            I was able to compiled it, here is my config:

            env LDFLAGS="-L/usr/local/gnu/zlib-1.2.2/lib -L/usr/local/gnu/lib -L/usr/lib -L/lib -L/usr/local/net-snmp-5.1.1/lib" CPPFLAGS="-I/usr/local/net-snmp-5.1.1/include" ./configure --prefix=/usr/local/zabbix-1.4 --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-libcurl=/usr/local/bin/curl-config --with-net-snmp


            You need to have your GNU apps in you path

            Comment

            Working...