When compiling under Ubuntu 18.10 I am getting this issue when
checking for NETCDF... no configure: error: Package
requirements (netcdf) were not met:
No package 'netcdf' found
Consider adjusting the PKG_CONFIG_PATH environment variable if
you installed software in a non-standard prefix.
I could not find a package which is netcdf or any other related
package. What package is needed to install Delft3D?
You can download NetCDF from Unidata.
Use exactly the same C++ and Fortran compiler to build NetCDF and
Delft3D. Please check in case of using a precompiled distribution. See
also our prerequisites.
thanks for your answer. First I tried to install Delft3D following this
tutorial which lead me to the problem regarding NetCDF. Now I
tried to install it using the build_ubuntu.16.04LT.readme file in the
/src/ folder and get another error.
make: *** [Makefile:547: install-recursive] Error 1
Which I can not really understand.
It seemed quite strange to me to install the libraries under
/home/user/Downloads/libraries/ and after a restart my system does not
want to reboot again. Need to fix this first.
Is there maybe a detailed installation tutorial for Delft3D? Would
like to use one for my next try, when my system is fixed again.
Thanks in advance
Ubuntu is not our standard platform. But there is additional
information available: Folder
two text files with the name build_ubuntu*. They might be a bit
outdated, but they still will be helpful. If you notice possible
updates for these files, please post them here, then I will commit them.
I will do so if I am able to. Just for me to know and to compare to,
which distribution in the standard platform you support the most?
CentOS. CentOS versions are basicly clones of Stable RedHat versions.
thanks for the information. CentOS and Ubuntu are a bit different,
but that should not be the problem. Could fix my computer and will
start all over again.
A question regarding the SVN repository. If I see it correctly there
is just the /trunk version available for download. Is this the stable version?
Stable versions are in https://svn.oss.deltares.nl/repos/delft3d/tags/,
see als download
source code. The best way to start is by downloading the latest
stable version, currently for Delft3D 4 (structured grid): https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/62441/
and for Delft3D FM (Flexible mesh): https://svn.oss.deltares.nl/repos/delft3d/tags/delft3dfm/62800/
I had no problems compiling Delft3D version 7545
Ubuntu 16.10 in the past. Since that revision many things have changed
though, e.g. a D-FLOW-FM kernel was added (but no GUI for this model
yet available), a new model launcher dimr was developed etc.
Nevertheless, I suggest you to start from the tagged version 7545.
post (have a look at Installing_Delft3D.txt), the compilation
procedure is explained step by step there. Also browse through the
build_ubuntu-files in the src-folder as Adri suggested. I expect
compiling Delft3D on Ubuntu 18.10 is pretty much similar to the
compiling on Ubuntu 16.10.
Hope this will be a little help.
first of all, all the best for 2019.
Thank you for the information, I will take a closer look at it as
soon time allows.
As written the last time I tried the installation I destroyed my
Ubuntu system. I assume this was caused due to the needed libraries I
installed in /Documents according to the manual. The installation in
/Documents seems not that appropriate to my taste as soon as it comes
to standard libraries, which most likely come with Ubuntu in any case.
Do you maybe have any other tips or hints I should take care about
just wonder where you installed all the needed libraries? The last
time I followed the instructions to install the libraries in my user
folder the system has not been able to boot anymore. It seems that
installations you suggested does not have this issue. Moreover, I
would like to know if you tried to update to the newest revisions?
If I remember correctly, I think I had installed all needed libraries
to /usr/local/. Except for the HDF5, which I had compiled with flag
--prefix=/opt/hdf5-[version of my hdf-5 source-code].
No, I have not tried to update my Delft3D installation yet. Maybe it
will be worth trying when a flexible mesh version come to open-source.
I had the time to work with the compilation. Since I had some
problems with the library files last time, I decided to stick to the
one which can be installed via apt-get, since all of them are
available through apt-get as well.
Now I am still facing the problem to define the correct paths so that
Delft3D can find them. Usually it quite easy to get the path with
--link, but that does not work in all cases. Do you maybe know another
command to get the install paths?
Thanks and regards,
I'm glad to read that your work is in progress.
Regarding installation of packages via apt-get: b
oth mpich and netcdf must be compiled with exactly the same
compiler as Delft3d. See prerequisites
for building on Linux. In other words, these packages are being built
manually from source instead of being downloaded from repo to avoid
compiler version mismatch, which will cause the Delft3d compilation fail.
Regarding paths to dependencies: they all are defined in build.sh
script, which is normally used for building Delft3D from source. Some
manual modification of build.sh is needed though. You can also check
Qinghua Ye's script on building the Delft3D on ubuntu, located in
that with the compiler sound reasonable, I will check on that. Right
now I am working with the build.sh and the build_ubuntu16.04LT.sh
script and try to fix them to my system. Have to check on the
compilers, since I was not aware that Delft3D needs exactly the same
one, but this should not be a problem.