dvandal / cryptonote-nodejs-pool

Mining pool for all CryptoNote based coins using Cryptonight, Cryptonight Light and Cryptonight Heavy algorithms
GNU General Public License v2.0
364 stars 610 forks source link

npm update error #645

Closed OptimusBlue closed 3 years ago

OptimusBlue commented 3 years ago

Hi Guys,

When I do the npm update I get the following error:

> cryptoforknote-util@9.0.18 install /home/pool/node_modules/cryptoforknote-util
> node-gyp rebuild

make: Entering directory '/home/pool/node_modules/cryptoforknote-util/build'
  CXX(target) Release/obj.target/cryptoforknote/src/main.o
In file included from ../src/cryptonote_core/cryptonote_basic.h:28,
                 from ../src/main.cc:8:
../src/ringct/rctTypes.h:39:10: fatal error: sodium/crypto_verify_32.h: No such file or directory
   39 | #include <sodium/crypto_verify_32.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [cryptoforknote.target.mk:122: Release/obj.target/cryptoforknote/src/main.o] Error 1
make: Leaving directory '/home/deadset/ccx/pool/node_modules/cryptoforknote-util/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pool/node_modules/cryptoforknote-util
gyp ERR! node -v v10.23.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cryptoforknote-util@9.0.18 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cryptoforknote-util@9.0.18 install script.

I have tried different fersion of nodejs and also different version of cryptoforknote-util.

Any suggestions? Thanks

OptimusBlue commented 3 years ago

Thanks Muscleman for pointing me in the right direction.

Additional libraries are required with Ubuntu 20.

sudo apt-get install -y libsodium-dev

shopglobal commented 3 years ago

close this