Variant 1: compile the code yourself
macOS High Siera 10.13.6
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install boost
brew install gmp
brew install gsl
wget http://nrgljubljana.ijs.si/nrgljubljana-2.4.3.33.tar.gz
tar zxvf nrgljubljana-2.4.3.33.tar.gz
cd nrgljubljana-2.4.3.33
export LDFLAGS="-fpic -framework Accelerate -L/usr/local/lib/"
export CXXFLAGS="-Wno-c++11-extensions -fpic -g -O3 -framework Accelerate -I/usr/local/include"
./configure --with-tools --prefix=${HOME}/nrg --with-boost-serialization=boost_serialization
make
make install
wget http://nrgljubljana.ijs.si/quick_test.tar.gz
tar zxvf quick_test.tar.gz
cd quick_test
export PATH=$HOME/nrg/bin:$PATH
./2_nrgrun
Ubuntu Trusty 14.04 & Debian Sid
sudo apt-get update
sudo apt-get install m4
sudo apt-get install build-essential
sudo apt-get install libboost-all-dev
sudo apt-get install libgmp-dev
sudo apt-get install libatlas-base-dev
wget http://nrgljubljana.ijs.si/nrgljubljana-2.4.3.33.tar.gz
tar zxvf nrgljubljana-2.4.3.33.tar.gz
cd nrgljubljana-2.4.3.33
export CXXFLAGS="-O3 -funroll-loops -Ddsyev=dsyev_ -Ddsyevr=dsyevr_ -Dzheev=zheev_ -Dzheevr=zheevr_"
export MISC_LIBS="-L/usr/lib -lblas -lcblas -llapack"
./configure --with-tools --with-misc -prefix=$HOME/nrg --with-boost-serialization=boost_serialization
make
make install
wget http://nrgljubljana.ijs.si/quick_test.tar.gz
tar zxvf quick_test.tar.gz
cd quick_test
export PATH=$HOME/nrg/bin:$PATH
./2_nrgrun
Ubuntu Bionic 18.04 & Debian Stretch 7.3
sudo apt-get update
sudo apt-get install m4
sudo apt-get install build-essential
sudo apt-get install libboost-all-dev
sudo apt-get install libgmp-dev
sudo apt-get install libgsl-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install pkg-config
wget http://nrgljubljana.ijs.si/nrgljubljana-2.4.3.33.tar.gz
tar zxvf nrgljubljana-2.4.3.33.tar.gz
cd nrgljubljana-2.4.3.33
export CXXFLAGS="-O3 -funroll-loops -Ddsyev=dsyev_ -Ddsyevr=dsyevr_ -Dzheev=zheev_ -Dzheevr=zheevr_"
export MISC_LIBS="$(pkg-config --libs blas) $(pkg-config --libs lapack)"
./configure --with-tools --with-misc --prefix=$HOME/nrg --with-boost-serialization=boost_serialization
make
make install
wget http://nrgljubljana.ijs.si/quick_test.tar.gz
tar zxvf quick_test.tar.gz
cd quick_test
export PATH=$HOME/nrg/bin:$PATH
./2_nrgrun
CentOS / RHEL 7.6
sudo yum group install "Development Tools”
sudo yum install gmp-devel
sudo yum install atlas-devel
sudo yum install boost
sudo yum install boost-devel
sudo yum install wget
wget ftp://ftp.gnu.org/gnu/gsl/gsl-2.5.tar.gz
tar zxvf gsl-2.5.tar.gz
cd gsl-2.5
./configure
make
sudo make install
sudo sh -c "echo /usr/local/lib >>/etc/ld.so.conf"
sudo ldconfig
cd ~
wget http://nrgljubljana.ijs.si/nrgljubljana-2.4.3.33.tar.gz
tar zxvf nrgljubljana-2.4.3.33.tar.gz
cd nrgljubljana-2.4.3.33
export CXXFLAGS="-O3 -funroll-loops -Ddsyev=dsyev_ -Ddsyevr=dsyevr_ -Dzheev=zheev_ -Dzheevr=zheevr_"
export MISC_LIBS="-L/usr/lib64/atlas -ltatlas"
./configure --with-tools --with-misc --prefix=$HOME/nrg --with-boost-serialization=boost_serialization
make
make install
wget http://nrgljubljana.ijs.si/quick_test.tar.gz
tar zxvf quick_test.tar.gz
cd quick_test
export PATH=$HOME/nrg/bin:$PATH
./2_nrgrun
Fedora 29
sudo yum -y group install "Development Tools"
sudo yum -y install gmp-devel
sudo yum -y install atlas-devel
sudo yum -y install boost boost-devel
sudo yum -y install wget
sudo yum -y install gsl-devel
sudo yum -y install gcc-c++
wget http://nrgljubljana.ijs.si/nrgljubljana-2.4.3.33.tar.gz
tar zxvf nrgljubljana-2.4.3.33.tar.gz
cd nrgljubljana-2.4.3.33
export CXXFLAGS="-O3 -funroll-loops -Ddsyev=dsyev_ -Ddsyevr=dsyevr_ -Dzheev=zheev_ -Dzheevr=zheevr_"
export MISC_LIBS="-L/usr/lib64/atlas -lsatlas"
./configure --with-tools --with-misc --prefix=$HOME/nrg --with-boost-serialization=boost_serialization
make
make install
wget http://nrgljubljana.ijs.si/quick_test.tar.gz
tar zxvf quick_test.tar.gz
cd quick_test
export PATH=$HOME/nrg/bin:$PATH
./2_nrgrun
Variant 2: use precompiled code in a singularity container
Debian Stretch 7.3
sudo apt-get install dirmngr
wget -O- http://neuro.debian.net/lists/stretch.de-m.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
sudo apt-get update
sudo apt-get install singularity-container
wget http://nrgljubljana.ijs.si/nrg.simg
wget http://nrgljubljana.ijs.si/quick_test_singularity.tar.gz
tar zxvf quick_test_singularity.tar.gz
cd quick_test_singularity
./2_nrgrun
Ubuntu Bionic 18.04
wget -O- http://neuro.debian.net/lists/bionic.de-m.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
sudo apt-get update
sudo apt-get install singularity-container
wget http://nrgljubljana.ijs.si/nrg.simg
wget http://nrgljubljana.ijs.si/quick_test_singularity.tar.gz
tar zxvf quick_test_singularity.tar.gz
cd quick_test_singularity
./2_nrgrun
CentOS / RHEL 7.6
sudo yum -y install wget
sudo yum -y install libarchive-devel
sudo yum install squashfs-tools
sudo yum group install "Development Tools"
VERSION=2.5.2
wget https://github.com/singularityware/singularity/releases/download/$VERSION/singularity-$VERSION.tar.gz
tar xvf singularity-$VERSION.tar.gz
cd singularity-$VERSION
./configure --prefix=/usr/local
make
sudo make install
cd ~
wget http://nrgljubljana.ijs.si/nrg.simg
wget http://nrgljubljana.ijs.si/quick_test_singularity.tar.gz
tar zxvf quick_test_singularity.tar.gz
cd quick_test_singularity
./2_nrgrun