Bypass the 0.0.1.tar.gz git download

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
Bruno
Posts: 72
Joined: Tue Dec 08, 2020 11:16 am

Bypass the 0.0.1.tar.gz git download

Post by Bruno » Wed Jan 13, 2021 11:12 am

Hello!

I've been trying to compile yambo 5.0.0 on a cluster where I don't have access to neither git or wget downloads. So when I'm doing ./configure [options], it starts download the libraries 0.0.1.tar.gz and it stays frozen there because there's no way to download it. I've manually downloaded the tar file and scp inside the cluster but I'm not really sure where to put it and if I should change some files to skip the download part. I've tried some combinations but no success.

Can you please guide me where to put the 0.0.1.tar.gz and which file should I change?

Thank you very much!

Regards,
MSc. Bruno Cucco
PhD Candidate
CNRS Institut des Sciences Chimiques de Rennes, France
Université de Rennes 1
https://iscr.univ-rennes1.fr

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Bypass the 0.0.1.tar.gz git download

Post by andrea.ferretti » Wed Jan 13, 2021 11:39 am

Hi Bruno,

In order to workaround the problem with wget you have two options:
* download manually the tar balls and place then in yambo/lib/archive (then issue make from the yambo home as usual)
* Try to use as many libraries from the system as possible (providing the path vi configure), and resort to the option above for those not available

take care
Andrea
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bruno
Posts: 72
Joined: Tue Dec 08, 2020 11:16 am

Re: Bypass the 0.0.1.tar.gz git download

Post by Bruno » Wed Jan 13, 2021 11:52 am

Hello Andrea,

Thank you for the quick reply. I've actually already downloaded all of them and put in on the yambo/lib/archive, and it solves half of the problem. This 0.0.1.tar.gz seems to be download to the yambo/lib/yambo folder, I did tried to just put the tar there and also at the archive folder but it does not work for this specific one.

Regards,
MSc. Bruno Cucco
PhD Candidate
CNRS Institut des Sciences Chimiques de Rennes, France
Université de Rennes 1
https://iscr.univ-rennes1.fr

andrea.ferretti
Posts: 206
Joined: Fri Jan 31, 2014 11:13 am

Re: Bypass the 0.0.1.tar.gz git download

Post by andrea.ferretti » Wed Jan 13, 2021 12:37 pm

ok, now I better understand the problem.
The procedure involving the 0.0.1 tarball is rather new and needs to be properly fixed for the case without access to the network.

Here is a possible manual workaround. A better solution will be provided on the git repo in the next hours.

workaround:
(1) place a copy of 0.0.1.tar.gz in ~yambo/lib/yambo
(2) fix a small bug in configure to avoid re-downloading the tarball when already present
(3) open the tarball and replace the ~yambo/lib/yambo/driver folder with the driver folder from the tarball

Concerning (2):
This is the change to apply to configure:

Code: Select all

diff --git a/configure b/configure
index 888114361..e83c85315 100755
--- a/configure
+++ b/configure
@@ -9723,7 +9723,7 @@ else
   #
   # gpl procedure
   #
-  if ! test -d "yambo/driver/src"; then
+  if ! test -d "./lib/yambo/driver/src"; then
     cd lib/yambo/
     VERSION="0.0.1"
     TARBALL="${VERSION}.tar.gz"
Alternatively, you can edit yambo/config/m4/yambo_libraries.m4, according to:

Code: Select all

diff --git a/config/m4/yambo_libraries.m4 b/config/m4/yambo_libraries.m4
index b11c3e86c..ea4b2c09f 100644
--- a/config/m4/yambo_libraries.m4
+++ b/config/m4/yambo_libraries.m4
@@ -47,7 +47,7 @@ else
   #
   # gpl procedure
   #
-  if ! test -d "yambo/driver/src"; then
+  if ! test -d "./lib/yambo/driver/src"; then
     cd lib/yambo/
     VERSION="0.0.1"
     TARBALL="${VERSION}.tar.gz"
and regenerate configure issuing

Code: Select all

cd ~yambo
autoconf configure.ac > configure
Andrea Ferretti, PhD
CNR-NANO-S3 and MaX Centre
via Campi 213/A, 41125, Modena, Italy
Tel: +39 059 2055322; Skype: andrea_ferretti
URL: http://www.nano.cnr.it

Bruno
Posts: 72
Joined: Tue Dec 08, 2020 11:16 am

Re: Bypass the 0.0.1.tar.gz git download

Post by Bruno » Wed Jan 13, 2021 1:47 pm

Hello!

Thank you very much Andrea. The suggested solution did work.

Regards,
Bruno.
MSc. Bruno Cucco
PhD Candidate
CNRS Institut des Sciences Chimiques de Rennes, France
Université de Rennes 1
https://iscr.univ-rennes1.fr

Post Reply