Julia, commonly known as JuliaLang, is a programming language for numerical computing. Julia is as fast as C but it does not sacrifice the readability. Therefore, we can reduce the running time of our programs as well as the development time.
Ensure that you have more than 2GB RAM. In the case of not having enough memory, you could use
swap to extend the RAM capacity. Just follow the tutorial here to create swap.
Installing Julia requires some dependencies such as
g++, etc. To simplify the process, log in as
root and install all the dependencies.
apt install gcc apt install make apt install g++ apt install python apt install gfortran apt install perl apt install m4 apt install patch apt install cmake apt install pkg-config
The whole process here does not require
root privilege to install Julia. Start your terminal and get the source code of Julia from Github
git clone git://github.com/JuliaLang/julia.git
All the source code will be in the folder named
julia. Switch to this folder.
Checkout the latest version of Julia.
git checkout v0.6.0
Build Julia from source.
make -j 2
-j option indicates how many threads for building Julia. The more the better. It should be set equal to the number of cores of the server.
The building process is quite long.
Inside the folder
julia, we can find an executable file named
./julia --version in the command prompt and the output should look like this.
julia version 0.6.0
There are two ways to use Julia, The first one is via its REPL. Just type in
./julia to access the REPL. The second one is by saving the running code under a file with extension
.jl and run this file with
For convenience, you can create an alias to access
julia anywhere in your server.
Note: All the processes above have been tested with a Vultr $2.50/month VPS with Ubuntu 17.04 x64