Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Julia package system requires some extra steps to get user packages installed. The key is that you need to have a user project in place at a higher priority than the system project.

  1. Create a config directory if you do not already have one
    mkdir -p ~/.julia/config
  2. create a startup.jl file if you do not already have one, with the following contents:
    pushfirst!(Base.DEPOT_PATH,string(ENV["HOME"],"/",".julia"))
  3. create a project skeleton if you do not already have one
    mkdir -p ~/.julia/environments/v1.1
  4. create a Project.toml file if you do not already have one.
    touch ~/.julia/environments/v1.1/Project.toml


With that you will have a local project loaded in julia. Steps 3-4 could be replaced by starting julia with the project specified as:
JULIA_PROJECT=~/.julia/environments/v1.1/ julia
and then writing out the project from julia itself.

  • No labels