Hi guys and girls,

Some of you might be intressted in installing GAMS on your Linux mechin. Since the download is an .exe file it will be strange for most of you linux users. The notes on GAMS's webside is not so clear so I take the freedom to share this post. To install GAMS on Linux (Ubuntu 13.04) :

  • 1) Download the file and put it on your home directory /home/username/. We are going to install GAMS there just for simplicity. I don't recommend installing it on /usr/..
  • 2) Make a directory on your home/user . using terminal :
mkdir /home/username/GAMS

I write /home/username/.. just to be clear about location. if you know you are in the home folder just write: mkdir GAMS

  • 3) Now move your downloaded .exe file into the directory
  • 4) in terminal:
cd /home/username/GAMS
  • 5) Same terminal window
sudo chmod +x NameOfTheFile.exe
  • 6) Again
./NameOfTheFile

It will unzip the .exe file

  • 7) Now again, in terminal go the mapp it just created
cd NameOfTheFolder
  • 8) Again
./gamsint
  • 9) Follow the instruction, it will be installed

Now Gams is installed and you just need to adress it in bashrc

  • 1) Just open a new terminal
  • 2) Write
gedit .bashrc 

If you have other text editor you can use it instead. I personally use mousepad so the command will be ' mousepad .bashrc'

  • 3) After last line in the bottom write:
alias gams='/home/username/GAMS/.../gams'
  • 4) Save and exit
  • 5) Now we reload Bashrc in the terminal:
. ~/.bashrc
  • 6) Now if you write gams in the terminal you will get the program start. =)

To use gams, write your code in a text editor. and go to terminal and write

gams TheFile