Ad Widget

Collapse

Problems compiling on new OS: Fedora 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tronite
    Senior Member
    • Jun 2007
    • 147

    #1

    Problems compiling on new OS: Fedora 7

    Greetings

    Why am I not succesfully compiling under the new fedora 7! Somebody, tell me?

    After many months of trying to get zabbix to work on my machine I have now upgraded to F7 and started afresh with trying to install zabbix and at carefully following the instructions of the v1.4 manual (oh and I am installing zabbix 1.4) when I get to the step where I must configure the the zabbix sources I get an error;

    #############################################

    [root@localhost zabbix-1.4]# ./configure --enable-server --enable-agent --with-mysql --with-net-snmp

    --->>> This is the error I get:
    checking for mysql_config... /usr/bin/mysql_config
    checking for main in -lmysqlclient ... no
    configure: error: Not found mysqlclient library
    [root@localhost zabbix-1.4]#


    I hope I am also doing the right thing by trying to compile as root?
    #############################################

    I have installed using Yumex all the mysqlclient matches from my search of the Yumex database and am almost 100% sure that I have it installed but it still is complaining.

    Should I locate and prefix the location of the mysqlclient to my compile? I have tried this! And I am now properly lost.

    Any assistance would be much appreciated.


    Here is a list of the mysqlclient matching installations on my machine:
    ##############
    backlevel versions of the MySQL client libraries
    as shipped with Red Hat Linux 9

    libraries and header files that are needed for
    developing MySQL applications using backlevel client libraries.

    backlevel versions of the MySQL client libraries
    for use with applications linked against them.

    the libraries and header files that are needed for
    developing MySQL applications using backlevel client libraries.
    ##############
  • zabhug
    Junior Member
    • Jun 2007
    • 6

    #2
    Hi,

    I've met the same pb with RHEL4. Looking in config.log file :

    configure:8538: checking for main in -lmysqlclient
    configure:8567: gcc -o conftest -g -O2 -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -L/usr/lib/mysql -L/usr/lib conftest.c -lmysqlclient -lm -lresolv -lnsl >&5
    cc1: invalid option `tune=pentium4'
    configure:8573: $? = 1

    I've suppressed this erroneous flag in mysql_config and everything got in order !
    If this can help ...

    Comment

    • tronite
      Senior Member
      • Jun 2007
      • 147

      #3
      Originally posted by zabhug
      Hi,

      I've met the same pb with RHEL4. Looking in config.log file :

      I've suppressed this erroneous flag in mysql_config and everything got in order !
      If this can help ...

      Thanks for your input, I have the problem suppressed as well, I had not installed the mySQL development libraries and once I had done this it worked without problems.

      Comment

      Working...