Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document requirements for installing sonar (for native modules) #63

Open
nemi-notrace opened this issue Oct 5, 2020 · 1 comment
Open

Comments

@nemi-notrace
Copy link
Contributor

nemi-notrace commented Oct 5, 2020

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.

@Frando
Copy link
Member

Frando commented Mar 11, 2021

Yup, we should document this somewhere.

@Frando Frando changed the title Install sonar on ubuntu/linuxmint Document requirements for installing sonar (for native modules) Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants