Skip to content

Instantly share code, notes, and snippets.

@larcher
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larcher/9330401 to your computer and use it in GitHub Desktop.
Save larcher/9330401 to your computer and use it in GitHub Desktop.
Installing EMIM on Ubuntu 12.04
# followed instructions here: http://www.staff.ncl.ac.uk/richard.howey/emim/comp.html
# plus some trial and error
# If you're trying fort77 and get errors like "concatenation of nonchar data" - try using gfortran instead.
# install packages needed to compile
sudo apt-get install \
unzip \
gcc \
g++-4.4 \
zlib1g-dev \
gfortran-4.4
# get the code and unzip it
wget http://www.staff.ncl.ac.uk/richard.howey/emim/emim-v2.06-code.zip
unzip emim-v2.06-code.zip
cd emim-v2.06-code
# compile premim
# didn't install libgzstream, so had to comment out the #define USING_GZIP line in main.h
g++-4.4 *.cpp -o premim
# compile emim
gfortran-4.4 emim.f maxfun.f -o emim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment