This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Don, It could be that the POLLUTE variable needs to be defined in order to correctly build the netCDF-Perl package. Please try the following: 1. Go to the top-level source-directory. 2. Execute the command "make distclean". 3. Perform step 2 described near the end of the file INSTALL. You should use the same settings as before. 4. Ensure that the environment variable POLLUTE is defined with the value 1, e.g., export POLLUTE=1 or setenv POLLUTE 1 depending on your user-shell. 5. Perform steps 3 through 9 described near the end of the file INSTALL. Please let me know if this helps. Regards, Steve Emmerson NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us. ------- Original Message >To: address@hidden >From: Don Hooper <address@hidden> >Subject: Problem with installing NetCDF-PERL >Organization: CU >Keywords: 200407262305.i6QN5aaW007894 netCDF-perl To whoever receives this missive, Here are the requested items: A. SunOS sr1 5.8 Generic_117350-02 sun4u sparc SUNW,Ultra-4 B. 1.2.3 C. /usr/local/bin/cc (cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15) D.: creating cache ./config.cache checking for catman... catman checking for manual-page index command... catman -w -M $(MANDIR) checking for perl utility... /home/www/data/hoop/bin/perl checking for perl manual page directory... /home/www/data/hoop/man checking for value of perl POLLUTE variable... 0 checking for neqn... neqn checking for tbl... tbl checking for cc... cc checking type of operating system... sunos5 checking for tar flags... -chof checking for netCDF header-file... -I/usr/local/include checking for netCDF library... -L/usr/local/lib checking for package version... 1.2 updating cache ./config.cache creating ./config.status creating Makefile creating perl/Makefile.PL creating port/master.mk creating port/Makefile expanding `include's in file `Makefile' expanding `include's in file `perl/Makefile.PL' expanding `include's in file `port/master.mk' expanding `include's in file `port/Makefile' E.: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:593: checking for catman configure:635: checking for manual-page index command configure:686: checking for perl utility configure:694: checking for perl manual page directory configure:712: checking for value of perl POLLUTE variable configure:759: checking for neqn configure:791: checking for tbl configure:1047: checking for cc configure:1186: checking type of operating system configure:1263: checking for tar flags configure:1279: checking for netCDF header-file configure:1306: checking for netCDF library configure:1335: checking for package version F.: cd perl && /home/www/data/hoop/bin/perl Makefile.PL POLLUTE=0 Checking if your kit is complete... Looks good Writing Makefile for NetCDF G.: make[1]: Entering directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' make[2]: Entering directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' making `dynamic' in directory /data/hoop/PERL/netcdf-perl-1.2.3/src/perl make[3]: Entering directory `/data/hoop/PERL/netcdf-perl-1.2.3/src/perl' /home/www/data/hoop/bin/perl /home/www/data/hoop/lib/perl5/5.8.5/ExtUtils/xsubp p -typemap /home/www/data/hoop/lib/perl5/5.8.5/ExtUtils/typemap NetCDF.xs > N etCDF.xsc && mv NetCDF.xsc NetCDF.c Please specify prototyping behavior for NetCDF.xs (see perlxs manual) /opt/SUNWspro/bin/cc -c -I/usr/local/include -I/usr/local/include -D_LARGEFILE _SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.2.3\" -DXS_VERSION=\"1.2.3\" - -KPIC "-I/home/www/data/hoop/lib/perl5/5.8.5/sun4-solaris/CORE" NetCDF.c Running Mkbootstrap for NetCDF () chmod 644 NetCDF.bs rm -f blib/arch/auto/NetCDF/NetCDF.so LD_RUN_PATH="" /opt/SUNWspro/bin/cc -G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWsp ro/WS6U2/lib -L/usr/local/lib NetCDF.o -o blib/arch/auto/NetCDF/NetCDF.so chmod 755 blib/arch/auto/NetCDF/NetCDF.so cp NetCDF.bs blib/arch/auto/NetCDF/NetCDF.bs chmod 644 blib/arch/auto/NetCDF/NetCDF.bs make[3]: Leaving directory `/data/hoop/PERL/netcdf-perl-1.2.3/src/perl' returning to directory /data/hoop/PERL/netcdf-perl-1.2.3/src make[2]: Leaving directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' make[1]: Leaving directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' test ! -f perl/so_locations || chmod a+w perl/so_locations H.: make[1]: Entering directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' making `test' in directory /data/hoop/PERL/netcdf-perl-1.2.3/src/perl make[2]: Entering directory `/data/hoop/PERL/netcdf-perl-1.2.3/src/perl' cp NetCDF.pm blib/lib/NetCDF.pm AutoSplitting blib/lib/NetCDF.pm (blib/lib/auto/NetCDF) PERL_DL_NONLAZY=1 /home/www/data/hoop/bin/perl "-Iblib/lib" "-Iblib/arch" test. pl Can't load 'blib/arch/auto/NetCDF/NetCDF.so' for module NetCDF: ld.so.1: /home/ www/data/hoop/bin/perl: fatal: relocation error: file blib/arch/auto/NetCDF/Net CDF.so: symbol ncopts: referenced symbol not found at /home/www/data/hoop/lib/p erl5/5.8.5/sun4-solaris/DynaLoader.pm line 230. at test.pl line 5 Compilation failed in require at test.pl line 5. BEGIN failed--compilation aborted at test.pl line 5. make[2]: *** [test_dynamic] Error 255 make[2]: Leaving directory `/data/hoop/PERL/netcdf-perl-1.2.3/src/perl' make[1]: *** [perl/test] Error 1 make[1]: Leaving directory `/data/hoop/PERL/netcdf-perl-1.2.3/src' make: *** [test] Error 2 In addition, I had the following environment variable settings: CPP_NETCDF=-I/usr/local/include LD_NETCDF=-L/usr/local/lib PERL=/home/www/data/hoop/bin/perl PERL_MANDIR=/home/www/data/hoop/man I just downloaded this perl last week (5.8.5). The NetCDF in /usr/local/lib is 3.4. I didn't have any trouble doing UDUNITS-PERL. Thanks, - -Hoop ------- End of Original Message