Installation Guide
Here are the installation instructions for package LinearElasticityBase. 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 LinearElasticityBase
Now I am using macOS as a standard platform to explain the following steps:
Open
Terminal.app
, and typejulia
to start an interactive session (known as the REPL).Run the following commands and wait for them to finish:
julia> using Pkg julia> Pkg.update() julia> Pkg.add("LinearElasticityBase")
Run
julia> using LinearElasticityBase
and have fun!
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 LinearElasticityBase, type
julia> using Pkg
julia> Pkg.update()
Updating registry at `~/.julia/registries/General` Updating git-repo `https://github.com/JuliaRegistries/General.git` No Changes to `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Project.toml` No Changes to `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Manifest.toml`
julia> pkg"add https://github.com/MineralsCloud/LinearElasticityBase.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 /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/REPLMode/REPLMode.jl:379 Cloning git-repo `https://github.com/MineralsCloud/LinearElasticityBase.jl` Updating git-repo `https://github.com/MineralsCloud/LinearElasticityBase.jl` Resolving package versions... Updating `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Project.toml` [c9ccf908] ~ LinearElasticityBase v0.3.0 ⇒ v0.3.0 `https://github.com/MineralsCloud/LinearElasticityBase.jl#main` Updating `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Manifest.toml` [c9ccf908] ~ LinearElasticityBase v0.3.0 ⇒ v0.3.0 `https://github.com/MineralsCloud/LinearElasticityBase.jl#main`
in the second step above.
Update LinearElasticityBase
Please watch our GitHub repository for new releases. Once we release a new version, you can update LinearElasticityBase by typing
julia> using Pkg
julia> Pkg.update("LinearElasticityBase")
Updating registry at `~/.julia/registries/General` Updating git-repo `https://github.com/JuliaRegistries/General.git` Updating git-repo `https://github.com/MineralsCloud/LinearElasticityBase.jl` No Changes to `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Project.toml` No Changes to `~/work/LinearElasticityBase.jl/LinearElasticityBase.jl/docs/build/developers/Manifest.toml`
julia> Pkg.gc()
Active manifest files: 4 found Active artifact files: 1 found Active scratchspaces: 0 found Deleted no artifacts, repos, packages or scratchspaces
in the Julia REPL.
Uninstall and reinstall LinearElasticityBase
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:
To uninstall, in a Julia session, run
julia> using Pkg julia> Pkg.rm("LinearElasticityBase") julia> Pkg.gc()
Press
ctrl+d
to quit the current session. Start a new Julia session and reinstall LinearElasticityBase.