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