Re: Can't locate RRDs.pm
Stephen Carville <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Warrick FitzGerald wrote: > Stephen Carville wrote: > >>My setup does but your's appear to be looking in >> >>/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/ >> >>try >> >># ldd \ >>/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so >> >>to find out where perl expect to find out where RRDs.so expects to >>find the missing library. > > > Thanks Steven, > > I like the way you're thinking and I'm so close I can feel it ... > > ldd is unfortunately not listing the expected location though . > > # ldd > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so > librrd.so.2 => not found > libm.so.6 => /lib/tls/libm.so.6 (0x00b23000) > libc.so.6 => /lib/tls/libc.so.6 (0x00de9000) > /lib/ld-linux.so.2 (0x007b1000) > > looking back at my install notes, I see that I set the Env variable as > INSTALL_DIR=/usr/local/rrdtool-1.2.15 > > and running locate shows that this is indeed where it is located. > > [root@nagios2 RRDs]# locate librrd.so.2 > /home/cricket/rrdtool-1.2.15/src/.libs/librrd.so.2.0.8 > /home/cricket/rrdtool-1.2.15/src/.libs/librrd.so.2 > /usr/local/rrdtool-1.2.15/lib/librrd.so.2.0.8 > /usr/local/rrdtool-1.2.15/lib/librrd.so.2 > > I guess something in my environment must be wrong because that's not > where it's looking. > > Any other ideas? Quick and dirty solution is to put a symlink in a 'standard' lib directory. # ln -sf /usr/local/rrdtool-1.2.15/lib/librrd.so.2.0.8 \ /usr/lib/librrd.so.2 I do this, it works. A purist would probably set LD_LIBRARY_PATH in his crontab and in httpd.conf > Thanks > Warrick > -- Stephen Carville <[email protected]> Unix and Network Admin Nationwide Totalflood 6033 W. Century Blvd Los Angeles, CA 90045 310-342-3602 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV