# 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:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [September 20, 2020, 8:43pm UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969/1 "2020-09-20T20:43:25Z")

</div>

Hello,  
The last version of Julia for Raspian 32 bit is 1.3.1 .

Why are there no newer versions?

How can I build a version for Raspian 32 bit myself?

Uwe

---

<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

```

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [September 22, 2020, 10:06am UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969/3 "2020-09-22T10:06:21Z")

</div>

Thanks a lot! I will try it at the weekend. 🙂

---

<div class="post-metadata">

### Author: ![notinaboat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/notinaboat/32/19302_2.png) [@notinaboat](https://discourse.julialang.org/u/notinaboat)
#### Post date: [November 15, 2020, 8:25pm UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969/4 "2020-11-15T20:25:21Z")

</div>

@terasakisatoshi has a Docker image with pre-built Julia binaries for Pi Zero [https://github.com/Julia-Embedded/jlcross#raspberry-pi-zero](https://github.com/Julia-Embedded/jlcross#raspberry-pi-zero)

[https://github.com/Julia-Embedded/jlcross](https://github.com/Julia-Embedded/jlcross)

---

<div class="post-metadata">

### Author: ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)
#### Post date: [November 16, 2020, 1:05am UTC](https://discourse.julialang.org/t/julia-1-5-1-for-raspian-32-bit-rasperry-pi/46969/5 "2020-11-16T01:05:44Z")

</div>

Hope it helps. Thanks for sharing.
