RRDTool not able to install properly
Hi,
I want to setup hobbit for monitoring. I installed all the component except RRDTool. I have downlaoded 1.2.23 and have sun solaris 5.8. (I need that version only, not able to upgrade it to higher version!! ). i am using GNU make 3.81 while i tried to run ./configure command it runs properly. but problem came while i tried to run make command. The error came like following:
make[3]: Entering directory
/home02/software/Hobbit/rrdtool-1.2.23/bindings/perl-shared' /usr/local/bin/gcc -c -I../../src -xO3 -xdepend -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DPERLPATCHLEVEL=5 RRDs.c gcc: unrecognized option -KPIC'
gcc: language depend not recognized
gcc: RRDs.c: linker input file unused because linking not done
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
LD_RUN_PATH="" cc -o blib/arch/auto/RRDs/RRDs.so -G RRDs.o
-L../../src/.libs/ -R/usr/local/rrdtool-1.2.23/lib -lrrd -lm
/usr/ucb/cc: language optional software package not installed
make[3]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[3]: Leaving directory
/home02/software/Hobbit/rrdtool-1.2.23/bindings/perl-shared' make[2]: *** [perl_shared] Error 2 make[2]: Leaving directory /home02/software/Hobbit/rrdtool-1.2.23/bindings'
make[1]: *** [install-recursive] Error 1
could you please let me know what could be the cause? I am trying since last week. pls help me on this topic.
Thanks Haresh Shah
On Wed, Sep 19, 2007 at 02:05:19AM -0400, Shah, Haresh K (GE, Corporate, consultant) wrote:
[rrdtool build problem]
The error came like following:
make[3]: Entering directory
/home02/software/Hobbit/rrdtool-1.2.23/bindings/perl-shared' /usr/local/bin/gcc -c -I../../src -xO3 -xdepend -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DPERLPATCHLEVEL=5 RRDs.c gcc: unrecognized option-KPIC' gcc: language depend not recognized gcc: RRDs.c: linker input file unused because linking not done Running Mkbootstrap for RRDs () chmod 644 RRDs.bs LD_RUN_PATH="" cc -o blib/arch/auto/RRDs/RRDs.so -G RRDs.o -L../../src/.libs/ -R/usr/local/rrdtool-1.2.23/lib -lrrd -lm /usr/ucb/cc: language optional software package not installed
This looks quite odd, because you're using gcc for the compilation, but /usr/ucb/cc for linking.
On my Solaris 8 box, the linker used is /usr/ccs/bin/ld
Try adding /usr/ccs/bin to your PATH, run "make distclean" and re-run the entire compilation with "./configure; make; make install". For me, this builds without any problem. But I have the full GNU build environment (autoconf, automake, binutils, gcc, make) installed from the Sun Freeware site - this could make a difference.
If all fails, I think you have enough of RRDtool built to get on with the Hobbit installation. The compile problem you have is with the rrdtool Perl modules, and Hobbit doesn't need those. So you can install the run-time library and header-files like this:
mkdir /usr/local/lib /usr/local/include /usr/local/bin cd rrdtool-1.2.23/src mv .libs/*.a .libs/*.la .libs/*.so* /usr/local/lib mv .libs/rrdtool .libs/rrdcgi rrdupdate /usr/local/bin cp rrd.h /usr/local/include
Henrik
On Wed, Sep 19, 2007 at 12:29:53PM +0200, Henrik Stoerner wrote:
On Wed, Sep 19, 2007 at 02:05:19AM -0400, Shah, Haresh K (GE, Corporate, consultant) wrote:
[rrdtool build problem]
Alternatively, just grab the rrdtool package from www.sunfreeware.com
Henrik
participants (2)
-
haresh.k.shah@ge.com
-
henrik@hswn.dk