Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Cant install Nagios GD Problems

    Im trying to install Nagios on Clarkconnect im using this guide:
    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'

    /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
    NH, USA
    try this before you execute make
    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