CSC Computing Environment

Installing binary applications

💬 In some cases software developers offer ready-made binary versions of their software.

☝🏻 It should be noted that ready binary versions are typically not optimized for CSC supercomputers.

‼️ Especially all MPI codes need to be compiled on the machine they will be run on to ensure correct operation.

Make the installation in your own folder in the /projappl directory of your project

  1. Move to the /projappl directory of your project:
cd /projappl/<project>   # replace <project> with your CSC project, e.g. project_2001234
  1. If not done already, create your own folder under your project’s /projappl directory:
mkdir -p $USER
  1. Move to your folder:
cd $USER

Example: Installing the GCTA software

💬 In this example we’ll install the binary release of the GCTA software.

  1. Go to the GCTA download page.
  2. Identify the Linux version.
    • If several Linux versions are offered, try to find one with “x86” in the name.
    • If versions are offered by Linux distribution, try first the versions made for CentOS or RedHat if present.
    • Sometimes you may have to try different versions to find one that works.
  3. Here is the link for the Linux version (accessed 2022-12-16). Download the zip file by running:
  1. Unzip the file:
  1. The software is now ready to use, but you will have to tell the computer where to find it.
  2. Trying just the following will result in a command not found error because you are not accessing the right folder yet.
  1. Try instead:
  1. Or:
cd gcta-1.94.1-linux-kernel-3-x86_64
  1. The result shows that the software runs.
    • The error message is just about missing arguments which is normal.

💬 Instead of providing the full path in the command line, you can also add the application to your $PATH.

  1. Move to ./gcta-1.94.1-linux-kernel-3-x86_64 if not there yet.
  2. Add the current working directory to $PATH:
export PATH=$PWD:$PATH
  1. You can now run the program from any directory simply with:

Some notes

💡 When adding paths to $PATH, always remember to append the current $PATH, otherwise some of your normal shell commands etc. will stop working.

☝🏻 To add paths automatically, you can add the export command to your $HOME/.bashrc file. Instead of $PWD, use the full path:

export PATH=/projappl/<project>/$USER/gcta-1.94.1-linux-kernel-3-x86_64:$PATH   # replace <project> with your CSC project, e.g. project_2001234

‼️ If you make changes to your environment (e.g. edit .bashrc), it is possible that there will be conflicts with applications pre-installed by CSC.

💭 If you encounter problems after modifying your environment, it is possible to restore it to the default state permanently or temporarily using the csc-env command.