Last active
August 29, 2015 13:56
-
-
Save larcher/9330401 to your computer and use it in GitHub Desktop.
Installing EMIM on Ubuntu 12.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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