Hi Leslie: I'm not familiar with the tool you are using 'cpanp'. If you've got PDL 2.4.4_08 installed under the same library directory as perl on your system, you should be able to just install PDL-NetCDF by:
1) tar -xvf PDL-NetCDF.version.tar.gz 2) cd PDL-NetCDF.version 3) export NETCDF_LIBDIR=/usr/local/lib 4) export NETCDF_INCDIR=/usr/local/include # Make sure this is the same perl as you installed PDL under! 5) perl Makefile.PL 6) make 7) make test 8) make install Please try this and send me output from whatever stage fails. Regards, Doug Hunt [email protected] Software Engineer UCAR - COSMIC, Tel. (303) 497-2611 On Tue, 22 Sep 2009, Leslie(Pete) Boyd wrote: > > Hi Dan, > > I'm in trouble again. > > Could you give me some advice on this error. > > I do have PDL-2.4.4_08 installed: > hail:/tmp/PDL # perl -MPDL -e 'print "$PDL::VERSION\n"' > 2.4.4_08 > > Thanks. > > hail:~ # cpanp -i > http://search.cpan.org/CPAN/authors/id/D/DH/DHUNT/PDL-NetCDF-4.02.tar.gz > Installing PDL::NetCDF (4.02) > Running [/usr/bin/perl /usr/bin/cpanp-run-perl > /root/.cpanplus/5.8.8/build/PDL-NetCDF-4.02/Makefile.PL]... > Found libnetcdf.a at /usr/local/lib/libnetcdf.a > Found netcdf.h at /usr/local/include/netcdf.h > Defining bool=int (linux seems to need this) > Writing Makefile for PDL::NetCDF > [ERROR] This distribution depends on PDL, but the latest version of PDL on > CPAN > (2.004004) doesn't satisfy the specific version dependency (2.2). You may have > to resolve this dependency manually. > > [ERROR] This distribution depends on PDL, but the latest version of PDL on > CPAN > (2.004004) doesn't satisfy the specific version dependency (2.2). You may have > to resolve this dependency manually. > > > Module 'PDL::NetCDF' requires 'PDL' to be installed > > If you don't wish to see this question anymore > you can disable it by entering the following commands on the prompt: > 's conf prereqs 1; s save' > > > 1> Yes > 2> No > 3> Yes to all (for this module) > 4> No to all (for this module) > > Should I install this module? [1]: > [ERROR] MAKE failed: Bad file descriptor cc -c > -I/usr/lib/perl5/site_perl/5.8.8/ia64-linux-thread-multi/PDL/Core > -I/usr/local/include -Dbool=int -g -O2 -fmessage-length=0 -Wall > -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION=\"4.02\" -DXS_VERSION=\"4.02\" > -fPIC "-I/usr/lib/perl5/5.8.8/ia64-linux-thread-multi/CORE" NetCDF.c > In file included from > /usr/lib/perl5/5.8.8/ia64-linux-thread-multi/CORE/perl.h:2120, > from NetCDF.xs:6: > /usr/lib/perl5/5.8.8/ia64-linux-thread-multi/CORE/handy.h:85:1: warning: > "bool" > redefined > <command line>:1:1: warning: this is the location of the previous definition > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_put_att_schar?: > NetCDF.xs:668: warning: pointer targets in passing argument 6 of > ?nc_put_att_schar? differ in signedness > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_get_att_schar?: > NetCDF.xs:686: warning: pointer targets in passing argument 4 of > ?nc_get_att_schar? differ in signedness > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_put_vara_schar?: > NetCDF.xs:1178: warning: pointer targets in passing argument 5 of > ?nc_put_vara_schar? differ in signedness > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_get_vara_schar?: > NetCDF.xs:1200: warning: pointer targets in passing argument 5 of > ?nc_get_vara_schar? differ in signedness > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_put_var_schar?: > NetCDF.xs:1510: warning: pointer targets in passing argument 3 of > ?nc_put_var_schar? differ in signedness > NetCDF.xs: In function ?XS_PDL__NetCDF_nc_get_var_schar?: > NetCDF.xs:1527: warning: pointer targets in passing argument 3 of > ?nc_get_var_schar? differ in signedness > Running Mkbootstrap for PDL::NetCDF () > chmod 644 NetCDF.bs > rm -f blib/arch/auto/PDL/NetCDF/NetCDF.so > cc -shared NetCDF.o -o blib/arch/auto/PDL/NetCDF/NetCDF.so \ > -L/usr/local/lib -lnetcdf \ > > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: > /usr/local/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic symbol > default_create_format > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: > /usr/local/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic symbol > default_create_format > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: > /usr/local/lib/libnetcdf.a(nc.o): @gprel relocation against dynamic symbol > default_create_format > /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: final > link failed: Nonrepresentable section on output > collect2: ld returned 1 exit status > make: *** [blib/arch/auto/PDL/NetCDF/NetCDF.so] Error 1 > > > [ERROR] Unable to create a new distribution object for 'PDL::NetCDF' -- cannot > continue > > *** Install log written to: > /root/.cpanplus/install-logs/PDL-NetCDF-4.02-1253644469.log > > Error installing 'PDL::NetCDF' > Problem installing one or more modules > > hail:~ # > > ****************** > Leslie(Pete) Boyd > Contractor: The rich man isn't the one who has the most, > Vision Technoligies but the one who needs the least. > Senior Systems Engineer > US EPA Rm. E460 --- IN GOD WE TRUST -- > 919/541-1438 > ****************** > > > _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
