Skip to content

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

@nemi-notrace

Description

@nemi-notrace

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 sodium-native@2.4.9 install: node-gyp-build "node preinstall.js" "node postinstall.js"
9817 error Exit status 1
9818 error Failed at the sodium-native@2.4.9 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 sodium-native@2.4.9 and the g++ compiler from build-essential to compile some stuff which the script is calling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions