# Raspberrypi binary

**URL:** https://forum.crystal-lang.org/t/raspberrypi-binary/5967
**Category:** Help & Support
**Created:** [September 1, 2023, 1:34pm UTC](https://forum.crystal-lang.org/t/raspberrypi-binary/5967 "2023-09-01T13:34:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mungo](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mungo](https://forum.crystal-lang.org/u/mungo)
#### Post date: [September 1, 2023, 1:34pm UTC](https://forum.crystal-lang.org/t/raspberrypi-binary/5967/1 "2023-09-01T13:34:09Z")

</div>

I am unable to compile Crystal on a Raspberrypi. Can anyone let me have a compiled version. Thanks.

---

<div class="post-metadata">

### Author: ![hugopl](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hugopl/32/970_2.png) [@hugopl](https://forum.crystal-lang.org/u/hugopl)
#### Post date: [September 1, 2023, 7:08pm UTC](https://forum.crystal-lang.org/t/raspberrypi-binary/5967/2 "2023-09-01T19:08:41Z")

</div>

You can cross compile, usually is faster than compile on a Raspberrypi.

I wrote this in 2019, it’s now outdated since IIRC the libcrystal.a doesn’t exists anymore but it may be useful.

[https://hugopl.github.io/2019/04/28/Crystal-on-raspberry-pi.html](https://hugopl.github.io/2019/04/28/Crystal-on-raspberry-pi.html)

---

<div class="post-metadata">

### Author: ![MistressRemilia](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/mistressremilia/32/2585_2.png) [@MistressRemilia](https://forum.crystal-lang.org/u/MistressRemilia)
#### Post date: [September 1, 2023, 9:10pm UTC](https://forum.crystal-lang.org/t/raspberrypi-binary/5967/3 "2023-09-01T21:10:10Z")

</div>

I’m not able to cross-compile to AArch64 for various reasons, so I instead used a pre-compiled static binary [from here](https://dev.alpinelinux.org/archive/crystal/) to bootstrap the compiler from source. Something like this in the source tree…

```auto
PATH="/path/to/static/binary:$PATH" make release=1 progress=1 interpreter=0

```

This has worked for both my Raspberry Pi 4’s and my PineBook Pro, and I’m able to make a native package this way that works on both.

---

<div class="post-metadata">

### Author: ![mungo](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@mungo](https://forum.crystal-lang.org/u/mungo)
#### Post date: [September 2, 2023, 7:38am UTC](https://forum.crystal-lang.org/t/raspberrypi-binary/5967/4 "2023-09-02T07:38:21Z")

</div>

I will not be able to cross compile so this sounds like the ideal solution.  
Thank you very much.
