/julia-build

Compile and install Julia.

Primary LanguageShellMIT LicenseMIT

julia-build

Julia-build is a command-line utility tool that makes it easy to compile, install and remove virtually any version of Julia, using downloaded source files.

Julia-build is exposed as a plugin for jlenv that provides the jlenv install command. Or simply as julia-build when used as a standalone program.

Table of Contents


julia-build is a command-line utility that makes it easy to install virtually any version of Julia, from source.

It is available as a plugin for jlenv that provides the jlenv install command, or as a standalone program.

Installation

# As an jlenv plugin
mkdir -p "$(jlenv root)"/plugins
git clone https://github.com/jlenv/julia-build.git "$(jlenv root)"/plugins/julia-build

# As a standalone program
git clone https://github.com/jlenv/julia-build.git
PREFIX=/usr/local ./julia-build/install.sh

Upgrading

# As an jlenv plugin
cd "$(jlenv root)"/plugins/julia-build && git pull

Usage

Basic Usage

# As an jlenv plugin
jlenv install --list                    # lists all available versions of Julia
jlenv install v1.0.1                    # installs Julia v1.0.1 to ~/.jlenv/versions

# As a standalone program
julia-build --definitions               # lists all available versions of Julia
julia-build 1.0.1 ~/local/julia-v1.0.1  # installs Julia v1.0.1 to ~/local/julia-1.0.1

julia-build does not check for system dependencies before downloading and attempting to compile the Julia source. Please ensure that all requiredlibraries are available on your system. The Chef jlenv cookbook automatically ensures system dependencies are in place.

Documentation

Please see julia-build documentation page for more detail and solutions to common problems.