[mrtg] Re: cgfmaker problem
grendel at interq.ad.jp
Thu Apr 5 11:18:15 MEST 2001
It appears you are compiling MRTG so that it will always use files in
/usr/local/src. This is not healthy. I happen to leave source files in
/usr/local/src after I install them, sure, but sometimes I delete them,
and any of the people running the machines I help with could obliterate
anything in /usr/local/src any time they like. In your Makefile for
MRTG, or in most any Makefile for that matter, you should not normally
see any -I or -L bits beginning with /usr/local/src. That directory is
intended for the download, configuration, and compiling of source
material into executables, libraries, and headers that are then put in
other places like /usr/local/bin, /usr/local/lib, /usr/local/include,
and in many cases /usr/local/(application name).
All the libraries you have to install for MRTG (zlib, libpng, gd)
should be putting header files in /usr/local/include and library files
in /usr/local/lib. If you are actally installing anything permanently to
/usr/local/src, then I'm afraid you may have bigger problems later on.
That's not where things are supposed to go permanently. If you have
anyone at your organization with more experience in Solaris, I strongly
suggest you ask for hands on help. Don't worry, it's not a matter of
being stupid or not, it's a matter of being informed or not.
GMO - http://www.gmo.co.jp/
Julien Borne wrote:
> Am I doomed? Dunno, but certainly stupid, or no luck...
> I've finally managed to install mrtg (wow, 1 week for THAT!), but i've
> got another problem when I try cfgmaker:
> If that can help, here is what my make gives:
> gcc -I/usr/local/src/gd -I/usr/local/src/zlib -I/usr/local/src/libpng
> -DGFORM_GD=gdImagePng -g -O2 src/rateup.c -L/usr/local/src/gd -lgd
> -L/usr/local/src/zlib -L/usr/local/src/libpng -lm -lpng -lz -lm -o
> /usr/local/src/perl-5.6.0/perl -0777 -pi -e 's@^#!\s*/\S*perl@#!
> /usr/local/src/perl-5.6.0/perl@' bin/cfgmaker bin/indexmaker bin/mrtg
> /usr/local/src/perl-5.6.0/perl -0777 -pi -e
> 's at GRAPHFMT="...";@GRAPHFMT="png";@' bin/mrtg bin/indexmaker
> and cfgmaker:
> # cfgmaker --global 'WorkDir: /home/www/mrtg' \
> > --global 'Options[_]: bits,growright' \
> > --output /home/www/mrtg/mrtg.cfg \
> > public at x.x.x.x
> Can't locate strict.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.6.0/sun4-solaris /usr/local/lib/perl5/5.6.0
> /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .)
> at ./cfgmaker line 19.
> BEGIN failed--compilation aborted at ./cfgmaker line 19.
> And maybe it's useful to tell you that strict.pm is in
> /usr/local/src/perl-5.6.0/lib, and that my PATH leads to it...
> Moreover, /usr/local/lib/perl5 doesn't exist! So my question is: may I
> (how?) specify the path to perl during the MRTG's installation?
> I really don't know why he tries to search there...
> Thanks, as always, for any answer!
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive http://www.ee.ethz.ch/~slist/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg