Newmodules

From Earlham CS Department
Revision as of 15:58, 29 January 2017 by Charliep (talk | contribs) (Installing new software to modules)
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
#############################################################################

Another recipe, this one for blast+ on {hopper, pollock}:

  1. mkdir /mounts/pollock/software/blast+
  2. download and unpack source
  3. ./configure --prefix="/mounts/pollock/software/blast+"
  4. make && make test && make install
  5. mkdir /mounts/pollock/software/Modules/3..../modulefiles
  6. mkdir blast+
  7. vi blast+/2.3.0