sudo apt-get install build-essentials cmake
Goto here
Download the files and symlink
sudo ln -s ~/Prog/mergehex/mergehex /usr/local/bin/mergehex
sudo ln -s ~/Prog/nrfjprog/nrfjprog /usr/local/bin/nrfjprog
mbed compile -t GCC_ARM -m NRF52840_DK
Most of the source files are installed but please install cordova and add platforms as well.
cordova platform add ios
cordova platform add android