====== How to install HEC-RAS on Linux ====== Login to the Linux machine. In this example, we use NMSU's Discovery node ''discovery-l2'': # connect to the NMSU network using either Wi-Fi or VPN ssh NMSU_username@discovery-l2 # type your NMSU password Download the [[https://www.hec.usstart?rev=1721575766ace.army.mil/software/hec-ras/downloads/HEC-RAS_610_Linux.zip|HEC-RAS 6.1.0 Linux version]]. mkdir -p ~/archive/hecras cd ~/archive/hecras wget https://www.hec.usace.army.mil/software/hec-ras/downloads/HEC-RAS_610_Linux.zip Uncompress the downloaded file. mkdir -p ~/usr/local/opt cd ~/usr/local/opt unzip ~/archive/hecras/HEC-RAS_610_Linux.zip mv HEC-RAS_610_Linux hecras Uncompress Linux binaries. cd hecras unzip RAS_Linux_test_setup.zip Move binaries and libraries to ''~/usr/local/opt/hecras''. mv RAS_Linux_test_setup/Ras_v61/Release bin chmod a+x bin/* mv RAS_Linux_test_setup/libs lib Set up environment variables for HEC-RAS. Don't type it; copy-paste ''cat << 'EOT'...EOT'' into the terminal. cat << 'EOT' >> ~/.bash_profile # HEC-RAS export PATH="$HOME/usr/local/opt/hecras/bin:$PATH" export LD_LIBRARY_PATH="$HOME/usr/local/opt/hecras/lib:$HOME/usr/local/opt/hecras/lib/mkl:$HOME/usr/local/opt/hecras/lib/rhel_8:$LD_LIBRARY_PATH" EOT . ~/.bash_profile Let's test it. cd RAS_Linux_test_setup/Muncie cp wrk_source/Muncie.p04.tmp.hdf . RasUnsteady Muncie.c04 b04 Did it run? Delete extra files and directories. cd ../.. rm -rf RAS* remove*