How to build Julia on Raspberry Pi Jessie
(update 2017-05-15: Julia is now available as a raspbian package!)
I wanted to try it on Raspberry Pi, and here are the steps I have gone through:
0. Get source codes
Cloned the git repository:
1. Install packages for building from the source
I had to install required packages:
But due to the cmake package in Raspbian Jessie is outdated(3.0.2, but 3.4.3 or higher was required), I had to remove it:
and build cmake from the latest source file:
2. Build Julia
Changed directory into the cloned repository of Julia:
and started building:
Fortunately, nothing went wrong, so it was time to install the built binaries.
3. Install Julia
I wanted the binary files to be placed under
/opt/julia, so did the following:
and started installing:
4. Additional things to be done
After the installation, I changed the permission of installed files:
Without this change, files were not accessible for me, because they were built/installed with root privilege(sudo).
After that, I added
/opt/julia/bin to my $PATH variable:
Julia became excutable from anywhere!
I put whole processes into a bash script here(not tested yet :-O).
Though it’s buildable and excutable on Raspberry Pi, I’m still not sure if Julia runs well on it.
I have to learn more and use it with real world problems :-)