| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| RRD 1.4.7 installation problem http://www.steveshipway.org/forum/viewtopic.php?f=11&t=5092 |
Page 1 of 1 |
| Author: | capricorn [ Sun Mar 11, 2012 10:38 am ] |
| Post subject: | RRD 1.4.7 installation problem |
Hi! Its becoming a night mare installing RRDtool 1.4.7. I did all the prerequisites. cd /rrdtool-1.4.7 ./configure make make install ln -sf /opt/rrdtool-1.4.7 /opt/rrdtool ln -sf /opt/rrdtool /usr/local/rrdtool I have problem with RRDs.pm perl -e "use RRDs; print $RRDs::VERSION;" Can't locate RRDs.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. If I locate: locate RRDs.pm /opt/rrdtool-1.4.7/bindings/perl-shared/RRDs.pm /rrdtool-1.4.7/bindings/perl-shared/RRDs.pm /rrdtool-1.4.7/bindings/perl-shared/blib/lib/RRDs.pm /usr/local/lib/perl/5.10.1/x86_64-linux-thread-multi/RRDs.pm rrdtool -V RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker <tobi@oetiker.ch> Compiled Mar 8 2012 14:25:32 Usage: rrdtool [options] command command_options Valid commands: create, update, updatev, graph, graphv, dump, restore, last, lastupdate, first, info, fetch, tune, resize, xport, flushcached RRDtool is distributed under the Terms of the GNU General Public License Version 2. (http://www.gnu.org/copyleft/gpl.html) For more information read the RRD manpages Please let me know what should i do? Thanks. |
|
| Author: | capricorn [ Wed Mar 14, 2012 4:22 am ] |
| Post subject: | Re: RRD 1.4.7 installation problem |
Can anyway help me with this as my in RRDtool my post still waiting for acceptance. I removed the old installation and tried with a new one. During make process i can see logs of warning: /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c gcc -c -I../../src -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"1.4007\" -DXS_VERSION=\"1.4007\" -fPIC "-I/usr/lib64/perl5/CORE" -DPERLPATCHLEVEL=10 RRDs.c RRDs.c: In function âXS_RRDs_graphâ: RRDs.c:349: warning: unused variable âRETVALâ RRDs.c: In function âXS_RRDs_fetchâ: RRDs.c:413: warning: unused variable âRETVALâ RRDs.c: In function âXS_RRDs_timesâ: RRDs.c:483: warning: unused variable âRETVALâ RRDs.c: In function âXS_RRDs_xportâ: RRDs.c:528: warning: unused variable âtargâ RRDs.c:527: warning: unused variable âRETVALâ RRDs.xs:322: warning: unused variable ârow_cntâ RRDs.xs: In function âXS_RRDs_infoâ: RRDs.xs:383: warning: value computed is not used RRDs.xs:383: warning: value computed is not used RRDs.xs:383: warning: value computed is not used RRDs.xs:383: warning: value computed is not used RRDs.xs:383: warning: value computed is not used RRDs.xs:383: warning: pointer targets in passing argument 2 of âPerl_newSVpvâ differ in signedness /usr/lib64/perl5/CORE/proto.h:2210: note: expected âconst char *â but argument is of type âunsigned char *â RRDs.xs:383: warning: value computed is not used RRDs.xs: In function âXS_RRDs_updatevâ: RRDs.xs:396: warning: value computed is not used RRDs.xs:396: warning: value computed is not used RRDs.xs:396: warning: value computed is not used RRDs.xs:396: warning: value computed is not used RRDs.xs:396: warning: value computed is not used RRDs.xs:396: warning: pointer targets in passing argument 2 of âPerl_newSVpvâ differ in signedness /usr/lib64/perl5/CORE/proto.h:2210: note: expected âconst char *â but argument is of type âunsigned char *â RRDs.xs:396: warning: value computed is not used RRDs.xs: In function âXS_RRDs_graphvâ: RRDs.xs:409: warning: value computed is not used RRDs.xs:409: warning: value computed is not used RRDs.xs:409: warning: value computed is not used RRDs.xs:409: warning: value computed is not used RRDs.xs:409: warning: value computed is not used RRDs.xs:409: warning: pointer targets in passing argument 2 of âPerl_newSVpvâ differ in signedness /usr/lib64/perl5/CORE/proto.h:2210: note: expected âcons -------------------------------------------- perl -e "use RRDs; print $RRDs::VERSION;" Can't load '/usr/local/lib64/perl5/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200. at -e line 1 Compilation failed in require at -e line 1. -------------------------------------------- Thanks |
|
| Author: | stevesh [ Wed Mar 14, 2012 10:32 am ] |
| Post subject: | Re: RRD 1.4.7 installation problem |
The compilation warnings are not a problem. Your issue is with the installation location. You need to do a 'Site perl' install to install into your normal library locations, else it will go into a subdir under whatever install directory you specified. You've installed the Perl libraries under /opt/rrdtool/lib Make sure you either have the location of RRDs.pm added to your perl module path, or else copy the relevant files to your relevant directory. The librrd.so also needs to be in your LD_LIBRARY_PATH. Under Redhat, you can add a file /etc/ld.so.conf.d/rrdtool.conf containing the line '/opt/rrdtool/lib' to make this work. Steve |
|
| Author: | capricorn [ Thu Mar 15, 2012 4:21 am ] |
| Post subject: | Re: RRD 1.4.7 installation problem |
Hi Steve! Thanks alot for your reply. I have create symbolic link rrdtool -> /opt/rrdtool so i have my rrdtool under /usr/local/rrdtool I was reading one of the post on: http://martybugs.net/linux/rrdtool/ I can see the make site-perl-install but I am not sure where to run this so that it will automatically adjust the path required for perl. |
|
| Author: | capricorn [ Thu Mar 15, 2012 4:51 am ] |
| Post subject: | Re: RRD 1.4.7 installation problem |
I built the package again and now its. Can't load '/usr/local/lib64/perl5/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. Thanks. |
|
| Author: | capricorn [ Fri Mar 16, 2012 11:31 pm ] |
| Post subject: | Re: RRD 1.4.7 installation problem |
I tried the command below yum install perl-Log-Log4perl-RRDs.noarch Now i cant see any error if the run perl -e "use RRDs; print $RRDs::VERSION;" I guess now the problem is solved. Thanks |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|