Message Boards

Back

RE: Compiling on Ubuntu- build- make- libtools unable to find path to mpich

Siddhi Joshi, modified 5 Months ago.

Compiling on Ubuntu- build- make- libtools unable to find path to mpich

Youngling Posts: 3 Join Date: 8/22/16 Recent Posts

Hello

I am compiling delft3d on Ubuntu 16.04 and have followed exactly the procedure in the buildUBUNTU readme file in the latest trunk version (and also the tagged 7545 version) and am getting the same problem to do with the paths. I read on the forums there was a similar problem before with Mpich libraries..

Please help as the make fails after a long time.

Kind Regards

Siddhi

 

Error from Make.log:

 

libtool: line 7486: cd: ~/Downloads/libraries/mpich-3.2/lib: No such file or directory

libtool:   error: cannot determine absolute directory name of '~/Downloads/libraries/mpich-3.2/lib'
Makefile:694: recipe for target 'libflow2d3d.la' failed
make[7]: *** [libflow2d3d.la] Error 1
make[7]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d/packages/flow2d3d/src'
Makefile:743: recipe for target 'install-recursive' failed
make[6]: *** [install-recursive] Error 1
make[6]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d/packages/flow2d3d/src'
Makefile:900: recipe for target 'install' failed
make[5]: *** [install] Error 2
make[5]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d/packages/flow2d3d/src'
Makefile:493: recipe for target 'install-recursive' failed
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d/packages/flow2d3d'
Makefile:503: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d/packages'
Makefile:494: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl/flow2d3d'
Makefile:498: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/user/delft3dtrunk/src/engines_gpl'
Makefile:554: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

 

Adri Mourits, modified 5 Months ago.

RE: Compiling on Ubuntu- build- make- libtools unable to find path to mpich

Yoda Posts: 1186 Join Date: 1/3/11 Recent Posts

Hi Siddhi,

Your file "build_ubuntu1604.sh" contains several times the character tildes (~). You have to replace that by the absolute path. You can do that as follows:

On Linux execute: cd ~
And then: pwd
This will show the absolute path of the short cut reference ~, normally something like /u/siddhi
Replace all occurences of ~ in your script by this absolute path, /u/siddhi in the example above.

Regards,

Adri

Siddhi Joshi, modified 5 Months ago.

RE: Compiling on Ubuntu- build- make- libtools unable to find path to mpich

Youngling Posts: 3 Join Date: 8/22/16 Recent Posts

Thanks- I think that worked. I just get the error and looked in the forum, I tried adding this line to the NETCDF fortran make :

(from readme file)
 # Install Netcdf-fortran
      v=4.4.4
      wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-${v}.tar.gz
      tar -xf netcdf-fortran-${v}.tar.gz && cd netcdf-fortran-${v}
      CPPFLAGS=-I$NETCDF4_DIR/include LDFLAGS=-L$NETCDF4_DIR/lib LD_LIBRARY_PATH=$NETCDF4_DIR/lib:$LD_LIBRARY_PATH ./configure --prefix=$NETCDF4_DIR
      NETCDF_CFLAGS="-I<NCDIR>/include/" NETCDF_LIBS="-L<NCDIR>/lib/" NETCDF_FORTRAN_CFLAGS="-I<NCDIR>/include/" NETCDF_FORTRAN_LIBS="-L<NCDIR>/lib" ./configure
# make check
      make
      sudo make install
      cd ..

compile delft3d in ubuntu
Adri Mourits, modified 5 Months ago.

RE: Compiling on Ubuntu- build- make- libtools unable to find path to mpich

Yoda Posts: 1186 Join Date: 1/3/11 Recent Posts

Hi Siddhi,

Your file "make.log" contains the warning:

Warning: Nonexistent include directory ‘/home/user/Downloads/libraries/netcdf_4.4.1/include

Is this where you expect that netcdf.mod should be located?

Looking to your NetCDF compile script: How did you define environment parameter NETCDF4_DIR? I assume "<NCDIR>" is a placeholder that is replaced by a decent path when compiling?

Regards,

Adri