Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't locate loadable object for module in @INC

Status
Not open for further replies.

fabiogasta

Technical User
Feb 6, 2008
2
0
0
IT
Hi,
I wrote my own module and I'm trying to install it on my new desktop

>uname -a
Linux 2.6.23.14-107.fc8 #1 SMP Mon Jan 14 22:07:11 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

I have set up my PERL5 environment variable to point to directories where a module (PGPLOT.pm) I need is installed

>echo $PERL5LIB
/soft/Xchan/lib:/soft/headas-6.4/x86_64-unknown-linux-gnu/lib/perl:/usr/local/lib/perl:/soft/filltools/filltools04.4/lib/Linux-x86_64/perl

>locate PGPLOT.pm
/soft/filltools/filltools04.4/lib/Linux-x86_64/perl/PGPLOT.pm
/soft/filltools/filltools04.4/lib/Linux-x86_64/perl/x86_64-linux-thread-multi/PGPLOT.pm
/soft/filltools/filltools04.4/lib/src/perl/pgplot-perl/PGPLOT-2.18/PGPLOT.pm
/soft/headas-6.4/tcltk/PGPLOT-perl/PGPLOT.pm
/usr/local/lib/perl/PGPLOT.pm


but then when I'm trying to install my module which uses PGPLOT I get


Writing Makefile for Xmm::Utils
cp Utils.pm blib/lib/Xmm/Utils.pm
AutoSplitting blib/lib/Xmm/Utils.pm (blib/lib/auto/Xmm/Utils)
Manifying blib/man3/Xmm::Utils.3pm
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" Footer.PL Footer
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" Header.PL Header
Can't locate loadable object for module PGPLOT in @INC (@INC contains: blib/arch blib/lib /usr/local/lib/perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Header.PL line 7
Compilation failed in require at Header.PL line 7.
BEGIN failed--compilation aborted at Header.PL line 7.
make: *** [Header] Error 2
*****ERRRORRRRRRR*******

thanks for any help
Fabio

 
Does your [tt]PGPLOT.pm[/tt] declare which package it is? You need to have this in the module code: [tt]package PGPLOT;[/tt]
 
Hi,

thanks for your answer.
Yes it does, at the beginning of the module. PGPLOT is in CPAN and it is well tested. There must be something wrong in my way of calling it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top