[mrtg] Configure MRTG ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory

Steve Shipway s.shipway at auckland.ac.nz
Tue Dec 29 22:00:48 CET 2009


You may need to set LD_LIBRARY_PATH=/usr/lib:/usr/local/lib since it looks like you've installed your libraries into /usr/local.  Also, when you run configure, you need to add /usr/local/lib as a library path - try something like

export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
export LIBFLAGS="-L/usr/local/lib"
export CPPFLAGS="-I/usr/local/include"
configure -prefix=/usr/local/mrtg-2

Finally I think you will need to install libiconv (you can get the libiconv-sol10-sparc-local package from subsite along with all the others)

Steve

________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Montoya
Sent: Wednesday, 30 December 2009 6:13 a.m.
To: mrtg at lists.oetiker.ch; mrtg-bounces at lists.oetiker.ch
Subject: [mrtg] Configure MRTG ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file or directory

HI Experts

I try to instal MRTG in a Sun Blade
I installed the follows packages:


libpng-1.2.40-sol10-sparc-local gcc-3.4.6-sol10-sparc-local    mrtg-2.16.2 gd-2.0.35-sol10-sparc-local
zlib-1.2.3-sol10-sparc-local

But when i run the command, present this messages
could youre help me to understand this
and what can i do to resolv  this
Thanks...


root at hcons07 # echo $PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Blade-1000/sbin:/opt/sun/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin:/opt/CTEact/bin:/opt/SUNWswasr/bin/:/usr/local/bin:/usr/lib/


root at hcons07 # ./configure --prefix=/usr/local/mrtg-2
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
root at hcons07 # more config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.61.  Invocation command line was

 $ ./configure --prefix=/usr/local/mrtg-2


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20091230/84f245f1/attachment.htm 


More information about the mrtg mailing list