Installation guide

Joe Rhett jrhett at isite.net
Sat Mar 27 11:00:13 CET 2004


That is actually not a true statement.  On Solaris, we put everything in
/opt and I configured with 

	./configure --prefix=/opt/imagelib --with-png=/opt/imagelib --with-jpeg=/opt/imagelib --enable-shared=no

And it all works perfectly fine.  You seem to have gone through a lot of
work to manually work around something that wasn't a problem.

(As you know, Solaris doesn't ship with any of this stuff.  I had to
manually compile each piece and then compile gd with it .. and none of it
had exceptions.  And my memory is backed up by the internal documentation
to rebuild from scratch which shows only the various configure options.)

On Thu, Mar 25, 2004 at 09:53:54PM +0100, Andreas Ericsson wrote:
> This is because of a bug in the GD configure script. If you have libpng 
> installed somewhere other than in /usr, it won't work.
> 
> To fix it, you can run the configure-script with your options and then
> manually change the file config.h (somewhere in there, I don't remember 
> where) and set the HAVE_PNG* and HAVE_JPG* (or JPEG) to be #define'd as 1.
> The lines should be something like this;
> #define HAVE_PNG_PNG_H 1
> #define HAVE_PNG_LIB 1
> #define HAVE_JPG_JPG_H 1
> #define HAVE_JPG_LIB 1
> Use your head about that though, cause I don't really remember the exact 
>  definitions.
> 
> Then you have to modify the Makefile as well, and make sure CPPFLAGS 
> includes the directory where you have the header files installed, and 
> the LDFLAGS variable to include where you have your libraries installed 
> and finally the LIBS statement must hold all libraries you want to link 
> against.
> On my system, that looks something like this when done;
> CPPFLAGS=-I/usr/include -I/opt/include
> LDFLAGS=-L/usr/lib -L/opt/lib
> LIBS= -lpng -ljpeg -lz -lm -lfreetype -lpng12
> 
> Every -I<path> directive (in CPPFLAGS) tells the C PreProcessor (CPP) to 
> look in those directories for the files it can't find (/usr/include is 
> default, but added by the configure-script).
> Every -l<short_lib_name> tells the linker (ld) in which libraries to 
> look for symbols it needs to produce executables.
> Every -L<path> (in LDFLAGS) tells the linker (ld) where it should expect 
> to find the libraries mentioned in the -l<short_lib_name> statements.
> 
> That should do it, assuming you have the development environments for 
> each respective package installed.
> 
> Alex Farrer wrote:
> >Hi,
> >
> >I'm been having great difficulty getting the Nagios installtion to 
> >recognise that my installion of gd does have jpeg and png correctly 
> >installed (this is confirmed when installing gd). Is there a decent 
> >article available anywhere for a full installation of nagios with a 
> >detailed breakdown of how to install all these libraries and nagios 
> >(i.e: a simple "follow the instructions" type of guide) that actually 
> >works?
> >
> >I can't find anything decent on Google and my unix experience is fairly 
> >basic to understand what the problems are!
> >
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: IBM Linux Tutorials
> >Free Linux tutorial presented by Daniel Robbins, President and CEO of
> >GenToo technologies. Learn everything from fundamentals to system
> >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> >_______________________________________________
> >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
> >
> 
> -- 
> Mvh
> Andreas Ericsson
> OP5 AB
> +46 (0)733 709032
> andreas.ericsson at op5.se
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> 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

-- 
Joe Rhett                                                      Chief Geek
JRhett at Isite.Net                                      Isite Services, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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