Ad Widget

Collapse

make not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wvw
    Junior Member
    • Jun 2008
    • 26

    #1

    make not working

    Hello

    I am trying to install Zabbix 1.4.5 on ubuntu 8.04 server. However the steps I follow get me to a point and then I have some problems.

    The steps I follow are as follows:

    1) adduser zabbix
    enter in new password
    confirm
    2) adduser zabbix adm
    3) su - zabbix
    wget http://optusnet.dl.sourceforge.net/s...x-1.4.2.tar.gz
    tar zxvpf zabbix-1.4.2.tar.gz
    4) su
    5) mysql -e "create database zabbix;"
    mysql -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'password';"
    6) mysql -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/schema/mysql.sql
    mysql -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/data/data.sql
    mysql -uzabbix -p zabbix < /home/zabbix/zabbix-1.4.2/create/data/images_mysql.sql
    7) su - zabbix
    8) cd zabbix-1.4.2/
    ./configure --prefix=/usr --with-mysql --with-net-snmp \
    --with-libcurl --enable-server --enable-agent &&

    now for the problem part

    make

    this is where it says, don't know how to make. make stop. I tried cd up a dir until I was in root dir, but no go. It doesn't break while doing make. It just doesn't do anything when I do a make.

    Then I want to do make install and I get the same error. From my knowledge of BSD if make doesn't work then make install will definitely not work.

    So I decided to continue

    9)vi /etc/services
    10) zabbix_agent 10050/tcp # Zabbix ports
    zabbix_trap 10051/tcp
    11) mkdir /etc/zabbix
    12) chown -R zabbix.zabbix /etc/zabbix/
    13) cp misc/conf/zabbix_* /etc/zabbix/

    This is where my next problem occurs. When I try to copy, there is no misc dir in my current working dir. And they do not show an absolute path and nor do they give a pwd in this instruction so I have no idea where to find the misc dir. Is it meant to be done with the make, make install instructions?

    When I proceed to the next step (which is):

    14) vi /etc/zabbix/zabbix_agentd.conf

    I cannot find the file zabbix_agentd.conf???

    Any help to solve these issues will be much appreciated.

    Warmest Regards
    wvw
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    It looks like you are following some kind of howto on installing zabbix, could you provide a link to that so we can see what it tells you to do?

    Comment

    • xs-
      Senior Member
      Zabbix Certified Specialist
      • Dec 2007
      • 393

      #3
      If make reports that it 'doesnt know how to make', there is no Makefile.
      If there is no Makefile, your configure command did not complete properly.

      I see you are using libcurl, ubuntu has two options for this as a package, you need to choose the one with gnutls.

      Please check the output of your configure command, as this creates the Makefile which make uses.

      Comment

      • SierraX
        Junior Member
        • Dec 2006
        • 21

        #4
        there are no problem report by ./configure ?

        redirect your shell output (1 and 2) in a file an paste it in an service like https://paste.bsdgroup.de/

        Comment

        • wvw
          Junior Member
          • Jun 2008
          • 26

          #5
          ./configure wants c compiler

          Hi People

          I decided to reinstall my server using Ubuntu 8.04 LAMP.

          When I now run the ./configure command it stops saying there is no acceptable c compiler found in $PATH.

          I tried export cc gcc and received no errors however ./configure doesn't like that. It again stopped with the same message.

          Is c not installed and I have to install it before I can continue? I did a whereis gcc and it showed it is sitting in /usr/lib/gcc.

          Thanks
          willemvw

          Comment

          • Tenzer
            Senior Member
            • Nov 2007
            • 316

            #6
            Have you installed the package "build-essential"? It contains almost every package needed to compile stuff like Zabbix, and just makes it a lot easier

            Comment

            • wvw
              Junior Member
              • Jun 2008
              • 26

              #7
              I did install build-essential....i think, but i'll install it again just make double sure.

              Comment

              • wvw
                Junior Member
                • Jun 2008
                • 26

                #8
                Hi

                I have installed build-essential and did the ./configure command. Everything went smooth. Then I ran make and it gave me errors (unfortunately I did not capture them) I then did a sudo make install and everything went fine. Is it safe to continue with my zabbix instalation? Should I rather do the make and fix the errors and then do the make install again and go on from there?

                Thanks
                wvw

                Comment

                • cstackpole
                  Senior Member
                  Zabbix Certified Specialist
                  • Oct 2006
                  • 225

                  #9
                  I too ran into issues building Zabbix on Ubuntu when running make.
                  `sudo make install` worked for me and I did not have problems running on that system.

                  From my experiance, you should be OK (obviously YMMV but here's hoping!).

                  Have Fun!

                  Comment

                  • wvw
                    Junior Member
                    • Jun 2008
                    • 26

                    #10
                    I am following the link from the wiki to install zabbix:

                    http://www.zabbix.com/wiki/doku.php?...:ubuntuinstall

                    I got to the point where it says:

                    For small sites this default file will do, however if you are into tweaking your config for your 10+ hosts site, this is the place.

                    Change this:

                    # Database user
                    DBUser=zabbix
                    # Database password
                    # Comment this line if no password used
                    DBPassword=Secret

                    However my file is read only. When I try to perform a forced write to the file i get an error that says it cannot open the file for writing. Is it ok if I change the files write permissions to save the changes and then change it back to what it is?

                    thanks
                    wvw

                    Comment

                    • cstackpole
                      Senior Member
                      Zabbix Certified Specialist
                      • Oct 2006
                      • 225

                      #11
                      That should work just fine.

                      Comment

                      • wvw
                        Junior Member
                        • Jun 2008
                        • 26

                        #12
                        Originally posted by cstackpole
                        That should work just fine.
                        It worked like a charm

                        Thanks so much for your help

                        Comment

                        Working...