Ad Widget

Collapse

compile: alerter.c not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • H@rry
    Junior Member
    • Jul 2006
    • 24

    #1

    compile: alerter.c not found

    When i try to compile on RHEL3 i get the following error during make:

    Code:
    + sed -i -e s#/home/zabbix/bin#/opt/zabbix/bin#g -e s#PidFile=/var/tmp#PidFile=/var/run#g -e s#LogFile=/tmp#LogFile=/var/log#g -e s#/home/zabbix/lock#/var/lock#g src/zabbix_server/alerter.c
    sed: can't read src/zabbix_server/alerter.c: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.68636 (%build)
    and when i look into the /src/zabbix_server dir, there is a subdir alerter where the alerter.c is located. So: /src/zabbix_server/alerter/alerter.c

    Is this a small bug?

    I searched the forum on this problem but couldn't find a solution.

    [edit]I try to compile Zabbix 1.1[/edit]
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    How exactly do you compile ZABBIX?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • H@rry
      Junior Member
      • Jul 2006
      • 24

      #3
      I unpack the tar.gz an edit the spec file and tar it back in a tar.gz. Then i say rpmbuild -tb zabbix-1.1.tar.gz

      edits in spec file:

      - Version: 1.1
      - BuildPrereq: mysql-client, mysql-devel, net-snmp
      - Requires: mysql-client, net-snmp
      - %configure --with-mysql --with-net-snmp --enable-agent --enable-server

      Comment

      • H@rry
        Junior Member
        • Jul 2006
        • 24

        #4
        i see this line (47) in the zabbix.spec:

        for zabbixfile in misc/conf/* misc/init.d/suse/*/zabbix_agentd src/zabbix_server/{alerter,server}.c; do

        maybe i need to edit this one?

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          The .spec file is outdated. Please follow standard installation procedure described in ZABBIX Manual.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • H@rry
            Junior Member
            • Jul 2006
            • 24

            #6
            thats to bad...

            I'd really like to make the rpm's to keep my system easy manageable. Do you have plans to update the spec file?

            Comment

            Working...