# Julia 1.5.1 for Raspian 32 bit (Rasperry Pi)

**URL:** <https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969>\
**Category:** Maker\
**Tags:** question\
**Created:** [September 20, 2020, 8:43pm UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969 "2020-09-20T20:43:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jmkuhn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmkuhn/32/2090_2.png) [@jmkuhn](https://discourse.julialang.org/u/jmkuhn)\
**Post date:** [September 21, 2020, 1:30pm UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969/2 "2020-09-21T13:30:22Z")

</div>

You can build a version for Raspbian 32 bit yourself. The following was tested on Raspberry Pi OS (32-bit) 2020-05-07 on a Raspberry Pi 3 Model B.  
First install build dependencies.

```julia
apt update
apt install cmake git

```

`git` probably isn’t necessary to build from the source tarball, but I did have it available for my tests.

If your Pi has less than 4 GB RAM, you will need to increase the size of the swapfile.

```julia
sudo /sbin/dphys-swapfile swapoff

```

Edit `/etc/dphys-swapfile` uncommenting and changing the value of `CONF_SWAPSIZE` to:

```julia
CONF_SWAPSIZE=2048

```

Then run:

```julia
sudo /sbin/dphys-swapfile setup
sudo /sbin/dphys-swapfile swapon

```

If you are building on a Pi 3 or older, you will need to build a custom kernel to increase the per process addressable memory from 2 GB to 3 GB. Without the custom kernel, you will get an out of memory error during the build. 3 GB is the default for Pi 4 kernels. If you need help with this process, let me know what model Pi you have.

Download the Julia source [tarball](https://github.com/JuliaLang/julia/releases/download/v1.5.1/julia-1.5.1.tar.gz).

Then extract and build:

```julia
gzip -dc julia-1.5.1.tar.gz | tar xvf -
cd julia-1.5.1
MARCH=armv7-a make

```

---

_[View the full topic](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969)._
