Zlib 1.2.11

Basic information

  • Instalation date: 01/02/2018
  • Official Website: https://www.zlib.net/
  • Supercomputer: Cronos
  • License: Zlib License

Installation

  1. Load the necessary modules for compilation

    $ module purge
    $ module load gcc/5.5.0
    
  2. Download the desired version of the software (Source code - tar.gz) [1]

    $ cd /home/mgomezzul/apps/szip/src/
    $ wget https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz
    $ tar -xvf szip-2.1.1.tar.gz
    
  3. After unzipping Zlib, continue with the following steps for configuration and compilation:

    $ cd zlib-1.2.11
    
    $ ./configure --prefix=/share/apps/zlib/1.2.11/gcc-5.5.0
    
    $ make -j 10 2>&1 | tee zlib-make.log
    $ make check 2>&1 | tee zlib-make-check.log
    $ sudo mkdir -p /share/apps/zlib/1.2.11/gcc-5.5.0
    $ sudo chown -R mgomezzul.apolo /share/apps/zlib/1.2.11/gcc-5.5.0
    $ make install 2>&1 | tee gmp-make-install.log
    $ sudo chown -R root.root /share/apps/zlib/1.2.11/gcc-5.5.0
    

Module

#%Module1.0####################################################################
##
## module load zlib/1.2.11_gcc-5.5.0
##
## /share/apps/modules/zlib/1.2.11_gcc-5.5.0
## Written by Mateo Gomez Zuluaga
##

proc ModulesHelp {} {
    global version modroot
    puts stderr "Sets the environment for using zlib 1.2.11\
                \nin the shared directory /share/apps/zlib/1.2.11/gcc-5.5.0\
                \nbuilded with gcc-4.4.7"
}

module-whatis "(Name________) zlib"
module-whatis "(Version_____) 1.2.11"
module-whatis "(Compilers___) gcc-5.5.0"
module-whatis "(System______) x86_64-redhat-linux"
module-whatis "(Libraries___) "

# for Tcl script use only
set         topdir        /share/apps/zlib/1.2.11/gcc-5.5.0
set         version       1.2.11
set         sys           x86_64-redhat-linux

conflict zlib
module load gcc/5.5.0

prepend-path    LD_LIBRARY_PATH         $topdir/lib
prepend-path    LIBRARY_PATH            $topdir/lib
prepend-path    LD_RUN_PATH             $topdir/lib

prepend-path    C_INCLUDE_PATH          $topdir/include
prepend-path    CXX_INCLUDE_PATH        $topdir/include
prepend-path    CPLUS_INCLUDE_PATH      $topdir/include

prepend-path    PKG_CONFIG_PATH         $topdir/lib/pkgconfig

prepend-path    MANPATH                 $topdir/share/man

Mode of use

$ module load zlib/1.2.11_gcc-5.5.0

Author

Mateo Gómez Zuluaga