netcdf.mod not found during compile - Forum - Delft3D
Forum
- Home
- 2. Questions and troubleshooting
- 2.1 Questions about the software
- 2.1.1 Compiling the code
- netcdf.mod not found during compile
netcdf.mod not found during compile
Kangnian Wang, modified 3 Years ago.
netcdf.mod not found during compile
Youngling Posts: 4 Join Date: 11/7/21 Recent Posts
I'm trying to install Delft3D4 7545 on a supercomputer using GNU compiler.
I follow the steps in README in src/, but at the last step, make ds-install,
I always get the error as below.
../../../../../scripts_lgpl/linux/update_version.sh \
./io_netcdf_version.F90 . ./../include/version_number.ini /home/usr3/p70133d/delft3d_repository/7545_gnu/src
Generating version number in the ./io_netcdf_version.F90
Done, new version number is: 141291
/bin/sh ../../../../../libtool --tag=FC --mode=compile gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c -o io_netcdf_version.lo io_netcdf_version.F90
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c io_netcdf_version.F90 -fPIC -o .libs/io_netcdf_version.o
Warning: Nonexistent include directory "/include"
gfortran: warning: /home/app/netcdf/4.7.4/include: linker input file unused because linking not done
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c io_netcdf_version.F90 -o io_netcdf_version.o >/dev/null 2>&1
/bin/sh ../../../../../libtool --tag=FC --mode=compile gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c -o netcdf_utils.lo netcdf_utils.F90
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c netcdf_utils.F90 -fPIC -o .libs/netcdf_utils.o
Warning: Nonexistent include directory "/include"
netcdf_utils.F90:33.4:
use netcdf
1
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
In my .bashrc, I set things about NETCDF like below.
It is a provided module in my supercomputer.
export NETCDF="/home/app/netcdf/4.7.4"
export NETCDF_CFLAGS="/home/app/netcdf/4.7.4/include"
export NETCDF_LIBS="/home/app/netcdf/4.7.4/lib"
While the error message says 'netcdf.mod' can't be found, the file 'netcdf.mod' can be found in include/.
I don't know what is wrong and can't find out the way solving it.
Your help will be most grateful.
regards,
Kangnian Wang
I follow the steps in README in src/, but at the last step, make ds-install,
I always get the error as below.
../../../../../scripts_lgpl/linux/update_version.sh \
./io_netcdf_version.F90 . ./../include/version_number.ini /home/usr3/p70133d/delft3d_repository/7545_gnu/src
Generating version number in the ./io_netcdf_version.F90
Done, new version number is: 141291
/bin/sh ../../../../../libtool --tag=FC --mode=compile gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c -o io_netcdf_version.lo io_netcdf_version.F90
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c io_netcdf_version.F90 -fPIC -o .libs/io_netcdf_version.o
Warning: Nonexistent include directory "/include"
gfortran: warning: /home/app/netcdf/4.7.4/include: linker input file unused because linking not done
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c io_netcdf_version.F90 -o io_netcdf_version.o >/dev/null 2>&1
/bin/sh ../../../../../libtool --tag=FC --mode=compile gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c -o netcdf_utils.lo netcdf_utils.F90
libtool: compile: gfortran -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src -I/include -DWITH_DELFTONLINE /home/app/netcdf/4.7.4/include -O2 -ffree-line-length-none -cpp -c netcdf_utils.F90 -fPIC -o .libs/netcdf_utils.o
Warning: Nonexistent include directory "/include"
netcdf_utils.F90:33.4:
use netcdf
1
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
In my .bashrc, I set things about NETCDF like below.
It is a provided module in my supercomputer.
export NETCDF="/home/app/netcdf/4.7.4"
export NETCDF_CFLAGS="/home/app/netcdf/4.7.4/include"
export NETCDF_LIBS="/home/app/netcdf/4.7.4/lib"
While the error message says 'netcdf.mod' can't be found, the file 'netcdf.mod' can be found in include/.
I don't know what is wrong and can't find out the way solving it.
Your help will be most grateful.
regards,
Kangnian Wang
Adri Mourits, modified 3 Years ago.
RE: netcdf.mod not found during compile
Padawan Posts: 97 Join Date: 1/3/11 Recent Posts
Does adding the following lines help:
1 | export LD_LIBRARY_PATH=/home/app/netcdf/4.7.4/lib:$LD_LIBRARY_PATH |
2 | export PATH=/home/app/netcdf/4.7.4/bin:$PATH |
3 | export PKG_CONFIG_PATH_LIBS=/home/app/netcdf/4.7.4/lib/pkgconfig:$PKG_CONFIG_PATH |
Kangnian Wang, modified 3 Years ago.
RE: netcdf.mod not found during compile
Youngling Posts: 4 Join Date: 11/7/21 Recent Posts
Dear Ardi,
Thank you for your reply.
In fact, I found that the netcdf in my supercomputer is built by Intel, so perhaps that's the issue.
Therefore I'm trying to build Delft3D using Intel now, however, I'm facing another problem as described in the link below. I will be very grateful if you can take a look of it. Thank you in advance.
https://oss.deltares.nl/web/delft3d/forum/-/message_boards/message/5107384#_com_liferay_message_boards_web_portlet_MBPortlet_message_5107384
Thank you for your reply.
In fact, I found that the netcdf in my supercomputer is built by Intel, so perhaps that's the issue.
Therefore I'm trying to build Delft3D using Intel now, however, I'm facing another problem as described in the link below. I will be very grateful if you can take a look of it. Thank you in advance.
https://oss.deltares.nl/web/delft3d/forum/-/message_boards/message/5107384#_com_liferay_message_boards_web_portlet_MBPortlet_message_5107384