User Tools

Site Tools


workshops:hpcprac1

This is an old revision of the document!


Practical 1: Linux Shell

Aim: to build and install in your home directory a library and and application.

Logging in

Download and install putty-ssh and connect to ranger.ace.chpc.ac.za using the username (schoolNN) and password provided.

Build and install zlib library

Create a src directory to store the source.

mkdir src

Copy the zlip source code tar file from my home directory.

cp /home/kcolville/??? .

Fill in the ??? with the correct path and file name.

Move the tar file into the new directory:

mv zlib-1.2.8.tar.gz src/

Untar the file

cd src
tar zxvf zlib-1.2.8.tar.gz

Load the correct environment variables using the tool “module”:

module load gcc/gcc-4.9.2/4.9.2

Prepare your own local directory structure:

cd ~
mkdir local
cd local
mkdir bin lib share include

Configure the compile environment:

cd zlib-1.2.8
./configure --prefix=~/local

Compile zlib using the tool “make” (instructing it to install to your local directory):

make install
/app/dokuwiki/data/attic/workshops/hpcprac1.1435495395.txt.gz · Last modified: 2021/12/09 16:42 (external edit)