Page 1 of 1
Bypass the 0.0.1.tar.gz git download
Posted: Wed Jan 13, 2021 11:12 am
by Bruno
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,
Re: Bypass the 0.0.1.tar.gz git download
Posted: Wed Jan 13, 2021 11:39 am
by andrea.ferretti
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
Re: Bypass the 0.0.1.tar.gz git download
Posted: Wed Jan 13, 2021 11:52 am
by Bruno
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,
Re: Bypass the 0.0.1.tar.gz git download
Posted: Wed Jan 13, 2021 12:37 pm
by andrea.ferretti
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
Re: Bypass the 0.0.1.tar.gz git download
Posted: Wed Jan 13, 2021 1:47 pm
by Bruno
Hello!
Thank you very much Andrea. The suggested solution did work.
Regards,
Bruno.