> hi > first of all i am really appreciate for your nice information > but you mean: i must do step 7 before step 6? The instructions here for building the netCDF Fortran library indicate that you should set the LD_LIBRARY_PATH to include the directory where the netCDF C library was installed, before running the netCDF Fortran configure script: http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html So, yes, you should do that before step 6. I'm not sure that will solve the problem you are seeing, but if you it still won't build, please send us the details, including the config.log file from the netCDF Fortran build, and the output from "make check" if it gets that far. Thanks. --Russ > address@hidden> wrote: > > > Hi Fereshte, > > > > > i am new with linux environment. i use fedora 16 i686 release > > > i need to install netcdf4.2 with "HDF5,szip, zlib and curl > > > i searched a appropriate way for this aim and i mixed different way and > > got > > > following way: > > > > > > 1- > > > > > > Cd /home/fkomijani/zlib 1.2.7 > > > > > > ./configure --prefix=/home/fkomijani/NETCD4.2 > > > > > > make all install > > > > > > 2- > > > > > > Cd /home/fkomijani/szip 2.1 > > > > > > ./configure --prefix=/home/fkomijani/NETCD4.2 > > > > > > make check install > > > > > > > > > 3- > > > > > > cd /home/fkomijani/HDF5 1.8.9 > > > > > > ./configure --with-zlib=/home/fkomijani/NETCD4.2 > > > --with-szlib=/home/fkomijani/NETCD4.2 --prefix=/home/fkomijani/NETCD4.2 > > > > > > make check install > > > > > > 4- > > > > > > cd /home/fkomijani/curl 7.31 > > > > > > ./configure --prefix=/home/fkomijani/NETCD4.2 > > > --with-zlib=/home/fkomijani/NETCD4.2 --with-pic > > > make check install > > > > Everything looks fine above this point, but there are problems with > > step 5, below. > > > > > 5- > > > > > > cd /home/fkomijani/netcdf4.2.1.1 > > > > > > CPPFLAGS=-I/home/fkomijani/NETCD4.2/ include > > > LDFLAGS=L/home/fkomijani/NETCD4.2/lib ./configure > > > --with-hdf5=/home/fkomijani/NETCD4.2 > > > > > > --with-zlib=/home/fkomijani/NETCD4.2 > > --with-szlib=/home/fkomijani/NETCD4.2 > > > --prefix=/home/fkomijani/NETCD4.2 --enable-netcdf-4 > > > > > > make check install > > > > The netcdf4.2.1.1 and later configure script just uses CPPFLAGS > > and LDFLAGS to specify where libraries are found. The directories > > provided by --with-hdf5=, --with-zlib=, or --with-szlib= options > > are just ignored. Furthermore, the "--enable-netcdf-4" is the default > > if a usable HDF5 library is found in the directories given by CPPFLAGS > > and LDFLAGS, so is not needed. So the above could just be invoked as > > > > CPPFLAGS=-I/home/fkomijani/NETCD4.2/include > > LDFLAGS=-L/home/fkomijani/NETCD4.2/lib > > ./configure --prefix=/home/fkomijani/NETCD4.2 > > > > Note I've corrected the extra space you had in > > > > > CPPFLAGS=-I/home/fkomijani/NETCD4.2/ include > > > > and the missing "-" you had in > > > > > LDFLAGS=L/home/fkomijani/NETCD4.2/lib ./configure > > > > > 6- > > > > > > cd /home/fkomijani/netcdf-fortran-4.2 > > > > > > ./configure --prefix=/home/fkomijani/NETCDF4.2 > > > > > > make check > > > > > > make install > > > > The configure statement above is not quite enough to allow > > the shared libraries to be found by the Fortran compiler. You > > also need to specify the environment variable > > > > LD_LIBRARY_PATH=/home/fkomijani/NETCDF4.2/lib:${LD_LIBRARY_PATH} > > > > unless you have configured your system to always look in that > > directory by default for shared libraries. Or you could define > > this environment variable in your .bashrc and source that, as you > > describe below. > > > > > 7- and then add 2 following sentence in.bashrc: > > > > > > PATH=/home/fkomijani/NETCD4.2/bin:$PATH; export PATH > > > > > > export LD_LIBRARY_PATH=/home/fkomijani/NETCD4.2/lib:${LD_LIBRARY_PATH} > > > > > > after step 4 i got following errors: > > > > > > /bin/sh ../../libtool --tag=CC --mode=link gcc -O2 > > -Wno-system-headers > > > -L/home/fkomijani/NETCD4.2/lib -o usercertinmem usercertinmem.o > > ../../lib/ > > > libcurl.la > > > libtool: link: gcc -O2 -Wno-system-headers -o .libs/usercertinmem > > > usercertinmem.o -L/home/fkomijani/NETCD4.2/lib > > ../../lib/.libs/libcurl.so > > > -Wl,-rpath -Wl,/home/fkomijani/NETCD4.2/lib > > > /usr/bin/ld: usercertinmem.o: undefined reference to symbol > > > 'SSL_CTX_use_RSAPrivateKey' > > > /usr/bin/ld: note: 'SSL_CTX_use_RSAPrivateKey' is defined in DSO > > > /usr/lib/libssl.so.10 so try adding it to the linker command line > > > /usr/lib/libssl.so.10: could not read symbols: Invalid operation > > > collect2: ld returned 1 exit status > > > make[2]: *** [usercertinmem] Error 1 > > > make[2]: Leaving directory `/home/fkomijani/curl-7.31.0/docs/examples' > > > make[1]: *** [check-am] Error 2 > > > make[1]: Leaving directory `/home/fkomijani/curl-7.31.0/docs/examples' > > > make: *** [examples] Error 2 > > > > > > would you please tell me that this way is correct or not? > > > > The above error looks like a problem with running "make check" for the > > curl library, rather than a netCDF problem. I'm not familiar with all > > the options for configuring and building libcurl, so you may need to > > consult curl support to resolve that problem, if it persists. > > > > --Russ > > > > Russ Rew UCAR Unidata Program > > address@hidden http://www.unidata.ucar.edu > > > > > > > > Ticket Details > > =================== > > Ticket ID: ZMJ-285878 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > > > -- > ***Angel*** > > ** > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ZMJ-285878 Department: Support netCDF Priority: Normal Status: Closed
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly 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.