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

fatal error: sodium.h: No such file or directory #11

Open
virtualjj opened this issue Jan 15, 2018 · 1 comment
Open

fatal error: sodium.h: No such file or directory #11

virtualjj opened this issue Jan 15, 2018 · 1 comment

Comments

@virtualjj
Copy link

On Ubuntu Ubuntu 16.04.3 I got the following error:

stratumuser@ip-x-x-x-x:~/nomp$ npm update

> [email protected] install /home/stratumuser/nomp/node_modules/multi-hashing
> node-gyp rebuild

make: Entering directory '/home/stratumuser/nomp/node_modules/multi-hashing/build'
  CXX(target) Release/obj.target/multihashing/multihashing.o
In file included from ../multihashing.cc:27:0:
../equi.h:18:20: fatal error: sodium.h: No such file or directory
compilation terminated.
multihashing.target.mk:145: recipe for target 'Release/obj.target/multihashing/multihashing.o' failed
make: *** [Release/obj.target/multihashing/multihashing.o] Error 1
make: Leaving directory '/home/stratumuser/nomp/node_modules/multi-hashing/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/stratumuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0-1041-aws
gyp ERR! command "/home/stratumuser/.nvm/versions/node/v8.9.4/bin/node" "/home/stratumuser/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/stratumuser/nomp/node_modules/multi-hashing
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

The error is fatal error: sodium.h: No such file or directory.

These are the steps I used to install:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | sh
source ~/.profile
nvm install 8.9.4
nvm use 8.9.4
nvm alias default 8.9.4
git clone https://github.com/krisklosterman/node-open-mining-portal nomp
cd nomp
npm update

I tried installing package libsodium18 but got the same error.

Then I tried installing libsodium-dev and npm update appears to work now. Here are the last few lines of output:

.
.
  SOLINK_MODULE(target) Release/obj.target/multihashing.node
  COPY Release/multihashing.node
make: Leaving directory '/home/stratumuser/nomp/node_modules/multi-hashing/build'
npm notice created a lockfile as package-lock.json. You should commit this file.
+ [email protected]
added 3 packages in 20.404s

Is this expected behaviour? I'm raising this as a potential issue as the package is not required for zone117x/node-open-mining-portal. Thanks in advance!

@ghost
Copy link

ghost commented Jan 15, 2018

pyca/pynacl#79

Problem with libsodium on Ubuntu. On Debian there is no problem.
Did You install libsodium under root or user?

On Deb I install all under root, pool start under user without sudo.

Is there same error with my repo?

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

1 participant