Can't Install on Mac Big Sur

#1

I am trying to install Mongoose OS (I’m a complete newbie to Mongoose). I’ve followed the instructions here, but I get “Permission denied” when creating directories:

georgeboydratcliff@MacBook ~ % curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | /bin/bash mos
Installing libftdi1.2.dylib ...
mkdir: /usr/local/opt/libftdi/lib: Permission denied
curl: (23) Failed writing body (0 != 16096)
Installing libusb-1.0.0.dylib ...
mkdir: /usr/local/opt/libusb/lib: Permission denied
curl: (23) Failed writing body (0 != 16094)
Downloading https://mongoose-os.com/downloads/mos-release/mac/mos ...
######################################################################## 100.0%
Installing into /Users/georgeboydratcliff/.mos/bin/mos ...
Adding /Users/georgeboydratcliff/.mos/bin to your PATH in /Users/georgeboydratcliff/.profile
dyld: Library not loaded: /usr/local/opt/libftdi/lib/libftdi1.2.dylib
Referenced from: /Users/georgeboydratcliff/.mos/bin/mos
Reason: image not found
/bin/bash: line 69: 66932 Abort trap: 6 $FULLPATH version
SUCCESS: /Users/georgeboydratcliff/.mos/bin/mos is installed.
Run '/Users/georgeboydratcliff/.mos/bin/mos --help' to see all available commands.
Run '/Users/georgeboydratcliff/.mos/bin/mos' without arguments to start a simplified Web UI installer.
zsh: command not found: mos
georgeboydratcliff@MacBook ~ %

I’ve tried running under sudo too, but same errors.
Any ideas? I’ve come from Arduino IDE and PlatformIO, and really want to try Mongoose!
Thanks in advance
George

#2

Try to install it with brew:

brew tap cesanta/mos
brew install mos
#3

Thanks nliviu. Tried that and get different errors (‘brew tap cesanta/mos’ worked, but ‘brew install mos’ gives me “Error: No similarly named formulae found.”) I’ve verified brew with brew -v and it appears to be installed correctly.

#4

Strange.
Let’s try something else.

brew untap cesanta/mos
brew install libftdi libusb libusb-compat
mos version
#5

‘brew untap cesanta/mos’ worked fine, but ‘brew install libftdi libusb libusb-compat’ failed with the error: georgeboydratcliff@MacBook ~ % brew install libftdi libusb libusb-compat
==> Searching for similarly named formulae…
Error: No similarly named formulae found.
Error: No available formula or cask with the name “libftdi”.
==> Searching for a previously deleted formula (in the last month)…
Error: No previously deleted formula found.
==> Searching taps on GitHub…
Error: No formulae found in taps.
georgeboydratcliff@MacBook ~ %

‘mos version’ is in my path, but gives me ‘zsh: command not found: mos’

Suddenly Arduino’s IDE isn’t looking so bad :slight_smile:

#6

Strange, both methods should work.
What architecture is your computer? Intel or M1?

#7

1.2GHz Quad-Core Intel Core i7
macOS Big Sur (Version 11.1)

#8

For what it’s worth, I’m also running Big Sur but it all works fine here. I wish I could offer a suggestion.