[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20050201: netCDF Perl Interface - Problem running my file topo.pl



Nick,

> To: address@hidden
> From: "Nick" <address@hidden>
> Subject: netCDF Perl Interface - Problem running my file topo.pl
> Organization: University of Ancona, Italy
> Keywords: 200502011608.j11G8afs014840 netCDF 3.6.0 Perl

The above message contained the following:

> Institution: university of Ancona, Italy
> Package Version: 1.2.3
> Operating System: red hat linux 9
> Hardware Information: Linux Oscar Cluster with NFS shared home
> Inquiry: Hi,
> I have installed Perl(5.8.6), Netcdf(3.6.0) and NetcdfPerl module (1.2.3), 
> then after running "topo.pl" ( my own perl file that I have attached)  I have:
> 
> nnicastro@kali bin]$ topo.pl
> Can't locate NetCDF.pm in @INC (@INC contains: 
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl 
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl 
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at 
> ./topo.pl line 4.
> BEGIN failed--compilation aborted at ./topo.pl line 4.
> [nnicastro@kali bin]$ 
> 
> Can you help me in my problem? 
> These are my log file:
> 
> uname -a
> Linux kali.univpm.it 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 
> i686 i386 GNU/Linux 

[snip]

> INSTALL.LOG
> 
> make[1]: Entering directory `/usr/netcdf-perl-1.2.3/src'
> make[2]: Entering directory `/usr/netcdf-perl-1.2.3/src'
> 
> making `install' in directory /usr/netcdf-perl-1.2.3/src/perl
> 
> make[3]: Entering directory `/usr/netcdf-perl-1.2.3/src/perl'
> Files found in blib/arch: installing files in blib/lib into architecture 
> dependent library tree
> Writing /usr/local/lib/perl5/site_perl/5.8.6/i686-linux/auto/NetCDF/.packlist
> Appending installation info to 
> /usr/local/lib/perl5/5.8.6/i686-linux/perllocal.pod
> make[3]: Leaving directory `/usr/netcdf-perl-1.2.3/src/perl'

It looks like the @INC array of your "topo.pl" script doesn't include
the directory into which the netcdf-perl module was installed, namely

    /usr/local/lib/perl5/site_perl/5.8.6/i686-linux/auto

Instead, the @INC array contains directories with "5.8.0" as a
component.

Try modifying the invocation of your "topo.pl" script so that it
includes the "5.8.6" directory in its @INC array.

Regards,
Steve Emmerson