Download and run pre-built mos.exe.
Use PPA:
$ sudo add-apt-repository ppa:mongoose-os/mos
$ sudo apt-get update
$ sudo apt-get install mos
Note: to use the very latest version instead of the released one, the last
command should be sudo apt-get install mos-latest
Use PKGBUILD:
$ git clone https://github.com/mongoose-os/mos
$ cd mos/mos/archlinux_pkgbuild/mos-release/
$ makepkg
$ pacman -U ./mos-*.tar.xz
Note: to use the very latest version from the git repo, instead of the released
one, invoke makepkg
from mos-tool/mos/archlinux_pkgbuild/mos-latest
.
Use homebrew:
$ brew tap cesanta/mos
$ brew install mos
You will need:
- Git
- Go version 1.10 or later
- GNU Make
- Python 3
- libftdi + headers
- libusb 1.0 + headers
- Docker - optional, only for building Windows binaries on Mac or Linux.
Commands to install all the build dependencies:
- Ubuntu Linux:
sudo apt-get install build-essential git golang-go python3 libftdi-dev libusb-1.0-0-dev pkg-config
- Mac OS X (via Homebrew):
brew install coreutils libftdi libusb-compat pkg-config
- Windows 10:
TODO
Clone the repo (note: doesn't have to be in GOPATH
):
$ git clone https://github.com/mongoose-os/mos
$ cd mos
Fetch dependencies (only needed for the first build):
$ make deps
Build the binary:
$ make
It will produce mos/mos
(or mos/mos.exe` on Windows.