Ad Widget

Collapse

make install (in other directory)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VeryNewbie
    Member
    • Feb 2007
    • 40

    #1

    make install (in other directory)

    Hi Zabbix people,

    im try to install zabbix in another directory (because my account doesn't have special rights). but it doesn't seem to work...

    i got this error:

    make install
    Making install in src
    Making install in libs
    Making install in zbxcommon
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT base64.o -MD -MP -MF ".deps/base64.Tpo" -c -o base64.o base64.c; then mv -f ".deps/base64.Tpo" ".deps/base64.Po"; else rm -f ".deps/base64.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT regexp.o -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.o regexp.c; then mv -f ".deps/regexp.Tpo" ".deps/regexp.Po"; else rm -f ".deps/regexp.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT xml.o -MD -MP -MF ".deps/xml.Tpo" -c -o xml.o xml.c; then mv -f ".deps/xml.Tpo" ".deps/xml.Po"; else rm -f ".deps/xml.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT comms.o -MD -MP -MF ".deps/comms.Tpo" -c -o comms.o comms.c; then mv -f ".deps/comms.Tpo" ".deps/comms.Po"; else rm -f ".deps/comms.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT str.o -MD -MP -MF ".deps/str.Tpo" -c -o str.o str.c; then mv -f ".deps/str.Tpo" ".deps/str.Po"; else rm -f ".deps/str.Tpo"; exit 1; fi
    rm -f libzbxcommon.a
    ar cru libzbxcommon.a base64.o misc.o regexp.o xml.o comms.o str.o
    ranlib libzbxcommon.a
    test -z "/usr/local/lib" || /home/camorae/Zabbix/zabbix-1.1.6/install-sh -d "/usr/local/lib"
    ../../.././install-sh -c -m 644 'libzbxcommon.a' '/usr/local/lib/libzbxcommon.a'
    cp: /usr/local/lib/_inst.938150_: Permission denied
    make: The error code from the last command is 1.


    Stop.
    make: The error code from the last command is 2.


    Stop.
    make: The error code from the last command is 1.


    Stop.
    make: The error code from the last command is 1.


    Stop.
    make: The error code from the last command is 1.


    Stop.
    make: The error code from the last command is 1.


    Stop.
  • VeryNewbie
    Member
    • Feb 2007
    • 40

    #2
    can someone help me please?

    Comment

    • James Wells
      Senior Member
      • Jun 2005
      • 664

      #3
      Greetings,
      Originally posted by VeryNewbie
      im try to install zabbix in another directory (because my account doesn't have special rights). but it doesn't seem to work...
      First off, you will want to use the --prefix option when you run the configure script. By doing this you tell 'make' where you want Zabbix to install to as well as where you want Zabbix to find it's configuration information.

      Second, the directory that you set with the --prefix option, needs to be owned, or at the very least writeable by the user you are doing the installation as. Per you example, above, you do no have permission to write to the directory you are trying to install to, which in this case is /usr/local/lib.

      For example, if you wanted to compile and install Zabbix to use /home/zabbix, and you had permission to write to /home/zabbix, you would use --prefix=/home/zabbix as one of the command line options when you run configure.
      Unofficial Zabbix Developer

      Comment

      • VeryNewbie
        Member
        • Feb 2007
        • 40

        #4
        I already did it, but it still not working...

        ps. I can't compile SNMP also... Zabbix is unable to finde "net-snmp-includes.h" although the --prefix is correct.

        Im trying to compile/install it under AIX5.3, are there known problems?

        Comment

        Working...