Ad Widget

Collapse

Is it possible to run Zabbix 5.2 on Solaris 10 ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stuart.salter
    Junior Member
    • Feb 2021
    • 7

    #1

    Is it possible to run Zabbix 5.2 on Solaris 10 ?

    Hi all, I'm trying to upgrade from Zabbix 3.2 to 5.2 on Solaris, and I'm having major issues with the configure script !

    for example:

    checking for process shared libpthread support... yes
    checking for libevent support... configure: error: Unable to use libevent (libevent check failed)

    ./configure \
    --enable-server \
    --enable-agent \
    --with-mysql=/app/mysql/bin/mysql_config \
    --with-net-snmp \
    --with-libcurl \
    --with-libevent-lib=/opt/csw/lib/sparcv9 \
    --with-libevent=/opt/csw/lib/sparcv9 \
    --with-libevent-include=/opt/csw/lib/sparcv9 \
    --with-libpthread=/opt/csw/lib/sparcv9 \
    --with-libpthread-include=/opt/csw/lib/sparcv9 \
    --with-libpthread-lib=/opt/csw/lib/sparcv9 \
    --prefix=/app/zabbix-5.2

    pkginfo |grep libevent
    application CSWlibevent-core2-0-5 libevent_core2_0_5 - Event notification library 2.0, libevent_core-2.0.so.5
    application CSWlibevent-dev libevent_dev - Development files for libevent*-2.0.so.5
    application CSWlibevent-extra2-0-5 libevent_extra2_0_5 - Event notification library 2.0, libevent_extra-2.0.so.5
    application CSWlibevent-openssl2-0-5 libevent_openssl2_0_5 - Event notification library 2.0, libevent_openssl-2.0.so.5
    application CSWlibevent-pthreads2-0-5 libevent_pthreads2_0_5 - Event notification library 2.0, libevent_pthreads-2.0.so.5
    application CSWlibevent2-0-5 libevent2_0_5 - Event notification library 2.0, libevent-2.0.so.5

    just wondered if anyone has had success with this ? thanks in advance


  • mwildam
    Member
    • Feb 2021
    • 72

    #2
    I have AIX here and very fortunately also a Linux Debian box, where I could install the zabbix server at least. The problem was, that there are no prepared packages for Debian on powerpc. So I had to compile from sources anyway. - But apart from that, your problem is not new: https://www.zabbix.com/forum/zabbix-...ompile-problem
    And I had the problem either. In general for all those included modules you need to have the development packages installed when compiling the zabbix from the sources. I have really no idea, what Solaris uses for installing packages, but it looks like you need to add some development packages. - I had the same problems even on a recent Debian buster. And sometimes packages are named even a little different - it is not always <package>-devel, sometimes it is <package>-dev or whatever. And again, no idea how on Solaris. Try to use the search functions of the package manager (hope you have one there on the Solaris - the last time I worked on a Solaris was in 1994 or so and I don't remember anything regarding that operating system's specialities).

    Comment

    • stuart.salter
      Junior Member
      • Feb 2021
      • 7

      #3
      Hi there, thanks for the reply, I'll try out your suggestions

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        Originally posted by stuart.salter
        Hi all, I'm trying to upgrade from Zabbix 3.2 to 5.2 on Solaris, and I'm having major issues with the configure script !

        That's not really a surprise. Solaris 10 is ancient, while Zabbix 5.2 is very recent. I wouldn't recommend running Zabbix on a platform that's no longer supported by the vendor. You might want to look at Oracle Solaris 11.4, or see if one of the Illumos distributions supports your SPARC hardware. Still, I imagine you're running Solaris 10 because of some legacy app, but then I wouldn't expect that Zabbix would be hosted on the same system?

        In any case, about your configure:

        Originally posted by stuart.salter
        checking for process shared libpthread support... yes
        checking for libevent support... configure: error: Unable to use libevent (libevent check failed)

        ./configure \
        --enable-server \
        --enable-agent \
        --with-mysql=/app/mysql/bin/mysql_config \
        --with-net-snmp \
        --with-libcurl \
        --with-libevent-lib=/opt/csw/lib/sparcv9 \
        --with-libevent=/opt/csw/lib/sparcv9 \
        --with-libevent-include=/opt/csw/lib/sparcv9 \
        --with-libpthread=/opt/csw/lib/sparcv9 \
        --with-libpthread-include=/opt/csw/lib/sparcv9 \
        --with-libpthread-lib=/opt/csw/lib/sparcv9 \
        --prefix=/app/zabbix-5.2

        pkginfo |grep libevent
        application CSWlibevent-core2-0-5 libevent_core2_0_5 - Event notification library 2.0, libevent_core-2.0.so.5
        application CSWlibevent-dev libevent_dev - Development files for libevent*-2.0.so.5
        application CSWlibevent-extra2-0-5 libevent_extra2_0_5 - Event notification library 2.0, libevent_extra-2.0.so.5
        application CSWlibevent-openssl2-0-5 libevent_openssl2_0_5 - Event notification library 2.0, libevent_openssl-2.0.so.5
        application CSWlibevent-pthreads2-0-5 libevent_pthreads2_0_5 - Event notification library 2.0, libevent_pthreads-2.0.so.5
        application CSWlibevent2-0-5 libevent2_0_5 - Event notification library 2.0, libevent-2.0.so.5
        So you have libevent and related dependencies installed from CSW, but your configure flags look strange to me, specifically the --with-libevent-include and --with-libpthread-include. You're telling configure to search in a library directory for header files. There are rare cases where the lib directory is indeed where the header files are installed, but it's not common. In most cases, I would expect that if libevent is installed under /opt/csw (also, is that directory path lower case? Check to make certain), then its header files should be installed in /opt/csw/include , not /opt/csw/lib or /opt/csw/lib/sparcv9.

        In addition, It's not clear to me why you're telling configure to look for libpthread in /opt/csw? Solaris 10 had libpthread as part of the OS, so telling it to look in a non-vendor add-on package seems exceptionally strange. Can you clarify why you're specifying those pthread-related flags?

        Are you using gcc for the build, or Studio cc ? Are you passing the correct CFLAGS with your compiler to enable the use of pthreads?

        Comment

        • stuart.salter
          Junior Member
          • Feb 2021
          • 7

          #5
          Hi there, thanks very much for the tips, I've managed to run 'make install' now which has created the binaries, so I've got a bit further

          Comment

          Working...