Install Yambo on Ubuntu/LinuxMint: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Here we can find the instruction to install Yambo 5.0 on a standard machine with a [https://ubuntu.com/ Ubuntu]/[https://linuxmint.com/ LinuxMint] distribution.
Here we can find the instruction to install Yambo 5.0 on a standard machine with a [https://ubuntu.com/ Ubuntu]/[https://linuxmint.com/ LinuxMint] distribution.


We suppose you have root permission on your machine
We suppose you have root permission on your machine to install all the required packages.
 
Run apt-get to update the package list


Run apt-get to install the required packages:
  apt-get -yqq update  
  apt-get -yqq update  


  apt-get -yqq install --no-install-recommends  
Install compilers, python, mkl, and all necessary libraries to compile Yambo:
        build-essential ca-certificates curl file \
 
         make gcc g++ gfortran \
  apt-get -yqq install --no-install-recommends build-essential ca-certificates curl file \
        git gnupg2 iproute2 lmod \
         make gcc g++ gfortran git gnupg2 iproute2 lmod \
         locales lua-posix \
         locales lua-posix python3 python3-pip python3-setuptools \
        python3 python3-pip python3-setuptools \
         tcl unzip m4 wget git zlib1g-dev ssh \
         tcl unzip m4 wget git zlib1g-dev ssh \
libmkl-gf-lp64 libmkl-gnu-thread libmkl-avx libmkl-avx2 libmkl-avx512 libmkl-core libmkl-def libmkl-dev libmkl-gf-ilp64 \
libmkl-gf-lp64 libmkl-gnu-thread libmkl-avx libmkl-avx2 libmkl-avx512 libmkl-core libmkl-def libmkl-dev libmkl-gf-ilp64 \
  && apt-get clean \
   
  && locale-gen en_US.UTF-8  
Removed downloaded packages and set language:
 
apt-get clean \
  locale-gen en_US.UTF-8  


WORKDIR /tmpdir
WORKDIR /tmpdir

Revision as of 18:41, 2 April 2021

Here we can find the instruction to install Yambo 5.0 on a standard machine with a Ubuntu/LinuxMint distribution.

We suppose you have root permission on your machine to install all the required packages.

Run apt-get to update the package list

apt-get -yqq update 

Install compilers, python, mkl, and all necessary libraries to compile Yambo:

apt-get -yqq install --no-install-recommends build-essential ca-certificates curl file \
       make gcc g++ gfortran git gnupg2 iproute2 lmod \
       locales lua-posix python3 python3-pip python3-setuptools \
       tcl unzip m4 wget git zlib1g-dev ssh \

libmkl-gf-lp64 libmkl-gnu-thread libmkl-avx libmkl-avx2 libmkl-avx512 libmkl-core libmkl-def libmkl-dev libmkl-gf-ilp64 \

Removed downloaded packages and set language:

apt-get clean \
locale-gen en_US.UTF-8 

WORKDIR /tmpdir

      1. YAMBO ###

ARG yambo_version=5.0.0 RUN wget https://github.com/yambo-code/yambo/archive/${yambo_version}.tar.gz -O yambo-${yambo_version}.tar.gz \

&& tar zxf yambo-${yambo_version}.tar.gz && cd yambo-${yambo_version} \
&& ./configure --disable-mpi --enable-open-mp --enable-msgs-comps --enable-time-profile --enable-memory-profile \
   --with-blas-libs="-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl" \
   --with-lapack-libs="-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl" \
&& make -j4 yambo && make -j4 interfaces && make -j4 ypp \
&& mkdir -p /usr/local/yambo-${yambo_version}/lib \
&& cp -r bin /usr/local/yambo-${yambo_version}/. \
&& cp -r lib/external/*/*/lib/*.* /usr/local/yambo-${yambo_version}/lib/. \
&& cp -r lib/external/*/*/v4/serial/lib/*.* /usr/local/yambo-${yambo_version}/lib/. \
&& cd .. && rm -rf yambo-${yambo_version} yambo-${yambo_version}.tar.gz

ENV PATH=/usr/local/yambo-${yambo_version}/bin:$PATH \

   LD_LIBRARY_PATH=/usr/local/yambo-${yambo_version}/lib:$LD_LIBRARY_PATH