CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_install_hec-ras_on_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_install_hec-ras_on_linux [2024-07-21 04:32 pm] hchohowtos:how_to_install_hec-ras_on_linux [2026-04-09 12:35 am] (current) hcho
Line 17: Line 17:
 Uncompress the downloaded file. Uncompress the downloaded file.
 <code bash> <code bash>
-mkdir -p ~/usr/local/opt +mkdir -p ~/opt 
-cd ~/usr/local/opt+cd ~/opt
 unzip ~/archive/hecras/HEC-RAS_610_Linux.zip unzip ~/archive/hecras/HEC-RAS_610_Linux.zip
 mv HEC-RAS_610_Linux hecras mv HEC-RAS_610_Linux hecras
Line 29: Line 29:
 </code> </code>
  
-Move binaries and libraries to ''~/usr/local/opt/hecras''.+Move binaries and libraries to ''~/opt/hecras''.
 <code bash> <code bash>
 mv RAS_Linux_test_setup/Ras_v61/Release bin mv RAS_Linux_test_setup/Ras_v61/Release bin
Line 36: Line 36:
 </code> </code>
  
-Set up environment variables for HEC-RAS. Don't type it; copy-paste "cat << 'EOT'...EOTinto the terminal.+Set up environment variables for HEC-RAS. Don't type it; copy-paste ''cat << 'EOT'...EOT'' into the terminal.
 <code bash> <code bash>
 cat << 'EOT' >> ~/.bash_profile cat << 'EOT' >> ~/.bash_profile
 # HEC-RAS                     # HEC-RAS                    
-export PATH="$HOME/usr/local/opt/hecras/bin:$PATH" +export PATH="$HOME/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"+export LD_LIBRARY_PATH="$HOME/opt/hecras/lib:$HOME/opt/hecras/lib/mkl:$HOME/opt/hecras/lib/rhel_8:$LD_LIBRARY_PATH"
 EOT EOT
  
howtos/how_to_install_hec-ras_on_linux.1721601178.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki