Installation Guide

Here are the installation instructions for package Express. If you have trouble installing it, please refer to our Troubleshooting page for more information.

Install Julia

First, you should install Julia. We recommend downloading it from its official website. Please follow the detailed instructions on its website if you have to build Julia from source. Some computing centers provide preinstalled Julia. Please contact your administrator for more information in that case. Here's some additional information on how to set up Julia on HPC systems.

If you have Homebrew installed, open Terminal.app and type

brew install julia

to install it as a formula.

If you are also using macOS and want to install it as a prebuilt binary app, type

brew install --cask julia

instead.

If you want to install multiple Julia versions in the same operating system, a recommended way is to use a version manager such as juliaup. First, install juliaup. Then, run

juliaup add release
juliaup default release

to configure the julia command to start the latest stable version of Julia (this is also the default value).

There is a short video introduction to juliaup made by its authors.

Which version should I pick?

You can install the "Current stable release" or the "Long-term support (LTS) release".

  • The "Current stable release" is the latest release of Julia. It has access to newer features, and is likely faster.
  • The "Long-term support release" is an older version of Julia that has continued to receive bug and security fixes. However, it may not have the latest features or performance improvements.

For most users, you should install the "Current stable release", and whenever Julia releases a new version of the current stable release, you should update your version of Julia. Note that any code you write on one version of the current stable release will continue to work on all subsequent releases.

For users in restricted software environments (e.g., your enterprise IT controls what software you can install), you may be better off installing the long-term support release because you will not have to update Julia as frequently.

Versions higher than v1.3, especially v1.6, are strongly recommended. This package may not work on v1.0 and below. Since the Julia team has set v1.6 as the LTS release, we will gradually drop support for versions below v1.6.

Julia and Julia packages support multiple operating systems and CPU architectures; check this table to see if it can be installed on your machine. For Mac computers with M-series processors, this package and its dependencies may not work. Please install the Intel-compatible version of Julia (for macOS x86-64) if any platform-related error occurs.

Install Express

Now I am using macOS as a standard platform to explain the following steps:

  1. Open Terminal.app, and type julia to start an interactive session (known as the REPL).

  2. Run the following commands and wait for them to finish:

    julia> using Pkg
    
    julia> Pkg.update()
    
    julia> Pkg.add("Express")
  3. Run

    julia> using Express

    and have fun!

  4. While using, please keep this Julia session alive. Restarting might cost some time.

If you want to install the latest in-development (probably buggy) version of Express, type

julia> using Pkg
julia> Pkg.update() Updating registry at `~/.julia/registries/General.toml` No Changes to `~/work/Express.jl/Express.jl/docs/Project.toml` No Changes to `~/work/Express.jl/Express.jl/docs/Manifest.toml`
julia> pkg"add https://github.com/MineralsCloud/Express.jl"┌ Warning: The Pkg REPL mode is intended for interactive use only, and should not be used from scripts. It is recommended to use the functional API instead. └ @ Pkg.REPLMode /opt/hostedtoolcache/julia/1.9.2/x64/share/julia/stdlib/v1.9/Pkg/src/REPLMode/REPLMode.jl:382 Cloning git-repo `https://github.com/MineralsCloud/Express.jl` Updating git-repo `https://github.com/MineralsCloud/Express.jl` Resolving package versions... Updating `~/work/Express.jl/Express.jl/docs/Project.toml` [b12df14e] ~ Express v0.9.2 ⇒ v0.9.1 `https://github.com/MineralsCloud/Express.jl#main` Updating `~/work/Express.jl/Express.jl/docs/Manifest.toml` [df5135bc] ↑ AbInitioSoftwareBase v0.6.5 ⇒ v0.10.0 [79e6a3ab] - Adapt v3.6.2 [4fba245c] - ArrayInterface v7.4.11 [30b0a656] + ArrayInterfaceCore v0.1.29 [a33af91c] + CompositionsBase v0.1.2 [a93c6f00] - DataFrames v1.6.0 [e2d170a0] - DataValueInterfaces v1.0.0 [db8ca866] + EasyJobsBase v0.13.0 [e2ba6199] + ExprTools v0.1.9 [b12df14e] ~ Express v0.9.2 ⇒ v0.9.1 `https://github.com/MineralsCloud/Express.jl#main` [6bf22d12] + ExpressBase v0.6.0 ⌃ [6a86dc24] ↓ FiniteDiff v2.21.1 ⇒ v2.17.0 [842dd82b] - InlineStrings v1.4.0 [41ab1584] - InvertedIndices v1.3.0 [82899510] - IteratorInterfaceExtensions v1.0.0 [b964fa9f] - LaTeXStrings v1.3.0 [6fafb56a] + Memoization v0.2.1 [626554b9] + MetaGraphs v0.7.2 [2dfb63ee] - PooledArrays v1.4.2 [08abe8d2] - PrettyTables v2.2.5 ⌅ [f2b01f46] ↑ Roots v1.2.0 ⇒ v1.4.1 [91c51154] - SentinelArrays v1.4.0 ⌅ [efcf1570] ↓ Setfield v1.1.1 ⇒ v0.8.2 [6a97d125] ↑ SimpleWorkflows v0.16.2 ⇒ v0.27.0 [66db9d55] + SnoopPrecompile v1.0.3 [892a3eda] - StringManipulation v0.3.0 [3783bdb8] - TableTraits v1.0.1 [bd369af6] - Tables v1.10.1 [6d80a3f9] + Thinkers v0.3.1 [410a4b4d] + Tricks v0.1.7 [0ca489f0] - TryCatch v0.1.1 [a7773ee8] + UnitfulAtomic v1.0.0 [06c00241] + UnitfulParsableString v0.1.6 [0625e100] + ValSplit v0.1.0 Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m` Precompiling project... Setfield AbInitioSoftwareBase SimpleWorkflows FiniteDiff NLSolversBase Roots OptimBase ExpressBase LsqFit EquationsOfStateOfSolids Express 11 dependencies successfully precompiled in 17 seconds. 101 already precompiled. 11 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions 3 dependencies had warnings during precompilation:Express [b12df14e-adf7-11e9-0606-d5813a258349]WARNING: Method definition (::Type{Thinkers.TimeLimitedThunk})(Any, Any) in module Thinkers at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:15 overwritten at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:9. ** incremental compilation may be fatally broken for this module ** └ ┌ ExpressBase [6bf22d12-b2e3-4e51-8f6d-9d050a32c5d5]WARNING: Method definition (::Type{Thinkers.TimeLimitedThunk})(Any, Any) in module Thinkers at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:15 overwritten at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:9. ** incremental compilation may be fatally broken for this module ** └ ┌ SimpleWorkflows [6a97d125-85da-4b66-b300-4bba10360563]WARNING: Method definition (::Type{Thinkers.TimeLimitedThunk})(Any, Any) in module Thinkers at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:15 overwritten at /home/runner/.julia/packages/Thinkers/AFzBt/src/TimeLimitedThunk.jl:9. ** incremental compilation may be fatally broken for this module **

in the second step above.

Update Express

Please watch our GitHub repository for new releases. Once we release a new version, you can update Express by typing

julia> using Pkg
julia> Pkg.update("Express") Updating registry at `~/.julia/registries/General.toml` Updating git-repo `https://github.com/MineralsCloud/Express.jl` No Changes to `~/work/Express.jl/Express.jl/docs/Project.toml` No Changes to `~/work/Express.jl/Express.jl/docs/Manifest.toml`
julia> Pkg.gc() Active manifest files: 3 found Active artifact files: 3 found Active scratchspaces: 2 found Deleted no artifacts, repos, packages or scratchspaces

in the Julia REPL.

Uninstall and reinstall Express

Sometimes errors may occur if the package is not properly installed. In this case, you may want to uninstall and reinstall the package. Here is how to do that:

  1. To uninstall, in a Julia session, run

    julia> using Pkg
    
    julia> Pkg.rm("Express")
    
    julia> Pkg.gc()
  2. Press ctrl+d to quit the current session. Start a new Julia session and reinstall Express.