Successfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)Successfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)https://oss.deltares.nl/c/message_boards/find_thread?p_l_id=1806675&threadId=20143052024-03-29T07:05:21Z2024-03-29T07:05:21ZRE: Successfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)mclean rosshttps://oss.deltares.nl/c/message_boards/find_message?p_l_id=1806675&messageId=52969562022-09-14T09:02:42Z2022-09-14T09:02:06ZMaintaining backups of your instances and data is a great practice. Before you modify your infrastructure, consider building an AMI or <a href="https://cookieclickercity.com/">cookie clicker</a> taking snapshots of your EBS volumes.mclean ross2022-09-14T09:02:06ZRE: Successfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)yahagi tarohttps://oss.deltares.nl/c/message_boards/find_message?p_l_id=1806675&messageId=21935752019-02-24T05:04:10Z2019-02-24T05:04:10Z<p>Excellent! Successfully installed by following this instruction.</p>yahagi taro2019-02-24T05:04:10ZRE: Successfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)João Lencart e Silvahttps://oss.deltares.nl/c/message_boards/find_message?p_l_id=1806675&messageId=21545592019-01-30T12:11:06Z2019-01-30T12:11:06Z<p>This is great Paul!</p>
<p>Have you successfully resized the machine to increase cpu/memory?</p>
<p> </p>
<p>João.</p>João Lencart e Silva2019-01-30T12:11:06ZSuccessfully installed and run Delft3d on Amazon AWS Ubuntu 16.04 (EC2)Paul Liuhttps://oss.deltares.nl/c/message_boards/find_message?p_l_id=1806675&messageId=20143042018-11-03T16:07:07Z2018-11-03T04:10:51Z<p>Have successfully Installed and run Delft3d on Amazon AWS Ubuntu
16.04 (EC2) or any PC<br /> by Paul Liu (jpliu AT ncsu.edu)<br />
<br /> I have tested the following procedures on 1)Amazon AWS EC2
Ubuntu 16.04 (Free tier);</p>
<p>2) an old Dell PC installed Ubuntu 16.04 desktop; 3) and an old
Lenovo PC.<br />
<br /> I downloaded and tested both trunk revision 5740 and trunk
7545. The latest trunk revision 62441 does not work.<br />
<br /> If you follow the following step by step, you should be able to
install and run the Delft3d without a problem. Please test and see if
it works for you, please let me know if nay step does not work.<br />
<br /> Just copy and paste the following commands one by one to
Terminal (1)<br />
<br /> 1. Update and upgrade your Ubuntu 16.04 system:<br />
<br /> 1) <strong>sudo apt-get update</strong>
<br />
<br /> 2) <strong>sudo apt-get upgrade</strong>
<br />
<br /> 2. Install the required compliers and programs:<br />
<br /> 1) <strong>sudo apt-get install build-essential subversion
autoconf libtool bison flex g++ gfortran libstdc++6 byacc libexpat1
libexpat1-dev uuid-dev ruby make</strong>
<br />
<br /> 2) <strong>sudo apt-get install libcurl4-openssl-dev</strong>
<br />
<br /> 3) <strong>sudo apt-get install -y pkg-config</strong>
<br />
<br /> 3. Now, you can go ahead to download the Delft3d, it may take
up to 10-20 minutes<br /> Please open a new Terminal(2) (u can right
click your Terminal from pc or mac)<br />
<br /> 1) <strong>cd ~; mkdir delft3d; cd delft3d;</strong>
<br />
<br /> 2) <strong>svn co
https://svn.oss.deltares.nl/repos/delft3d/tags/delft3d4/7545/ trunk7545</strong>
<br />
<br /> it needs your admin passed and delft3d username and passed to download.<br />
<br /> 4. go back Terminal (1), get and install MPICH-3.2<br />
<br /> 1) <strong>cd ~; mkdir Downloads; cd Downloads </strong> #your
system may have already had a Downloads folder<br /> 2) <strong>wget http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz</strong>
<br /> 3) <strong>tar -xzf mpich-3.2.tar.gz; cd mpich-3.2</strong>
<br /> 4) <strong>./configure --prefix=/opt/mpich-3.2 </strong> #
INSTALL version3.2 TO "/opt/mpich-3.2"<br /> 5) <strong>make</strong>
<br /> 8) <strong>sudo make install; cd ..</strong>
<br />
<br /> 5. Get and Install ZLIB-1.2.8<br /> 1) <strong>wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/zlib-1.2.8.tar.gz</strong>
<br /> 2) <strong>tar -xzf zlib-1.2.8.tar.gz; cd zlib-1.2.8</strong>
<br /> 3) <strong>./configure --prefix=/usr/local/zlib-1.2.8</strong>
<br /> 4) <strong>make</strong>
<br /> 5) <strong>sudo make install; cd ..</strong>
<br />
<br /> 6. Get and install HDF5<br /> 1) <strong>wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.16/src/hdf5-1.8.16.tar.gz</strong>
<br /> 2) <strong>tar -zxf hdf5-1.8.16.tar.gz; cd hdf5-1.8.16</strong>
<br /> 3) <strong>./configure --prefix=/usr/local/hdf5-1.8.16 --with-zlib=/usr/local/zlib-1.2.8</strong>
<br /> 4) <strong>make</strong>
<br /> 5) <strong>sudo make install; cd ..</strong>
<br />
<br /> 7. Get and install NetCDF-C and NetCDF-fortran<br />
<br /> 1) <strong>wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.tar.gz</strong>
<br />
<br /> 2) <strong>tar -xzf v4.4.1.tar.gz; cd netcdf-c-4.4.1</strong>
<br />
<br /> 3) <strong>CPPFLAGS="-I/usr/local/hdf5-1.8.16/include
-I/usr/local/zlib-1.2.8/include
-I/usr/local/netcdf4.4/include"
LDFLAGS="-L/usr/local/hdf5-1.8.16/lib
-L/usr/local/zlib-1.2.8/lib -L/usr/local/netcdf4.4/lib" \<br />
./configure --prefix=/usr/local/netcdf4.4 --enable-netcdf-4
--enable-shared --enable-dap</strong>
<br />
<br /> 4) <strong>make</strong>
<br /> 5)<strong> sudo make install; cd ..</strong>
<br />
<br /> 6)<br />
<strong>wget https://github.com/Unidata/netcdf-fortran/archive/v4.4.4.tar.gz</strong>
<br /> 7)<br />
<strong>tar -xzf v4.4.4.tar.gz; cd netcdf-fortran-4.4.4</strong>
<br /> 8)<br />
<strong>CPPFLAGS="-I/usr/local/hdf5-1.8.16/include
-I/usr/local/netcdf4.4/include"
LDFLAGS="-L/usr/local/hdf5-1.8.16/lib
-L/usr/local/netcdf4.4/lib" ./configure
--prefix=/usr/local/netcdf4.4 --enable-shared</strong>
<br />
<br /> 9) <strong>make</strong>
<br /> 10) <strong>sudo make install; cd ..</strong>
<br />
<br /> 8. edit the Delft3d's "build.sh" file. I hope the
downloading is finished.<br />
<br /> 1) If done, in Terminal-2,<br />
<strong>cd trunk7545/src</strong>
<br />
<br /> 2) you can use "nano", "vi", or
"vim" to open and edit the "build.sh" file<br />
<br /> > <strong>vi build.sh</strong>; or <strong>nano build.sh</strong>
<br />
<br /> you only need to make changes in 3 places:<br />
<br /> 3) First place around line #258, under # mpich2 (see attached
Build.sh)<br /> if [ "$compiler" = 'gnu' ]; then<br />
>>>>#please change #line 258-262 to:<br />
<strong>addpath PATH /opt/mpich-3.2/bin<br /> export
MPI_INCLUDE=/opt/mpich-3.2/include<br /> export
MPILIBS_ADDITIONAL="-L/opt/mpich-3.2/lib -lfmpich -lmpich
-lmpl"<br /> # export MPILIBS_ADDITIONAL="
"<br /> export MPIFC=/opt/mpich-3.2/bin/mpif90</strong></p>
<p>
<br /> >>>>4) 2nd place #Change Line 295, THE netcdf root
DIR: /usr/local/netcdf4.4 (see attached Build.sh)<br /> <br />
<strong>export NETCDFROOT=/usr/local/netcdf4.4</strong>
<br />
<br /> 5) 3rd place: (see attached Build.sh)<br /> #Change around line
377. --prefix="pwd" TO
--prefix=/home/YOURID/delft3d/trunk7545/bin (by doing this, and you
do not need to change any example test case code, you can just run
it) <br /> or WHEREVER you want to install. (IF do not change
here, you can copy the lnx64 folder to and under /home/Paul/delft3d/trunk/bin)</p>
<p>(near "# More information here:<br /> #
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?full=1#book_part1_chap3<br />
command=" ")</p>
<p>>>>>#change line 377 to:</p>
<p> change ./configure --prefix='pwd' $configureArgs &> $log
\ to</p>
<p> <strong>./configure --prefix=/home/ubuntu/delft3d/trunk7545/bin
$configureArgs &> $log \</strong>
<br /> or ./configure --prefix=/home/YOURID/delft3d/trunk7545/bin
$configureArgs &> $log \<br />
<br /> (please make sure change your userid and trunk#)<br />
<br /> 6)***************** THAT'S
ALL!!!!!**************************** #SVAE the "build.sh" file<br />
<br /> 9. #NOW TRY TO COMPLIE<br />
<br />
<strong> ./build.sh -gnu -64bit</strong>
<br />
<br /> #(it will take 10-20 mins, you can check the log file under
/logs, It should be okay if anything wrong, please see what you missed)<br />
<br /> 10. Test and run examples:<br /> 1) <strong>cd ~/delft3d/trunk7545;</strong>
<br /> 2) to run the Delft3d, you need a series of right PATH and
environments<br /> # and copy the following configures into the above
file editor (n<br /> #------------------<br />
<br />
<strong>#!/bin/bash<br /> export
PATH=/home/YourID/delft3d/trunk7545/bin/lnx64/flow2d3d/bin:$PATH<br />
export
PATH=/home/YourID/delft3d/trunk7545/bin/lnx64/wave/bin:$PATH<br />
export
PATH=/home/YOURid/delft3d/trunk7545/bin/lnx64/swan/scripts:$PATH<br />
export
LD_LIBRARY_PATH=/home/YOURID/delft3d/trunk7545/bin/lnx64/flow2d3d/bin:$LD_LIBRARY_PATH<br />
export
LD_LIBRARY_PATH=/home/YOURID/delft3d/trunk7545/bin/lnx64/wave/bin:$LD_LIBRARY_PATH<br />
export
LD_LIBRARY_PATH=/home/YOURID/delft3d/trunk7545/bin/lnx64/swan/bin:$LD_LIBRARY_PATH<br />
export
LD_LIBRARY_PATH=/home/YOURID/delft3d/trunk7445/bin/lnx64/swan/scripts:$LD_LIBRARY_PATH<br />
export LD_LIBRARY_PATH=/opt/mpich-3.2/lib:$LD_LIBRARY_PATH<br />
export PATH=/opt/mpich-3.2/bin:$PATH</strong>
<br />
<br /> # ———<br />
<br /> 3) <strong>nano delft3d_env.sh </strong>
<br /> COPY AND edit the above text, PLEASE CHANGE THE YOURID to your
id, or "ubuntu" under Amazon AWS EC2;<br />
<br /> Save the file "delft3d_env.sh " under your current
trunk— "trunk7545"<br /> (see attached *.sh)<br /> 11.
#before run any project, just run a command: "<br />
<br /> <br />
<strong> source /home/ubuntu/delft3d/trunk7545/delft3d_env.sh</strong>
<br />
<br /> or<br /> source /home/YOURID/delft3d/trunk/delft3d_env.sh<br />
<br />
<br /> # THIS IS VERY IMPORTANT STEP. By doing this, will make all
paths and libraries ready to use any where you want!!!!<br />
<br /> If not, you will the following errors: "d_hydro ABORT:
Cannot load component library "libflow2d3d.so":
libmpifort.so.12: cannot open shared object file: No such file or directory"</p>
<p> </p>
<p>After run " <strong>source
/home/ubuntu/delft3d/trunk7545/delft3d_env.sh</strong>" in your Terminal</p>
<p>In any anywhere (directory/folder), you can type: wave.exe</p>
<p>you will see: "Usage: waves.exe <mdw-file> [mode]<br />
<mdw-file>: Name of the (input) mdw-file"</p>
<p>
<em>
<u>
<strong>Congratulations! You are ready to GO!</strong></u></em></p>
<p>
<br /> 12. #Go to Examples or any your project</p>
<p>
<strong>source /home/ubuntu/delft3d/trunk7545/delft3d_env.sh</strong></p>
<p>
<br /> 1) <strong>cd /home/YOURID/delft3d/trunk/examples/01_standard</strong>
<br /> 2) <strong>./run_flow2d3d.sh</strong>
<br />
<br /> #Or directly run some tests: <strong>d_hydro.exe config_d_hydro.xml</strong>
<br />
<br /> 3) flow and wave 03_flow-wave<br />
<br />
<strong>./run_flow2d3d.sh or ./run_flow2d3d_parallel_wave.sh </strong>
<br /> <br /> or <strong>d_hydro.exe config_d_hydro.xml &
wave.exe r17.mdw 1</strong></p>
<p>or Pa</p>
<p>mpirun -np 2 d_hydro.exe config_d_hydro.xml & wave.exe r17.mdw 1<br />
<br />
<code>Just enjoy!</code> If have any question, u'r welcome to contact
me: jpliu AT ncsu.edu</p>Paul Liu2018-11-03T04:10:51Z