Compile the external libraries without access to internet connection

From Lumen wiki
Revision as of 16:13, 7 July 2026 by Davide (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If some external libraries are not provided, the configure script will try to download these libraries and compile them automatically. However, if you are on a machine without access to the internet, this procedure will fail. Below a solution to this problem, which is common on many HPC machiens.


First of all you have to download the source code on a local machine with access to internet. You can take for example the bug-fixes from gitlab version

git clone https://gitlab.com/lumen-code/lumen.git lumen-src
cd lumen-src 
git checkout bug-fixes

or you can download one of the lumen release via wget

wget https://gitlab.com/lumen-code/lumen/-/archive/2.1.0/lumen-2.1.0.tar.gz
tar -xzf lumen-2.1.0.tar.gz
mv lumen-2.1.0 lumen-src
cd lumen-src


Then you, to download all the libraries which lumen might need, simply use the command (no configure needed)

make download

(note: the download of some packages might fail, you can safely ignore these fails)

Finally you can compress the whole source and copy it on your hpc machine

cd ..
tar -zcvf lumen-src.tar.gz lumen-src
scp lumen-src.tar.gz USERNAME@YOUR.HPC.MACHINE:

After these steps, the automaitic compilation of external libraries will proceed also on the machine without internet connection.