Hugo on Raspberry Pi Zero W

Hi everybody, I am new here, hello.
I tried to install Hugo on a Raspberry Pi Zero W.
I ve copied the arm32-tar.gz version to /usr/local/bin and tried to start Hugo - but always get the error “Invalid machine command” (Ungültiger Maschinenbefehl in German).
Next try was to install Go and build it from source, but it stopped several times with “go: error loading module requirements” - and I have no idea what to do.
Is Hugo compatibel to Raspi Zero and how can I install it?
Thanks in advance for a hint!

asti

Maybe @anthonyfok can help.

Hi @asti,

Sorry for my late response. I have been away for a while.

I tried to install Hugo on a Raspberry Pi Zero W.
I’ve copied the arm32-tar.gz version to /usr/local/bin and tried to start Hugo - but always get the error “Invalid machine command”

Raspberry Pi 1 and Raspberry Pi Zero W use an older ARM CPU that does not support hardware floating point instructions. So, in Debian nomenclature, you’ll need to install Hugo compiled for the armel (ARM 32-bit, endian-little, software floating point) architecture.

For Raspberry Pi 2 and above, you may use the arm32-tar.gz, or in Debian nomenclature, armhf (ARM 32-bit hardware floating point).

Wait, maybe it is not (just) the hardware floating point, but rather, ARMv7 vs ARMv6 instructions too. The following page may offer more info: https://wiki.debian.org/RaspberryPi

See Recent armhf builds not working on Raspberry Pi · Issue #3176 · gohugoio/hugo · GitHub

Assuming you are running Raspbian on your Raspberry Pi Zero W,
fetching the armel Hugo binary from Debian might work. See Debian -- Details of package hugo in buster

I must admit I haven’t tested it for quite a while. I need to revive my RPI1 to do some testing, but unfortunately, no time today.

2 Likes