Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Im trying to install Nagios on Clarkconnect im using this guide: Code: nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html just to kinda know what to do seen as im not installing it on ubuntu but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    1

    Cant install Nagios GD Problems


    Hi
    Im trying to install Nagios on Clarkconnect im using this guide:
    Code:
    nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html
    just to kinda know what to do seen as im not installing it on ubuntu but i get this error when i try 'make all'

    Code:
    /tmp/cc15nLsI.o(.text+0x1cc5): In function `load_image_from_file':
    /tmp/nagios-3.2.0/cgi/statusmap.c:2183: undefined reference to `gdImageCreateFromJpeg'
    collect2: ld returned 1 exit status
    make[1]: *** [statusmap.cgi] Error 1
    make[1]: Leaving directory `/tmp/nagios-3.2.0/cgi'
    make: *** [all] Error 2
    I couldn't install GD from apt-get but i compiled and installed the latest source. In '/usr/local/bin' i seem to have all the GD Files. So i dont know whats wrong?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    try this before you execute make
    Code:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    I'm not sure if ld looks in /usr/local/lib by default or not.
    Additionally, you can reinstall GD and this time, when you run the configure script pass --prefix=/usr that way it installs into /usr instead of /usr/local

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •