Added Lmod option
This commit is contained in:
parent
346b61597b
commit
6479ac086b
3 changed files with 32 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1 +1,5 @@
|
||||||
|
/install/
|
||||||
|
/build/
|
||||||
|
!/scripts/
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
||||||
26
scripts/stage0/install_lmod.sh
Executable file
26
scripts/stage0/install_lmod.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
LUA_VERSION=5.1.4.9
|
||||||
|
|
||||||
|
wget https://sourceforge.net/projects/lmod/files/lua-${LUA_VERSION}.tar.bz2
|
||||||
|
tar -xf lua-${LUA_VERSION}.tar.bz2
|
||||||
|
cd lua-X.Y.Z
|
||||||
|
./configure --prefix=/avfs/projects/ops/lua/${LUA_VERSION}
|
||||||
|
make -j4
|
||||||
|
make install
|
||||||
|
cd /avfs/projects/ops/lua
|
||||||
|
ln -s ${LUA_VERSION} lua
|
||||||
|
|
||||||
|
LMOD_VERSION=8.7.37
|
||||||
|
|
||||||
|
wget https://sourceforge.net/projects/lmod/files/Lmod-${LMOD_VERSION}.tar.bz2
|
||||||
|
tar -xf Lmod-${LMOD_VERSION}.tar.bz2
|
||||||
|
# wget https://github.com/TACC/Lmod/archive/refs/tags/${LMOD_VERSION}.tar.gz
|
||||||
|
# tar -xf ${LMOD_VERSION}.tar.gz
|
||||||
|
cd Lmod-${LMOD_VERSION}
|
||||||
|
PATH=$PATH:/avfs/projects/ops/lua/lua/bin ./configure --prefix=/avfs/projects/ops/ \
|
||||||
|
--with-spiderCacheDir=/avfs/projects/ops/lmod/cacheDir \
|
||||||
|
--with-updateSystemFn=/avfs/projects/ops/lmod/cacheDir/system.txt
|
||||||
|
make install
|
||||||
|
ln -s /avfs/projects/ops/lmod/lmod/init/profile /etc/profile.d/z00_lmod.sh
|
||||||
|
ln -s /avfs/projects/ops/lmod/lmod/init/cshrc /etc/profile.d/z00_lmod.csh
|
||||||
|
|
@ -3,9 +3,11 @@
|
||||||
OCTAVE_VERSION=8.4.0
|
OCTAVE_VERSION=8.4.0
|
||||||
|
|
||||||
wget -c https://mirrors.kernel.org/gnu/octave/octave-${OCTAVE_VERSION}.tar.gz
|
wget -c https://mirrors.kernel.org/gnu/octave/octave-${OCTAVE_VERSION}.tar.gz
|
||||||
|
# wget -c ftp://ftp.gnu.org/gnu/octave/octave-3.6.3.tar.bz2
|
||||||
tar -xvf octave-${OCTAVE_VERSION}.tar.gz
|
tar -xvf octave-${OCTAVE_VERSION}.tar.gz
|
||||||
cd octave-${OCTAVE_VERSION}
|
cd octave-${OCTAVE_VERSION}
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
# ../configure --help
|
||||||
../configure --prefix=/opt/octave/${OCTAVE_VERSION} --enable-64 --enable-readline --with-blas --with-lapack --with-fftw3 --with-qt --with-magick
|
../configure --prefix=/opt/octave/${OCTAVE_VERSION} --enable-64 --enable-readline --with-blas --with-lapack --with-fftw3 --with-qt --with-magick
|
||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
Loading…
Add table
Add a link
Reference in a new issue