sonar
sonar copied to clipboard
Document requirements for installing sonar (for native modules)
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.
Yup, we should document this somewhere.