Ad Widget

Collapse

make install issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Davidus
    Senior Member
    • Dec 2010
    • 281

    #16
    Dave did you fixed it?

    Comment

    • dave_t
      Junior Member
      • Apr 2007
      • 28

      #17
      I'm coming to the conclusion that it's beaten me

      I've copied all the "lib/*" and all the "include/*" files to all the relevant "/usr/lib|include" and "/usr/local/lib|include" /opt/freeware/lib|include etc etc etc - and in one last ditched attempt /path/to/source/zabbix-1.8.3/include

      I've also changed LDFLAGS and CPFLAGS to may permutations, and when I run "make" it looks all good up until I get to "zbxsms" where I get:

      Making all in zbxsms
      make[3]: Entering directory `/home/zabbix_server/zabbix-1.8.3/src/libs/zbxsms'
      gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I'/usr/include/mysql' -MT sms.o -MD -MP -MF .deps/sms.Tpo -c -o sms.o sms.c
      sms.c: In function 'send_sms':
      sms.c:249: error: 'CRTSCTS' undeclared (first use in this function)
      sms.c:249: error: (Each undeclared identifier is reported only once
      sms.c:249: error: for each function it appears in.)
      make[3]: *** [sms.o] Error 1
      make[3]: Leaving directory `/home/zabbix_server/zabbix-1.8.3/src/libs/zbxsms'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/home/zabbix_server/zabbix-1.8.3/src/libs'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/zabbix_server/zabbix-1.8.3/src'
      make: *** [all-recursive] Error 1




      ...perhaps zabbix-server & mysql (at leat the version we're using from mysql.com) is just not happening

      Therefore, I think we're going to need an LPAR with a PPC Red-Hat distribution for the front-end Zabbix/apache + all the other functionality, and an AIX backend running MySQL DB

      Oh well - just a pity it's cost so much time

      Let me know if you make any further progress, as I'd love to know what the problem was, but unfortunately, time (and patience) has gotten the better of me.

      Cheers !

      Dave

      Comment

      • dave_t
        Junior Member
        • Apr 2007
        • 28

        #18
        ....although it pains me to say it: an hour later (on a YDL PPC distro)

        [root@zabbix-master ~]# cd /home/zabbix/zabbix-1.8.3
        [root@zabbix-master zabbix-1.8.3]# date
        Wed Dec 15 17:52:23 GMT 2010
        [root@zabbix-master zabbix-1.8.3]#
        [root@zabbix-master zabbix-1.8.3]# ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl

        Result:

        Configuration:

        Detected OS: linux-gnu
        Install path: /usr/local
        Compilation arch: linux

        Compiler: gcc
        Compiler flags: -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv

        Enable server: yes
        With database: MySQL
        WEB Monitoring via: cURL
        Native Jabber: yes
        SNMP: net-snmp
        IPMI: no
        Linker flags: -rdynamic -L/usr/lib/mysql -L/usr/lib -L/usr/local/lib -liksemel -L/usr/local/lib -lcurl -L/usr/kerberos/lib -lidn -lssl -lcrypto -lldap -lrt -lssl -lcrypto -ldl -lz -lz -lcrypto -lcrypto
        Libraries: -lm -lresolv -lmysqlclient -liksemel -lcurl -lnetsnmp

        Enable proxy: no

        Enable agent: yes
        Linker flags: -rdynamic
        Libraries: -lm -lresolv

        LDAP support: no
        IPv6 support: no

        ************************************************** *********
        * Now run 'make install' *
        * *
        * Thank you for using Zabbix! *
        * <http://www.zabbix.com> *
        ************************************************** *********

        [root@zabbix-master zabbix-1.8.3]# date
        Wed Dec 15 17:58:16 GMT 2010


        [root@zabbix-master zabbix-1.8.3]# make install
        yada yada yada
        gcc stuff....
        entering directory yada yada yada
        leaving directory yada yada yada
        yada yada yada
        yada yada yada

        ....and eventually.... TADA !!

        [root@zabbix-master zabbix-1.8.3]# zabbix_server --help
        Zabbix Server v1.8.3 (revision 13928) (16 August 2010)

        usage: zabbix_server [-hV] [-c <file>] [-n <nodeid>]

        Options:
        -c --config <file> Specify configuration file
        -h --help give this help
        -n --new-nodeid <nodeid> convert database data to new nodeid
        -V --version display version number


        ...guess that's for the linux community and for the help we had from the MySql / AIX guys (although, my sneaking suspicion is still focussed towards the seemingly awkwardness about obtaining the MySql devel and client libs & headers for AIX )

        Let me know if you want a listing of RPM's I've got installed on the YDL box, or any other info.

        ..next step is to get the zabbix DB onto the _AIX_ MySql backend and then fire up the web page

        Comment

        • Davidus
          Senior Member
          • Dec 2010
          • 281

          #19
          Congratulations Dave!
          you gave up on AIX righr? did you have any problems with IBM drivers or somethin` like that for YDL?
          I`m planning to try Oracle DB, cause its looks like pain in the a** to keep trying install Zabbix with mysql
          Hopefully its not going to ask me client and devel for Oracle as well…
          Last edited by Davidus; 15-12-2010, 21:40.

          Comment

          • dave_t
            Junior Member
            • Apr 2007
            • 28

            #20
            Yes,

            We just happened to have an LPAR lying around with a fairly recent (14months old) Yellow Dog distribution on an OpenPower 720 box.

            It is disappointing not getting the AIX version going on the p570, 'cos I've been working with AIX since version 3.2.5 (yes, I'm _that_ old ) and my preference would be to stay with AIX.

            I had considered the Oracle option, but due to the number of hosts and amount of data we need to hold and report against, I'd need to fully license Oracle on one of our 19 systemP/pSeries/Power frames, which of course wouldn't be cheap!!

            I also considered the postgresql option, but I'm completely unfamiliar with that product, so not wanting to have to learn something new I quickly discounted that option.

            I'm not going to give up on the MySql/AIX combo, and when I get chance to re-visit I'll let you know how I get on....

            I'd also be interested in how you get on with Oracle?

            Cheers,

            Dave

            Comment

            • Davidus
              Senior Member
              • Dec 2010
              • 281

              #21
              I really what to try with Oracle, however, it seems like installation of Oracle DB is not going to be easy task…
              What I`m doing for this moment is, on some point I`m still trying with MySQL. I opened threads on, perhaps, dozens of forums and time after time getting new advices… same time trying hookup Oracle on my AIX box… in other words, having lot of fun (sarcasm)…
              I`ll let you know if somehow will install Zabbix on AIX, no matter with which DB; I`m going to fix it soon (sarcasm)

              P.S.
              I had dream before I started installing Zabbix on AIX 5.3; now I don’t even have an ambitions…
              Whoever said impossible is nothing, have never tried to install Zabbix on AIX 5.3

              Comment

              • untergeek
                Senior Member
                Zabbix Certified Specialist
                • Jun 2009
                • 512

                #22
                I can perhaps help with the Zabbix install with Oracle. I have installed zabbix_server with an oracle backend on both Solaris on SPARC and RHEL5 on amd64. Can't say my experience will help on AIX, though.

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #23
                  it should work on aix. getting proper mysql dev headers & runtime libs might be tricky, though. if they are correct & found by zabbix, maybe that's a bug - if so, might be worth reporting.
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • Davidus
                    Senior Member
                    • Dec 2010
                    • 281

                    #24
                    I`m going to try build MySQL from source, this has to work, otherwise I just don’t know… cant say that this is definitely bug, cause its really hard to find in world wide web up-to-dated client and devel for SQL…

                    Comment

                    • Davidus
                      Senior Member
                      • Dec 2010
                      • 281

                      #25
                      Originally posted by untergeek
                      I can perhaps help with the Zabbix install with Oracle. I have installed zabbix_server with an oracle backend on both Solaris on SPARC and RHEL5 on amd64. Can't say my experience will help on AIX, though.
                      thank you! I`ll contact you if I decide use Oracle

                      Comment

                      • Davidus
                        Senior Member
                        • Dec 2010
                        • 281

                        #26
                        Dave
                        The reason why we couldn’t use MySQL is that MySQL binary is precompiled with C and all other stuff we are using, perhaps with GCC… this is kind of my personal conclusion, also old version of client and devel of mysql… I also tried PostgreSQL, however, wasn’t able to find PostgreSQL library to install on AIX 5.3. Therefore, I kind of gave up on this ZABBIX/on AIX as well. Probably, am going to try YDL or something like that for powerpc.

                        Comment

                        • dave_t
                          Junior Member
                          • Apr 2007
                          • 28

                          #27
                          re-kindled - zabbix server compile error fixed - but then onto another issue

                          ...well, it's been a while since I re-visited this old chestnut of a problem - and some might say I need to post this to a different forum, but here goes...

                          I'm happy to say that I eventually managed to get the zabbix_server (1.8.9) compiled on AIX 7 with pretty much all the "./configure --with-" options (I've skipped the IPMI and IKEMEL(jabber) configure options.

                          My dilemna now is getting a fully functional web server running on AIX with PHP.


                          ..sounds simple I know, but I've tried fairly recent rpm's of Apache & PHP from various sources (Bull Freeware/perlz.org etc...), but when I connected to installation screen in Zabbix, I was (sadly) advised that PHP had not been compiled with "mbstring" enabled, nor had it been compiled with database support.

                          DOH !

                          I then tried to compile PHP5.x.x from source, and ran into an issue about libphp5.so not being present during the "make install" process.

                          I found a proposed hack to copy "libphp5.so" to the right place at the right time during the "make install" process - - but I even experimented with idea for a short while, but never actually saw "libphp5.so" magically manifest itself during the "configure/make/make install" sequence

                          I've been through several permutations of using various combinations of gcc / IBM's xlC / GNU ld / make / gmake etc etc, and have obviously been through the pain of the RPM hunt to satisfy all the pre-requisites - all to no avail.

                          ...so I guess my question to everyone out there is, does anyone have similar experiences, and has anyone got a solution - or better still does anyone know the whereabouts of the Apache & PHP RPM's I need to (hopefully) get closure on this ongoing saga.

                          Many thanks in advance to anyone who can assist, and in the meantime I'll go search the PHP websites for any clues they may provide

                          Comment

                          • richlv
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Oct 2005
                            • 3112

                            #28
                            did make even complete successfully ?
                            don't you have libphp5.so in .libs directory inside the php source ?
                            Zabbix 3.0 Network Monitoring book

                            Comment

                            • dave_t
                              Junior Member
                              • Apr 2007
                              • 28

                              #29
                              I wouldn't let it win :-)

                              I eventually got this working, so thought others might want to see my <ahem> method:


                              The result I now have is the zabbix server running on a PowerHA (v.6) cluster on AIX 6.1
                              The Zabbix DB is also running on another PowerHA (v.6) cluster, with MySQL database.

                              Both clusters are running across IBM Power7 boxes.

                              Backend storage and O/S disks are presented from HDS USPvm storage arrays over two 8Gb SAN fabrics


                              AIX Version:
                              =========
                              # oslevel -s
                              6100-06-05-1115

                              WebServer (Apache):
                              ================
                              I installed various software, including Apache from http://pware.hvcc.edu/


                              PHP:
                              ====

                              NOTE: Pware's pre-compiled PHP5 is no good for my requirement, as wasn't compiled with "bcmath" and "mbstring" enabled, so decided to compile from source.
                              ...also couldn't compile latest & greatest version of PHP, so had to settle with 5.2.17

                              PHP Configure script:

                              './configure' '--prefix=/opt/pware' '--with-mysql=/opt/pware' '--enable-sockets' '--with-libxml-dir=/opt/pware' '--enable-soap' '--with-iconv=/opt/pware' '--with-xsl=/opt/pware' '--with-xmlrpc' '--enable-mbstring' '--enable-bcmath' '--with-bz2=/opt/pware' '--with-zlib-dir=/opt/pware' '--with-gd=/opt/pware' '--with-png-dir=/opt/pware' '--with-jpeg-dir=/opt/pware' '--with-freetype-dir=/opt/pware' '--enable-zip' '--with-gmp=/opt/pware' '--with-pcre-regex=/opt/pware' '--with-curl=/opt/pware' '--enable-sysvsem' '--enable-sysvmsg' '--enable-sysvshm' '--with-regex=system' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-fastcgi' '--with-apxs2=/opt/pware/bin/apxs'


                              Zabbix:
                              ======

                              Couldn't get the zabbix configure script to use the MySQL bundle from pware, so I installed "mysql-connector-c-6.0.2-aix5.3-powerpc-32bit.tar" from MySQL website.
                              NOTE - unless you un-tar from "/", you'll need to move the "usr/*" "bin/*" and "lib/*" to "/usr/local/"

                              It's also worth a note that I couldn't "make" the package with GCC, and eventually ended up using "xlc_r"


                              Anyway - here's the zabbix configure script, along with the additional compiler flags and "includes" that I appeared to need



                              CC="xlc_r" \
                              CFLAGS="-DHAVE_LONG_LONG" \
                              LEX=lex \
                              CPPFLAGS="-I/opt/pware/include -I/opt/pware/include/apr-1 -I/usr/local/include" \
                              EXTRA_LIBS="-liodbc -liodbcinst -lpthread" \
                              EXTRA_LDFLAGS="-Wl,-bbigtoc -L/opt/pware/lib -L/opt/pware/lib/mysql" \
                              LDFLAGS="-L/opt/pware/lib -lpthread" \
                              ./configure --enable-proxy --enable-server --with-mysql=/usr/local/bin/mysql_config


                              Let me know if you want me to post more detail / logs etc., but thought you might want to know that I got there in the end :-)

                              Comment

                              • richlv
                                Senior Member
                                Zabbix Certified Trainer
                                Zabbix Certified SpecialistZabbix Certified Professional
                                • Oct 2005
                                • 3112

                                #30
                                congratulations
                                do you think you could document it nicely on https://zabbix.org/wiki ?
                                Zabbix 3.0 Network Monitoring book

                                Comment

                                Working...