Skip to main content

Chama Installation - Linux

System Requirements

  • Ubuntu 16.04 or later
  • Python 3.6 or later
    • pip
    • virtualenvwrapper

Walkthrough

Prepare Python Environment

  1. Install virtualenv pip package: pip install virtualenvwrapper
  2. Configure the virtualenv pip package as described here: Linux Install virtualenvwrapper
  3. Create a python virtual environment: mkvirtualenv py36

Install GLPK

  1. cd ~
  2. wget http://gnu.askapache.com/glpk/glpk-4.65.tar.gz
  3. tar -xf glpk-4.65.tar.gz
  4. cd glpk-4.65
  5. ./configure
  6. make
  7. sudo make install
  8. sudo apt install libglpk-dev

Check LD Library Path

  1. Check if the LD_LIBRARY_PATH variable exists: echo $LD_LIBRARY_PATH
  2. If it doesn't exist, then create it: LD_LIBRARY_PATH=/usr/local/lib:/usr/local/bin
  3. Save the variable: export LD_LIBRARY_PATH

Finish Configuring Python Environment

  1. Change directory into the chama22/chama_django directory: cd ~/chama22/chama_django
  2. Ensure the environment is activated: workon chama
  3. Install requirements: pip install -r requirements.txt