howtos:how_to_install_hec-ras_on_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:how_to_install_hec-ras_on_linux [2024-07-21 09:39 am] – removed - external edit (Unknown date) 127.0.0.1 | howtos:how_to_install_hec-ras_on_linux [2024-08-30 06:45 pm] (current) – hcho | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== How to install HEC-RAS on Linux ====== | ||
| + | Login to the Linux machine. In this example, we use NMSU's Discovery node '' | ||
| + | <code bash> | ||
| + | # connect to the NMSU network using either Wi-Fi or VPN | ||
| + | ssh NMSU_username@discovery-l2 | ||
| + | # type your NMSU password | ||
| + | </ | ||
| + | |||
| + | Download the [[https:// | ||
| + | <code bash> | ||
| + | mkdir -p ~/ | ||
| + | cd ~/ | ||
| + | wget https:// | ||
| + | </ | ||
| + | |||
| + | Uncompress the downloaded file. | ||
| + | <code bash> | ||
| + | mkdir -p ~/ | ||
| + | cd ~/ | ||
| + | unzip ~/ | ||
| + | mv HEC-RAS_610_Linux hecras | ||
| + | </ | ||
| + | |||
| + | Uncompress Linux binaries. | ||
| + | <code bash> | ||
| + | cd hecras | ||
| + | unzip RAS_Linux_test_setup.zip | ||
| + | </ | ||
| + | |||
| + | Move binaries and libraries to '' | ||
| + | <code bash> | ||
| + | mv RAS_Linux_test_setup/ | ||
| + | chmod a+x bin/* | ||
| + | mv RAS_Linux_test_setup/ | ||
| + | </ | ||
| + | |||
| + | Set up environment variables for HEC-RAS. Don't type it; copy-paste '' | ||
| + | <code bash> | ||
| + | cat << ' | ||
| + | # HEC-RAS | ||
| + | export PATH=" | ||
| + | export LD_LIBRARY_PATH=" | ||
| + | EOT | ||
| + | |||
| + | . ~/ | ||
| + | </ | ||
| + | |||
| + | Let's test it. | ||
| + | <code bash> | ||
| + | cd RAS_Linux_test_setup/ | ||
| + | cp wrk_source/ | ||
| + | RasUnsteady Muncie.c04 b04 | ||
| + | </ | ||
| + | |||
| + | Did it run? | ||
| + | |||
| + | Delete extra files and directories. | ||
| + | <code bash> | ||
| + | cd ../.. | ||
| + | rm -rf RAS* remove* | ||
| + | </ | ||
