energy_system_modelling_wor.../hub/LINUX_INSTALL.md

1.9 KiB

LINUX_INSTALL

Prepare your environment

Install Miniconda

  1. Get the link for the latest version of Miniconda from https://docs.conda.io/en/latest/miniconda.html
  2. Download the installer using wget
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    
  3. Make the installer executable
    chmod +x ./Miniconda3-latest-Linux-x86_64.sh
    
  4. Run the installer
    ./Miniconda3-latest-Linux-x86_64.sh
    
  5. Holder enter until you are prompted to accept the license terms. Enter yes.
  6. Initialize the conda environment
    conda init bash
    
  7. Source .bashrc
    source ~/.bashrc
    
  8. Create a conda environment for the hub
    conda create --name hub python=3.9.16
    

Setup SRA

  1. Get the sra binary and libshortwave.so library from Guille or Koa
  2. Place the binary and the library into your directory of choice
  3. Make a symlink for the binary and place it into /usr/local/bin/sra
    sudo ln -s ~/sra /usr/local/bin/sra
    
  4. Make a symlink for the library and place it into /usr/local/lib/libshortwave.so
    sudo ln -s ~/libshortwave.so /usr/local/lib/libshortwave.so
    

Setup INSEL

  1. TBD

Get a Python editor

You are welcome to use the Python editor of your preference. The CERC team generally uses PyCharm to develop the hub. The latest version of PyCharm can be downloaded from JetBrains website. For setup and installation instructions, please view the "Get a Python Editor" from the WINDOWS_INSTALL documentation.