Project

General

Profile

Installation with netCDF

Added by Jerry Potter over 11 years ago

I am trying to build CDO on Ubuntu 12.04 I have attached my config.log file.
When I try "make" I get this:

.
.
.
z -lm -lnetcdf -lz -lm
libtool: link: gcc -std=gnu99 -g -O2 -pthread -o cdi cdi.o -L/usr/local/uvcdat/1.3.1/Externals//lib ../src/.libs/libcdi.a -L/usr/local/uvcdat/1.3.1/Externals/lib /usr/local/uvcdat/1.3.1/Externals/lib/libnetcdf.so /usr/local/uvcdat/1.3.1/Externals/lib/libhdf5_hl.so /usr/local/uvcdat/1.3.1/Externals/lib/libhdf5.so /usr/local/uvcdat/1.3.1/Externals/lib/libcurl.so -lidn -lssl -lcrypto -lldap -lrt -lrtmp -lz -lm -pthread -Wl,-rpath -Wl,/usr/local/uvcdat/1.3.1/Externals/lib -Wl,-rpath -Wl,/usr/local/uvcdat/1.3.1/Externals/lib
/usr/bin/ld: cannot find -lidn
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lldap
/usr/bin/ld: cannot find -lrtmp
collect2: ld returned 1 exit status
make2: * [cdi] Error 1
make2: Leaving directory `/home/potter/Downloads/cdo-1.6.1rc4/libcdi/app'
make1:
[all-recursive] Error 1
make1: Leaving directory `/home/potter/Downloads/cdo-1.6.1rc4/libcdi'
make: *
* [all-recursive] Error 1


Replies (3)

RE: Installation with netCDF - Added by Ralf Mueller over 11 years ago

check where the libssl (and the others) are installed with

ldconfig -p
or
/sbin/ldconfig -p

If they are installed (for example) into '/usr/local/lib', rerun with

./configure --with-netcdf=/usr/local/uvcdat/1.3.1/Externals LDFLAGS=-L/usr/local/lib

RE: Installation with netCDF - Added by Jerry Potter over 11 years ago

I have netcdf 4 installed on my computer and these libraries don't exist (like libldap). Do you have a version that runs with netcdf 4?
I would rather not install netcdf 3 on my computer.

RE: Installation with netCDF - Added by Jerry Potter over 11 years ago

CDO installed fine on my MAC. It must be something with the UBUNTU netcdf. I'm happy - no need to reply

    (1-3/3)