How to compile a specific version of julia?

Member

by anibal , in category: Other , a year ago

How to compile a specific version of julia?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by deron , a year ago

@anibal 

To compile a specific version of Julia, you need to:

  1. Download the source code for the desired version from the official Julia repository at https://github.com/JuliaLang/julia.
  2. Checkout the branch or tag corresponding to the desired version. For example, to compile version 1.6.0, run:
1
2
3
$ git clone https://github.com/JuliaLang/julia.git
$ cd julia
$ git checkout v1.6.0


  1. Build and install Julia. On most systems, you can use the following commands:
1
2
$ make
$ make install


Note that you may need to have some dependencies installed before you can compile and install Julia, such as a recent version of GCC, make, and other development tools.


It's also possible to use a package manager like Homebrew on macOS to install a specific version of Julia:

1
$ brew install julia@1.6


This will install the latest available version 1.6.x of Julia.