Comments (10)
I just cloned node-sodium, ran:
node-gyp clean
node-gyp configure
node-gyp build
I got the pretty much the sam error:
make: Entering directory /home/vagrant/projects/round-node/node_modules/node-sodium/build' CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/crypto_auth.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/crypto_box.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/crypto_box_easy.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_core/salsa20/ref/core_salsa20.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_core/salsa20/core_salsa20_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_generichash/crypto_generichash.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_hash/crypto_hash.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_hash/sha256/hash_sha256_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_hash/sha256/cp/hash_sha256.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_hash/sha512/hash_sha512_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_hash/sha512/cp/hash_sha512.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.o CC(target) Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.o In file included from ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.c:5:0: ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h:10:1: error: unable to emulate 'TI' ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h: In function 'poly1305_blocks': ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h:123:31: warning: right shift count >= width of type [enabled by default] ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h:124:17: warning: right shift count >= width of type [enabled by default] ../deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna64.h:125:17: warning: right shift count >= width of type [enabled by default] make: *** [Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.o] Error 1 make: Leaving directory
/home/vagrant/projects/round-node/node_modules/node-sodium/build'
gyp ERR! build error
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/bin/node-gyp" "build"
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
from node-sodium.
can you try the develop branch?
from node-sodium.
I'm getting this:
gyp: /home/vagrant/node-sodium/deps/libsodium.gyp not found (cwd: /home/vagrant/node-sodium) while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/bin/node-gyp" "configure"
gyp ERR! cwd /home/vagrant/node-sodium
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
In the develop branch node-sodium/deps has libsodium.gyp.in but not libsodium.gyp
from node-sodium.
I copy and pasted libsodium.gyp from master just to give it a shot:
make: Entering directory /home/vagrant/projects/round-node/node_modules/sodium/build' make: Warning: File
sodium.target.mk' has modification time 7.5e+02 s in the future
make: *** No rule to make target Release/obj.target/libsodium/deps/libsodium-1.0.0/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o', needed by
Release/obj.target/deps/sodium.a'. Stop.
make: Leaving directory /home/vagrant/projects/round-node/node_modules/sodium/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/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /home/vagrant/projects/round-node/node_modules/sodium
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
vagrant@precise32:~/projects/round-node/node_modules/sodium$
from node-sodium.
Please run make configure to create the necessary files
On 2/18/15 8:46 PM, bezreyhan wrote:
I'm getting this:
gyp: /home/vagrant/node-sodium/deps/libsodium.gyp not found (cwd:
/home/vagrant/node-sodium) while loading dependencies of binding.gyp
while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: |gyp| failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit
(/usr/lib/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(child_process.js:810:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/bin/node-gyp" "configure"
gyp ERR! cwd /home/vagrant/node-sodium
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not okIn the develop branch node-sodium/deps has libsodium.gyp.in but not
libsodium.gyp—
Reply to this email directly or view it on GitHub
#34 (comment).
from node-sodium.
That's the error I got when I ran node-gyp configure
when I run make configure I get: ./autogen.sh: 13: ./autogen.sh: libtoolize: not found
When I copy and pasted the libsodium.gyp file from master I was able to configure but then I got the last error that I posted in my last comment.
from node-sodium.
Ok, I got it to build but I had to first download libtoolize and automake.
Is there a way to list those packages in the dependencies so that they download automatically?
Also, do you know how I can get this to work with NPM?
Thanks
from node-sodium.
You need to install autotools and autoconf in your system. This is a
requirement of libsodium itself
on mac you can run
|brew install automake|
or
|sudo port install automake autoconf libtool
|
|
On 2/18/15 10:19 PM, bezreyhan wrote:
That's the error I got when I ran node-gyp configure
when I run make configure I get: ./autogen.sh: 13: ./autogen.sh:
libtoolize: not foundWhen I copy and pasted the libsodium.gyp file from master I was able
to configure but then I got the last error that I posted in my last
comment.—
Reply to this email directly or view it on GitHub
#34 (comment).
from node-sodium.
Should work with npm now.
On 2/18/15 10:48 PM, bezreyhan wrote:
Ok, I got it to build but I had to first download libtoolize and automake.
Is there a way to list those packages in the dependencies so that they
download automatically?
Also, do you know how I can get this to work with NPM?Thanks
—
Reply to this email directly or view it on GitHub
#34 (comment).
from node-sodium.
I had compiled libsodium from source so I was missing those packages.
npm install does work now. Thanks for the help!
from node-sodium.
Related Issues (20)
- Fails to compile on openSUSE LEAP 15 (../deps/build/lib/libsodium.a: No such file or directory ) HOT 8
- Cant install sodium on my Pi HOT 2
- Compiling sodium on TravisCI fails HOT 1
- Console error 'msvsversiion not defined' when invalid Visual Studio Version is found
- Invalid ELF Header HOT 1
- Error installing on Windows
- make libsodium exited with code 2, pwhash_argon2i fails HOT 3
- NPM install fails with node-gyp error: cannot use a string pattern on a bytes-like object
- package install errors HOT 3
- How to pre-build Node Sodium?
- install.js support vs2019 please HOT 1
- Installing on Windows Failed HOT 1
- Way to use exists keypair which generated in Java HOT 1
- libbtool/libsodium not installing on Petrodctyle panel
- ed25519 decode / decompress HOT 1
- Cannot install with yarn berry
- Can't install sodium, please help me (Windows) HOT 1
- Does not compile on Linux ARM. HOT 6
- Is this library still maintained?
- Can't Install (Windows) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sodium.