Installing Mongoose OS on Raspberry

If you are asking a question, please follow this template:

  1. My goal is: installing Mongoose OS on Raspberry as I want this to try: https://github.com/bitluni/MongooseApps/tree/master/Actuator

  2. My actions are: did the generic Linux install with curl (https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md)

  3. The result I see is: I get an error: “binary file cannot get executed - error in the format of the program file” (translated from German)

  4. My expectation & question is: see No 1

Thanks.

There is no prebuilt mos tool for arm (RasPi).
You will have to build it yourself

1 Like

I’ve had mos running on a Raspberry Pi for a couple of years using the above, but I’ve just tried to install on a new build and I’m getting errors as below:

go version go1.13.4 linux/arm
GOOS= GOARCH= CC= CXX= \
/usr/local/go/bin/go build -mod=vendor -tags '' -ldflags '-s -w ''' -o mos github.com/mongoose-os/mos/cli
# pkg-config --cflags -- libftdi1
Package libftdi1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libftdi1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libftdi1' found
pkg-config: exit status 1
Makefile:93: recipe for target 'build-mos' failed
make: *** [build-mos] Error 2

Anyone got any suggestions what might be causing this?

You don’t have the libftdi1 library or it is not properly installed, so pkg-config does not find it and can’t provide the proper flags to build mos.
Search for that library on your distribution or install it from source