We tried to install the NetCDF-C v4.6.1 on our Linux. The Intel compilers (icc and ifort) are installed on the system. Before we installed NetCDF-C v4.6.1, we have successfully installed zlib, curl, and hdf5. After I run './configure --prefix=..', I run 'make' and it shows the following error message before the installation is terminated:
the reason that your linker cannot find the library is because it is not in any (system) path known to the linker that are normally stored in the environment variable LD_LIBRARY_PATH. Try to execute 'echo $LD_LIBRARY_PATH' then you will see which paths are in there. libimf.so and all the other libraries are not found. Somewhere in your Intel Parallel Studio installation (search for `which ifort`) there should be a shell script `compilervars.sh` that you need to source (`source compilarvars.sh`). Alternatively, you can add the path for your libraries to LD_LIBRARY_PATH. Also make sure that the library versions that you try to link fit to your OS (i.e. 64bit vs. 32bit).
When I run "locate compilervars.sh", it shows:
Which one I need to source? I am pretty sure that our Linux machine is 64bit, rather than 32bit.
When I type command 'source /opt/intel/bin/compilervars.sh', it shows following message:
After I provide the LD_LIBRARY_PATH on the .bashrc file. The .bashrc file includes:
Please look at some other threads: https://software.intel.com/en-us/forums/intel-software-development-products-download-registration-licensing/topic/605375
How could you possibly have compiled one package with the Intel Fortran compiler and for the next one your license expired? What does the mentioned license file say? Sometimes when it is at a distributed file system, this file system could be down. This is a question for your IT department.
You are correct. I ask our IT department regarding to licenses expired issue. They do something (I don't know). Now the Intel license is working and I can successfully install the NetCDF-Fortran.
Your help is greatly important so I have successfully installed the NetCDF packages. Thank you very much!
Have a nice weekend!