[GH-ISSUE #97] Add support for ARM or Raspberry Pi3 #53

Closed
opened 2026-02-25 22:32:29 +03:00 by kerem · 5 comments
Owner

Originally created by @elRadix on GitHub (Jan 7, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/97

Can you please add support for armv7
uname -a= Linux 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux

was trying to compile but I hit the wall with this error.


root@raspi:~/go/pkg/mod# export GOPATH="/bin/mkcert"
root@raspi:/opt/mkcert-1.2.0# go build
go: finding github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/net v0.0.0-20180627171509-e514e69ffb8b
go: finding software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237
go: downloading golang.org/x/net v0.0.0-20180627171509-e514e69ffb8b
go: downloading software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237
go: downloading golang.org/x/text v0.3.0
root@raspi:/opt/mkcert-1.2.0# mkcert
-bash: mkcert: command not found
root@raspi:/opt/mkcert-1.2.0# which mkcert
root@raspi:/opt/mkcert-1.2.0# go version
go version go1.11.4 linux/arm
Originally created by @elRadix on GitHub (Jan 7, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/97 Can you please add support for armv7 uname -a= Linux 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux was trying to compile but I hit the wall with this error. ``` root@raspi:~/go/pkg/mod# export GOPATH="/bin/mkcert" root@raspi:/opt/mkcert-1.2.0# go build go: finding github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b go: finding golang.org/x/text v0.3.0 go: finding golang.org/x/net v0.0.0-20180627171509-e514e69ffb8b go: finding software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237 go: downloading golang.org/x/net v0.0.0-20180627171509-e514e69ffb8b go: downloading software.sslmate.com/src/go-pkcs12 v0.0.0-20180114231543-2291e8f0f237 go: downloading golang.org/x/text v0.3.0 root@raspi:/opt/mkcert-1.2.0# mkcert -bash: mkcert: command not found root@raspi:/opt/mkcert-1.2.0# which mkcert root@raspi:/opt/mkcert-1.2.0# go version go version go1.11.4 linux/arm ```
kerem closed this issue 2026-02-25 22:32:29 +03:00
Author
Owner

@FiloSottile commented on GitHub (Jan 7, 2019):

Just saw your edit. You built it successfully, it’s just not installed in your PATH. Try “./mkcert”.

<!-- gh-comment-id:451988561 --> @FiloSottile commented on GitHub (Jan 7, 2019): Just saw your edit. You built it successfully, it’s just not installed in your PATH. Try “./mkcert”.
Author
Owner

@bozhodimitrov commented on GitHub (Jan 7, 2019):

It seems that RPi 2/3 is supported. I just cross compiled the latest version.

For RPi 2/3 you can do the following:

bash
# On build machine
git clone --recurse-submodules https://github.com/FiloSottile/mkcert.git
GOARM=7 GOOS=linux GOARCH=arm go build -o "mkcert-$(git describe --tags)-linux-arm7"

# cp the resulting binary mkcert-<version>-linux-arm7 to RPi and rename it to mkcert
sudo apt update && sudo apt upgrade -y
sudo apt install libnss3-tools
sudo install mkcert /usr/local/bin

@FiloSottile maybe we can add the arm7 build artifact/binary to the release?
It seems to work fine for the latest Raspbian OS.

<!-- gh-comment-id:451989122 --> @bozhodimitrov commented on GitHub (Jan 7, 2019): It seems that RPi 2/3 is supported. I just cross compiled the latest version. For RPi 2/3 you can do the following: ``` bash # On build machine git clone --recurse-submodules https://github.com/FiloSottile/mkcert.git GOARM=7 GOOS=linux GOARCH=arm go build -o "mkcert-$(git describe --tags)-linux-arm7" # cp the resulting binary mkcert-<version>-linux-arm7 to RPi and rename it to mkcert sudo apt update && sudo apt upgrade -y sudo apt install libnss3-tools sudo install mkcert /usr/local/bin ``` @FiloSottile maybe we can add the arm7 build artifact/binary to the release? It seems to work fine for the latest Raspbian OS.
Author
Owner

@FiloSottile commented on GitHub (Jan 8, 2019):

Done. Picked GOARM=6 to support all RPi models.

<!-- gh-comment-id:452386269 --> @FiloSottile commented on GitHub (Jan 8, 2019): Done. Picked GOARM=6 to support all RPi models.
Author
Owner

@erosenberg commented on GitHub (Nov 19, 2020):

@FiloSottile - I noticed the latest release for arm doesn't specify v7... mkcert-v1.4.2-linux-arm
Is this compatible with Raspberry Pi 2/3? Or do I need to generate something different than what you have listed on your Releases page?

<!-- gh-comment-id:730036906 --> @erosenberg commented on GitHub (Nov 19, 2020): @FiloSottile - I noticed the latest release for arm doesn't specify v7... `mkcert-v1.4.2-linux-arm` Is this compatible with Raspberry Pi 2/3? Or do I need to generate something different than what you have listed on your Releases page?
Author
Owner

@bozhodimitrov commented on GitHub (Nov 19, 2020):

@erosenberg It should be compatible - the incentive for using v6 is to make the resulting binary more compatible in order to run on older RPi models. But if you wish, you can recompile it for v7 - it can give you a little bit of (negligible) speedup.

<!-- gh-comment-id:730271746 --> @bozhodimitrov commented on GitHub (Nov 19, 2020): @erosenberg It should be compatible - the incentive for using v6 is to make the resulting binary more compatible in order to run on older RPi models. But if you wish, you can recompile it for v7 - it can give you a little bit of (negligible) speedup.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#53
No description provided.