Newmodules

From Earlham CS Department
Revision as of 13:40, 29 January 2017 by Anschwa (talk | contribs) (Created page with "= Installing new software to modules= * see also Cluster:Modules <pre> ###########INSTALL GCC#################################################### 1.Go to mounts/server/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installing new software to modules

###########INSTALL GCC####################################################

1.Go to mounts/server/software and create gcc directory
2.install gcc ‘wget http://mirrors.concertpass.com/gcc/releases/gcc-4.6.2/gcc-4.6.2.tar.gz'
3.unzip it tar xzf gcc-4.6.2.tar.gz
4.cd gcc-4.6.2 => ’./contrib/download_prerequisites’
5.cd .. ——> mkdir ‘test_gcc’
6.cd ‘test_gcc’
7./mounts/pollock/software/gcc/gcc-4.6.2/configure --prefix=/mounts/pollock/software/gcc/4.6.2 --disable-multilib --enable-languages=c,c++,fortran
8.make
9.make install
10.make check-c++
11.make check-c
12.go to /mounts/pollock/software/Modules/3.2.10/modulefiles
13.mkdir gcc and cd gcc and vi 4.6.2
14.put this inside

###%Module1.0###############################################################
prereq modules

set VERSION 4.6.2
set LDIR /mounts/pollock/software
prepend-path PATH $LDIR/gcc/$VERSION/bin
prepend-path MANPATH $LDIR/gcc/$VERSION/share/man
prepend-path LD_LIBRARY_PATH $LDIR/gcc/$VERSION/lib64
module-whatis "A compiler toolchain, including {c,c++,fortran,java} compilers and benchmarking utilities"
##
15.module load gcc/4.6.2
16.gcc —version
#############################################################################