<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Compilation of delft3d  under centos 7 Can't open module file 'netcdf.mod'</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/c/message_boards/find_thread?p_l_id=3231581&amp;threadId=3398438" />
  <subtitle>Compilation of delft3d  under centos 7 Can't open module file 'netcdf.mod'</subtitle>
  <id>https://dlt-acc.firelay.cloud/c/message_boards/find_thread?p_l_id=3231581&amp;threadId=3398438</id>
  <updated>2026-05-15T15:07:11Z</updated>
  <dc:date>2026-05-15T15:07:11Z</dc:date>
  <entry>
    <title>RE: Compilation of delft3d  under centos 7 Can't open module file 'netcdf.m</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398946" />
    <author>
      <name>Adri Mourits</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398946</id>
    <updated>2018-09-05T18:27:21Z</updated>
    <published>2018-09-05T18:27:21Z</published>
    <summary type="html">&lt;p&gt;Hi Gary,&lt;/p&gt;
&lt;p&gt;Does binary &amp;quot;/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90&amp;quot; exist?&lt;/p&gt;
&lt;p&gt;It is important that the mpich version you use is compiled with
  exactly the same compiler as you plan to use for Delft3D. It might be
  wise to download the mpich source code and compile it yourself, just
  to be sure.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adri&lt;/p&gt;</summary>
    <dc:creator>Adri Mourits</dc:creator>
    <dc:date>2018-09-05T18:27:21Z</dc:date>
  </entry>
  <entry>
    <title>Compilation of delft3d  under centos 7 Can't open module file 'netcdf.mod'</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398437" />
    <author>
      <name>Gary Gatling</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398437</id>
    <updated>2018-08-08T02:07:17Z</updated>
    <published>2018-08-08T02:07:17Z</published>
    <summary type="html">&lt;p&gt;Hello. I am trying to help a student who needs this software to work
  under centos 7. I know nothing about it.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;First try using&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;./autogen.sh&lt;/p&gt;
&lt;p&gt;./configure&lt;/p&gt;
&lt;p&gt;make&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;libtool: compile:  gfortran -DHAVE_CONFIG_H -I. -I../../../../..
  -I../../../../../utils_lgpl/deltares_common/packages/deltares_common/src
  -I/include -DWITH_DELFTONLINE -g -O2 -ffree-line-length-none -cpp -c
  netcdf_utils.F90  -fPIC -o .libs/netcdf_utils.o&lt;br /&gt; Warning:
  Nonexistent include directory &amp;quot;/include&amp;quot;&lt;br /&gt; netcdf_utils.F90:33.4:&lt;/p&gt;
&lt;p&gt;use netcdf&lt;br /&gt;     1&lt;br /&gt; Fatal Error: Can't open module file
  'netcdf.mod' for reading at (1): No such file or directory&lt;br /&gt;
  make[6]: *** [netcdf_utils.lo] Error 1&lt;br /&gt; ...&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have installed via yum: &lt;/p&gt;
&lt;p&gt;environment-modules-3.2.10-10.el7.x86_64&lt;br /&gt;
  openmpi-1.10.7-1.el7.x86_64&lt;br /&gt;
  openmpi-devel-1.10.7-1.el7.x86_64&lt;br /&gt;
  mpich-3.0-3.0.4-10.el7.x86_64&lt;br /&gt;
  hdf5-openmpi-1.8.12-10.el7.x86_64&lt;br /&gt;
  netcdf-fortran-4.2-16.el7.x86_64&lt;br /&gt;
  hdf5-mpich-1.8.12-10.el7.x86_64&lt;br /&gt;
  netcdf-mpich-4.3.3.1-5.el7.x86_64&lt;br /&gt;
  netcdf-openmpi-4.3.3.1-5.el7.x86_64&lt;br /&gt;
  hdf5-openmpi-devel-1.8.12-10.el7.x86_64&lt;br /&gt;
  netcdf-openmpi-devel-4.3.3.1-5.el7.x86_64&lt;br /&gt;
  mpich-3.0-devel-3.0.4-10.el7.x86_64&lt;br /&gt;
  hdf5-mpich-devel-1.8.12-10.el7.x86_64&lt;br /&gt;
  netcdf-mpich-devel-4.3.3.1-5.el7.x86_64&lt;br /&gt;
  netcdf-fortran-mpich-4.2-16.el7.x86_64&lt;br /&gt;
  netcdf-fortran-openmpi-4.2-16.el7.x86_64&lt;br /&gt;
  netcdf-fortran-openmpi-devel-4.2-16.el7.x86_64&lt;br /&gt;
  netcdf-fortran-mpich-devel-4.2-16.el7.x86_64&lt;br /&gt;
  netcdf-fortran-devel-4.2-16.el7.x86_64&lt;br /&gt;
  openmpi3-3.0.0-1.el7.x86_64&lt;br /&gt;
  openmpi3-devel-3.0.0-1.el7.x86_64&lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;But none of it helped.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried downloading netcdf-4.6.1.tar.gz and built and installed it
  locally and set&lt;/p&gt;
&lt;p&gt;export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/netcdf.pc&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But nothing helps. It always gives same error.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;second method attempt:&lt;/p&gt;
&lt;p&gt;./build.sh -gnu&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;which sets bizarre things like&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;export MPIFC=&amp;quot;/opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90&amp;quot;
  (which does not exist)&lt;/p&gt;
&lt;p&gt;20180807.200056 :: Running make ds-install &amp;amp;&amp;gt;
  logs/make.log&lt;br /&gt; 20180807.200056 :: Make fails!&lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;in logs/make.log&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt; /opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90   -DWITH_DELFTONLINE -O2
   -ffree-line-length-none -cpp -c -o version_number.o
   version_number.f90&lt;br /&gt; make[5]:
  /opt/mpich2-1.4.1-gcc-4.6.2/bin/mpif90: Command not found&lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;Starting to give up hope that it would even be possible to compile
  this software on a centos 7 machine.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Does anyone know what she or I are doing wrong here? Has anyone
  succeeded without buying expensive intel compiler and just using gnu
  under centos 7 or RHEL 7?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Gary Gatling</dc:creator>
    <dc:date>2018-08-08T02:07:17Z</dc:date>
  </entry>
</feed>
