Yambo 4.5.2 on Ubuntu 18.04.2 LTS

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
niloufar
Posts: 34
Joined: Thu Oct 08, 2020 3:53 pm

Yambo 4.5.2 on Ubuntu 18.04.2 LTS

Post by niloufar » Fri Oct 16, 2020 8:28 am

Dear developers,

I am trying to compile Yambo 4.5.2 on my Ubuntu 18 . I downloaded the file and ran the "./configure" in terminal, and then "make yambo ypp interfaces" . and it got completed without any errors. But when I type yambo in my terminal, my system doesn't recognize it and also It's not in the list of installed packages. I tried it with quantum Espresso as well ( "make yambo" ), but it just created the folder and again had the same problem and didn't work.

I don't know what the problem is. Could it be because of the version of my Intel compiler or any other hardware related issues? or I should configure with options?
(I checked my Intel model, it's: Intel® Core™ i5-2430M CPU @ 2.40GHz × 4 )

By the way, could you please list the hardware requirements for this package?

Thanks a lot in advance for your help.
Best,
Niloufar Dezashibi
Niloufar Dezashibi
Physics and Energy Engineering Department
Amirkabir University of Technology
Tehran, Iran
niloufardezashib@aut.ac.ir
nilo.dezashibi@gmail.com

User avatar
Daniele Varsano
Posts: 3816
Joined: Tue Mar 17, 2009 2:23 pm
Contact:

Re: Yambo 4.5.2 on Ubuntu 18.04.2 LTS

Post by Daniele Varsano » Fri Oct 16, 2020 8:38 am

Dear Niloufar,

if the compilation was successful the yambo executable will be in the bin directory inside the yambo dir.
You can run it by launching PATH_TO_YAMBO_DRECTORY/bin/yambo

If you want to run it just typing yambo in your shell you need to instruct the system to find it, there are several ways to do it:
edit your .bashrc adding this line:
export PATH=$PATH: PATH_TO_YAMBO_DRECTORY/bin/
and then:
> source .bashrc
or
copy or link the executable in a directory included in the $PATH variable e.g /usr/local/bin

or you can configure yambo assigning a prefix:
>./configure --prefix=/usr/local/bin
>make
>make install

Best,
Daniele
Dr. Daniele Varsano
S3-CNR Institute of Nanoscience and MaX Center, Italy
MaX - Materials design at the Exascale
http://www.nano.cnr.it
http://www.max-centre.eu/

niloufar
Posts: 34
Joined: Thu Oct 08, 2020 3:53 pm

Re: Yambo 4.5.2 on Ubuntu 18.04.2 LTS

Post by niloufar » Fri Oct 16, 2020 12:42 pm

Dear Daniele,

thank you a lot for your help, I actually had the path in .bashrc file, so I thought it is OK. But when I copied executable in a directory included in the $PATH variable it worked.
So it is OK now.

Best regards,
Niloufar
Niloufar Dezashibi
Physics and Energy Engineering Department
Amirkabir University of Technology
Tehran, Iran
niloufardezashib@aut.ac.ir
nilo.dezashibi@gmail.com

Post Reply