Compiling nagios with libgd under Redhat 9

Mark Arnold msalists at gmx.net
Tue Sep 30 18:15:44 CEST 2003


Tielman,

thanks for the reply, I will try this tonight.
I had a problem with my X window client not working any more after putting the new directories into the ldconfig.
I guess that will be solved too if I do it your way. Do I only need to have this variable during configure, or do I also need to
somehow tell Nagios during runtime where the libraries are, so it finds them?

Thanks,

MARK

> -----Original Message-----
> From: Tielman de Villiers [mailto:tvilliers at lastminute.com]
> Sent: Tuesday, September 30, 2003 1:26 AM
> To: Mark Arnold
> Cc: nagios-users
> Subject: Re: [Nagios-users] Compiling nagios with libgd under Redhat 9
>
>
> Try
>
> export LD_RUN_PATH=/usr/local/lib-gd/lib
>
> before you do configure
>
> I had the same problems with ldconfig recognizing the new custom
> location, but not nagios.
>
> (PS if you wanted to use the stock standard rpms, remember to install
> the *-devel rpms, which contains the headers)
>
>
>
> On Tue, 2003-09-30 at 02:29, Mark Arnold wrote:
> > I found some related articles in the archive, but none of them really had a solution... Did anybody find one in the meantime?
> >
> > I am trying to compile Nagios 1.1 with libgd support but Nagios claims it can't find the libraries.
> > I'm running a RedHat 9 installation with libgd, lib-png and lib-jpeg pre-installed in /usr/lib
> > Part of the reason why Nagios can not find the gd-libraries is (I think) that the include files are missing.
> > So I installed lib-png and lib-jpeg from scratch (compiled from source) into /usr/local/libpng and /usr/local/libjpeg
> > The 2 directories each have a lib and a src subdirectory with the respective files in there.
> > Then I compiled the libgd from the source ditstribution into /usr/local/lib-gd, now also with a lib and inc subdirectory.
> > During compilation, libgd says that it found the png and jpeg libraries and that it has png and jpeg support enabled.
> > Then I add all 3 lib subdirectories into /etc/ld.so.conf and run ldconfig.
> > Running "ldconfig -v" shows all the libraries in all the 3 newly compiled lib directories as expected.
> > Then I go back to the nagios source tree, type "make clean" and rerun the configure command with the appropriate --with-gd-lib
> > and --with-gd-inc parameter, but it still says it can't find the library.
> > I use --with-gd-lib=/usr/local/lib-gd/lib and it says /usr/local/lib-gd/lib does not exist.
> > The directory DOES exist, and the directory and all the files are accessable for all users - but Nagios insists it
> can't find it.
> > Is there anything I am missing?
> >
> > Thanks,
> >
> > MARK
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
> >
> > ________________________________________________________________________
> > This e-mail has been scanned for all viruses by Star Internet. The
> > service is powered by MessageLabs. For more information on a proactive
> > anti-virus service working around the clock, around the globe, visit:
> > http://www.star.net.uk
> > ________________________________________________________________________
> --
> Tielman de Villiers
> Perl Developer: Post Sales
> lastminute.com
>
> Address: 4 Buckingham Gate, London SW1E 6JP
> Tel: +44(0)20.7802.4393
> Fax: +44(0)20.7802.9302
> email: tvilliers at lastminute.com
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list