diff --git a/.gitignore b/.gitignore index e43b0f9..36454ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ +/install/ +/build/ +!/scripts/ + .DS_Store diff --git a/scripts/stage0/install_lmod.sh b/scripts/stage0/install_lmod.sh new file mode 100755 index 0000000..7907720 --- /dev/null +++ b/scripts/stage0/install_lmod.sh @@ -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 diff --git a/scripts/create_octave.sh b/scripts/stage9/install_octave.sh similarity index 82% rename from scripts/create_octave.sh rename to scripts/stage9/install_octave.sh index 50a11b4..0279741 100644 --- a/scripts/create_octave.sh +++ b/scripts/stage9/install_octave.sh @@ -3,9 +3,11 @@ OCTAVE_VERSION=8.4.0 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 cd octave-${OCTAVE_VERSION} 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 make make check