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.
Jonathan, > I am trying to install netcdf-perl onto another system (after installing > latest packages of zlib, hdf5, and netcdf 4.2). This time things error out > at "make test" with the error: > > Can't load 'blib/arch/auto/NetCDF/NetCDF.so' for module NetCDF: > blib/arch/auto/NetCDF/NetCDF.so: undefined symbol: curl_easy_getinfo at > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230. > > NOTE: all the support reqd info is way below > > I have confirmed libcurl is installed on the system: > > # locate libcurl > /usr/lib/libcurl.a > /usr/lib/libcurl.so > /usr/lib/libcurl.so.3 > /usr/lib/libcurl.so.3.0.0 > /usr/lib/pkgconfig/libcurl.pc > /usr/lib64/libcurl.a > /usr/lib64/libcurl.so > /usr/lib64/libcurl.so.3 > /usr/lib64/libcurl.so.3.0.0 > /usr/lib64/pkgconfig/libcurl.pc > > and that the linker has them cached in: > > # ldconfig -p | grep libcurl > libcurl.so.3 (libc6,x86-64) => /usr/lib64/libcurl.so.3 > libcurl.so.3 (libc6) => /usr/lib/libcurl.so.3 > libcurl.so (libc6,x86-64) => /usr/lib64/libcurl.so > libcurl.so (libc6) => /usr/lib/libcurl.so > > > Actually setting LD_LIBRARY _PATH to /usr/lib64 doesnt seem to help. > > So... I am a little perplexed... Or must be overlooking something obvious. It's not obvious to me what's wrong, either. Drop into the "perl/" subdirectory and send me the output of the command "ldd blib/arch/auto/NetCDF/NetCDF.so". > Thanks in advance for any assistance. > > > Jonathan > Jonathan B. Auerbach > Systems Administrator > NOAA/OAR/ESRL/GSD > > > > Per the INSTALL file, here are the requested "support" items (it dies at > make test): > > A. Linux fvs-ana3.fsl.noaa.gov 2.6.18-274.17.1.el5 #1 SMP Wed Jan 4 > 22:45:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux > B. VERSION = 1.2.4 > C. /usr/bin/cc > D. # cat configure.log > loading cache ./config.cache > checking for manual-page index command... > checking for perl... (cached) perl > checking for perl manual page directory... /usr/share/man > checking for value of perl POLLUTE variable... 0 > checking for neqn... (cached) neqn > checking for tbl... (cached) tbl > checking for c89... (cached) c89 > checking type of operating system... linux > checking for tar flags... -chof > checking for netCDF header-file... -I/usr/local/include > checking for netCDF library... -L/usr/local/lib -lnetcdf -L/usr/local/lib > -lhdf5 -lhdf5_hl > checking for package version... 1.2 > 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. # cat config.log > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:635: checking for manual-page index command > configure:648: checking for perl > 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:1099: checking for c89 > 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. # cat makefile.log > cd perl && perl Makefile.PL POLLUTE=0 > Writing Makefile for NetCDF > > G. # cat make.log > make[1]: Entering directory `/root/netcdf-perl-1.2.4/src' > make[2]: Entering directory `/root/netcdf-perl-1.2.4/src' > > making `dynamic' in directory /root/netcdf-perl-1.2.4/src/perl > > make[3]: Entering directory `/root/netcdf-perl-1.2.4/src/perl' > gcc -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE > -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -DVERSION=\"1.2.4\" -DXS_VERSION=\"1.2.4\" -fPIC > "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" NetCDF.c > Running Mkbootstrap for NetCDF () > chmod 644 NetCDF.bs > rm -f blib/arch/auto/NetCDF/NetCDF.so > gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic NetCDF.o > -o blib/arch/auto/NetCDF/NetCDF.so \ > -L/usr/local/lib -lnetcdf -L/usr/local/lib -lhdf5 -lhdf5_hl > \ > > 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 `/root/netcdf-perl-1.2.4/src/perl' > > returning to directory /root/netcdf-perl-1.2.4/src > > make[2]: Leaving directory `/root/netcdf-perl-1.2.4/src' > make[1]: Leaving directory `/root/netcdf-perl-1.2.4/src' > test ! -f perl/so_locations || chmod a+w perl/so_locations > > H. # cat test.log > make[1]: Entering directory `/root/netcdf-perl-1.2.4/src' > > making `test' in directory /root/netcdf-perl-1.2.4/src/perl > > make[2]: Entering directory `/root/netcdf-perl-1.2.4/src/perl' > PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl > Can't load 'blib/arch/auto/NetCDF/NetCDF.so' for module NetCDF: > blib/arch/auto/NetCDF/NetCDF.so: undefined symbol: curl_easy_getinfo at > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/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 2 > make[2]: Leaving directory `/root/netcdf-perl-1.2.4/src/perl' > make[1]: *** [perl/test] Error 1 > make[1]: Leaving directory `/root/netcdf-perl-1.2.4/src' > make: *** [test] Error 2 Regards, Steve Emmerson Ticket Details =================== Ticket ID: FUY-836234 Department: Support netCDF Perl Priority: Normal Status: Closed