Ad Widget

Collapse

Installing 4.4 on Ubuntu 19.10 server.. dependency issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skeer
    Junior Member
    • Mar 2020
    • 3

    #1

    Installing 4.4 on Ubuntu 19.10 server.. dependency issue

    So trying to install Zabbix on this Ubuntu server I've got. I've got the deb installed, but I'm hitting this:

    pihole@ssi-pihole:~$ sudo apt install zabbix-server-mysql
    [sudo] password for pihole:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    zabbix-server-mysql : Depends: libmysqlclient20 (>= 5.7.11) but it is not installable
    Recommends: snmpd but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    pihole@ssi-pihole:~$
    So I checked and in the repos there is a 'version' 21 of libmysqlclient so I installed that but the dep check on Zabbix is firm in wanting 20.

    How can I get around this to get some Zabbix love working?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Zabbix official repository does not release packages for Ubuntu 19.10. Consider building from source on Ubuntu 19.10.

    Comment

    • skeer
      Junior Member
      • Mar 2020
      • 3

      #3
      Ok fair enough, been trying to compile this morning and after a few fights with Mysql libs I'm fully hung up on libxml2. See below:

      configure: error: LIBXML2 library not found
      pihole@ssi-pihole:~/zabbix-4.4.7$ ls /usr/bin/xml2-config
      /usr/bin/xml2-config
      pihole@ssi-pihole:~/zabbix-4.4.7$ ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --wi
      th-net-snmp --with-libcurl --with-libxml2=/usr/bin/xml2-config

      pihole@ssi-pihole:~/zabbix-4.4.7$ sudo apt list libxml2*
      Listing... Done
      libxml2-dbg/eoan-updates,eoan-security,now 2.9.4+dfsg1-7ubuntu3.1 amd64 [installed]
      libxml2-dev/eoan-updates,eoan-security,now 2.9.4+dfsg1-7ubuntu3.1 amd64 [installed]
      libxml2-doc/eoan-updates,eoan-security 2.9.4+dfsg1-7ubuntu3.1 all
      libxml2-utils/eoan-updates,eoan-security,now 2.9.4+dfsg1-7ubuntu3.1 amd64 [installed]
      libxml2/eoan-updates,eoan-security,now 2.9.4+dfsg1-7ubuntu3.1 amd64 [installed]
      pihole@ssi-pihole:~/zabbix-4.4.7$

      So as you can see libxml2-dev is def installed, I am pointing at the xml2-config as suggested in other postings here on the forums but the compile ignores it. What am I doing wrong here?

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        You really shouldn't need to use
        Code:
        --with-libxml2=/usr/bin/xml2-config
        specifying just
        Code:
        --with-libxml2
        should be enough. Only if xml2-config was in a non-standard location would you need to tell configure to use that particular one.

        Try this:
        1. completely remove the zabbix-4.4.7 directory and all its contents, so there's no left-over config from your failed attempt. If a "Makefile" had been generated in that directory you could do "make distclean", but since your configure failed you shouldn't have a Makefile.
        2. re-extract zabbix-4.4.7 from the source tarball
        3. run configure with your exact same list of arguments again.
        4. if the configure fails again with the same message about LIBXML2 library not found, then examine the generated 'config.log'.

        Assuming a failure again, you want to find what got logged in config.log after the message "checking for xml2-config". If it's not clear what the problem is based on the message that got logged, post the next 10-20 lines after the "checking for xml2-config" here. I (or someone else) will be able to point you in the right direction with that log information.

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          Please try install pkg-config package.

          ex.
          Code:
          $ sudo apt install gcc make pkg-config
          $ sudo apt install libmysqlclient-dev libxml2-dev libsnmp-dev libevent-dev libcurl4-gnutls-dev libpcre3-dev
          $ ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

          Comment

          • skeer
            Junior Member
            • Mar 2020
            • 3

            #6
            Originally posted by tim.mooney
            You really shouldn't need to use
            Code:
            --with-libxml2=/usr/bin/xml2-config
            specifying just
            Code:
            --with-libxml2
            should be enough. Only if xml2-config was in a non-standard location would you need to tell configure to use that particular one.

            Try this:
            1. completely remove the zabbix-4.4.7 directory and all its contents, so there's no left-over config from your failed attempt. If a "Makefile" had been generated in that directory you could do "make distclean", but since your configure failed you shouldn't have a Makefile.
            2. re-extract zabbix-4.4.7 from the source tarball
            3. run configure with your exact same list of arguments again.
            4. if the configure fails again with the same message about LIBXML2 library not found, then examine the generated 'config.log'.

            Assuming a failure again, you want to find what got logged in config.log after the message "checking for xml2-config". If it's not clear what the problem is based on the message that got logged, post the next 10-20 lines after the "checking for xml2-config" here. I (or someone else) will be able to point you in the right direction with that log information.
            You are right.. I shouldnt need to do that but I did try numerous times without the libxml2 path before I tried with it.

            Comment

            Working...