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

Christopher Noyes cnoyes at csc.com
Wed Dec 30 23:31:45 CET 2009

Make sure you have installed all the dependency packages from 
sunfreeware.com for your platform (or at least the packages necessary for 
gcc so you can compile GD, libpng, etc yourself).  Please do not use 
LD_LIBRARY_PATH (it's a major security issue); use crle instead (man crle 
for details).  If you followed the dependencies for GCC then libiconv 
package should have been been installed. (I think libintl is the other 
dependency for GCC from sunfreeware.com).


This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 

Steve Shipway <s.shipway at auckland.ac.nz>
Montoya <Juan.Montoya at sun.com>, "mrtg at lists.oetiker.ch" 
<mrtg at lists.oetiker.ch>
12/29/2009 04:01 PM
Re: [mrtg] Configure MRTG ld.so.1: gcc: fatal: libiconv.so.2: open failed: 
No such file or directory

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)




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 

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

root at hcons07 # echo $PATH 

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 

mrtg mailing list
mrtg at lists.oetiker.ch

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

More information about the mrtg mailing list