sonar icon indicating copy to clipboard operation
sonar copied to clipboard

Document requirements for installing sonar (for native modules)

Open nemi-notrace opened this issue 4 years ago • 1 comments

Running a fresh installed Linux Mint 20 or an Ubuntu 20.04 needs additional packages to get sonar to run.

After installing nvm, node and dat, I tried sonar. On both Mint and Ubuntu you have first to install git. sudo apt install git then I tried to run npm install -g @arso-project/sonar-server again. It still fails here are the last lines from the log:

9814 verbose npm  v6.14.8
9815 error code ELIFECYCLE
9816 error errno 1
9817 error [email protected] install: node-gyp-build "node preinstall.js" "node postinstall.js"
9817 error Exit status 1
9818 error Failed at the [email protected] install script.
9818 error This is probably not a problem with npm. There is likely additional logging output above.
9819 verbose exit [ 1, true ]

to get it run I had to install libtool and the build-essential:

sudo apt install build-essential
sudo apt install libtool

after this I could install sonar.

I'm not sure why but I think that you need libtool for the script stuff from [email protected] and the g++ compiler from build-essential to compile some stuff which the script is calling.

nemi-notrace avatar Oct 05 '20 20:10 nemi-notrace

Yup, we should document this somewhere.

Frando avatar Mar 11 '21 11:03 Frando