Giter Site home page Giter Site logo

Comments (13)

navinpurohit avatar navinpurohit commented on July 22, 2024 17

Hello guyz, i resolved this problem recently by running just 2 commands:-

  1. sudo apt-get install libtool
  2. sudo apt-get install autoconf

Try and share your results. :-)

from node-sodium.

loudambiance avatar loudambiance commented on July 22, 2024 5

I solved this in Fedora by installing libtool, dnf install libtool. Which was not part of the automake or autoconf package.

from node-sodium.

Elm0P2 avatar Elm0P2 commented on July 22, 2024

Did you try pancakes

from node-sodium.

jwverzijden avatar jwverzijden commented on July 22, 2024

I had this exact same error on a debian machine while reinstalling the package.

the steps I followed:

  1. I deleted the sodium directory from node_modules and executed
    npm i sodium
    which failed in the error above.

  2. So I deleted the entire node_modules directory and executed
    npm i
    which installed all the packages from my package.json including sodium.

I have no clue how this could have helped in anyway but it did, so maybe it does for you?

from node-sodium.

paixaop avatar paixaop commented on July 22, 2024

you need to install autotools so you can compile libsodium natively.
Check http://askubuntu.com/questions/430706/installing-autotools-autoconf

from node-sodium.

FireController1847 avatar FireController1847 commented on July 22, 2024

Still happening, can confirm.

@paixaop I installed it and I'm still getting the error.

from node-sodium.

latipun7 avatar latipun7 commented on July 22, 2024

This is happening to me too. Ubuntu LTS 16.04

from node-sodium.

28andrew avatar 28andrew commented on July 22, 2024

This is happening to me too. Ubuntu LTS 16.04

from node-sodium.

Isabello avatar Isabello commented on July 22, 2024

It clearly states why at the top of the log:

Static libsodium was not found at /home/user/Desktop/nodejs/‎sodium-test/node_modules/.staging/sodium-5c5931be/deps/build/lib/libsodium so compiling libsodium from source.
libtool is required, but wasn't found on this system

from node-sodium.

timm0e avatar timm0e commented on July 22, 2024

Trying to install on Digitalocean, it happens to me too

Tested with latest Ubuntu and Debian

I installed the required things and did everything the npm page suggested

EDIT: Install also failing on Manjaro

from node-sodium.

raufis27 avatar raufis27 commented on July 22, 2024

Libtool and autoconf installed, but :

Static libsodium was not found at /usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/deps/build/lib/libsodium so compiling libsodium from source.
libtoolize: error: Failed to create 'build-aux'
make: *** [libsodium] Error 1
Makefile:61: recipe for target 'libsodium' failed
/usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/install.js:287
throw new Error(cmdLine + ' exited with code ' + code);
^

Error: make libsodium exited with code 2
at ChildProcess. (/usr/local/lib/node_modules/hap-client-tool/node_modules/sodium/install.js:287:19)
at ChildProcess.emit (events.js:159:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: node install.js --preinstall
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from node-sodium.

raufis27 avatar raufis27 commented on July 22, 2024

Ok, I was able to install it using yarn.

from node-sodium.

navinpurohit avatar navinpurohit commented on July 22, 2024

@raufis27 Nice

from node-sodium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.