Skip navigation
NASA Logo, National Aeronautics and Space Administration
Modeling Guru Banner
Currently Being Moderated

Add Julia Registered Packages to a Julia Distribution on discover

VERSION 3  Click to view document history
Created on: Feb 22, 2018 9:47 AM by Jules Kouatchou - Last Modified:  Feb 22, 2018 11:05 AM by Jules Kouatchou

The Julia programming language is a flexible dynamic language, appropriate for scientific and numerical computing, with performance comparable to traditional statically-typed languages. There are many Julia distributions avaliable on discover. If users want to add a Julia registered package to any of the distributions, they have to do it on their own. This document describes the basic steps needed to do it.



Step 1:

Load the module containing your reference Julia distribution.


module load other/comp/gcc-7.3
module load other/SSSO_Ana-PyD/SApd_5.0.1_py2.7_gcc-7.3
module load other/julia/0.6.2_gcc7.3


Step 2:

By default, Julia will install the new packages in your home directory. To avoid running out of disk space, it will be preferable to point to a different location where new packages will be installed. To do it, you need to set the environment variable JULIA_PKGDIR. For instance in C-Shell:


setenv JULIA_PKGDIR /discover/nobackup/myUserID/myJULIA_PKGDIR


Step 3:

Now you are ready to add new packages. First, call the Julia interpreter:




and you will get something like:


_ _(_)_ 
    |  A fresh approach to technical computing
| (_) (_)
    |  Documentation:

    _   _     _|  |___ _   |  Type "?help" for help.
   | | |  |  |  |  |/ _`|   |
   | | |_|  |  |  | (_|  |   |  Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\__'_|_|_|\__'_|   |  
 |  x86_64-pc-linux-gnu



From Julia, issue the commands (assuming that you want to install netCDF4 and HDF5 for instance):




All the installed packages will located in the JULIA_PKGDIR directory and will be available whenever you launch the Julia interpreter.



  1. Julia Manual: Packages
  2. Registered Julia Packages



Comments (0)
USAGov logo NASA Logo -