i got a problem when compiling the netCDF library (parallel version).
In particular the problem is related to the different paths I guess. The problem is I'm not the admin of the machinge. However, teh admin himselfe has already installed an old version in an own directory (here: /root/treiber).
Tus I want to install an own version loacal in /home/stephcar/bin.
Thus, I prescribe the directories with different compiler flags:
CPPFLAGS=-I/home/stephcar/bin/include LDFLAGS=-L/home/stephcar/bin/lib LIBS='-L/home stephcar/bin/lib -lnetcdf -L/home/stephcar/bin/lib -lhdf5_hl -lhdf5 -lz -lm -L/home/stephcar/bin/lib -lsz' CC=/home/stephcar/bin/bin/mpicc FC=/home/stephcar/bin/bin/mpif90 ./configure --enable-pnetcdf --prefix=/home/stephcar/bin/
In addition: I also put my --prefix-path (/home/stephcar/bin/) also at the first position in $PATH and $LD_LIBRARY_PATH.
However, for some reason I could't figure out, the root's directory (/root/treiber) is searched and not my one ... This is the error from 'make':
/bin/sh ../libtool --tag=CC --mode=link /home/stephcar/bin/bin/mpicc -g -O2 -L/home/stephcar/bin/lib -o liboc.la
liboc_la-oc.lo liboc_la-daplex.lo liboc_la-dapparse.lo liboc_la-daptab.lo liboc_la- occlientparams.lo liboc_la-occompile.lo
liboc_la-occurlfunctions.lo liboc_la-ocdata.lo liboc_la-ocdebug.lo liboc_la-ocdump.lo liboc_la-ocinternal.lo liboc_la-ocnode.lo
liboc_la-ochttp.lo liboc_la-ocrc.lo liboc_la-ocread.lo liboc_la-ocutil.lo liboc_la-ocbytes.lo liboc_la-oclist.lo liboc_la-ocuri.lo
liboc_la-oclog.lo liboc_la-xxdr.lo -lpnetcdf -lm -L/home/stephcar/bin/lib -lnetcdf -L/home/stephcar/bin/lib -lhdf5_hl -lhdf5
-lz -lm -L/home/stephcar/bin/lib -lsz
/usr/bin/grep: /root/treiber/hdf5-1.8.8/hdf5/lib/libhdf5_hl.la: Permission denied
/usr/bin/sed: can't read /root/treiber/hdf5-1.8.8/hdf5/lib/libhdf5_hl.la: Permission denied
libtool: link: `/root/treiber/hdf5-1.8.8/hdf5/lib/libhdf5_hl.la' is not a valid libtool archive
make[2]: *** [liboc.la] Fehler 1
Do you have an idea? Did I set the flags wrong? Or is there another default path available I haven't looked at. How to search within the default paths after a pattern (here: /root/treiber)? Maybe I could get here a hint!
Thanks Stephan
EDIT Just to clarify: netCDF neads another library hdf5, which I've successfully compiled and installed into ~/bin/lib. The missing libhdf5_hl.la is thus also stored there. The actual problem is that my configure environment is not finding this directory. Instead it tries to use the one from /root/.