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

OS X. Failed to install #113

Closed
velocityzen opened this issue Feb 3, 2016 · 12 comments
Closed

OS X. Failed to install #113

velocityzen opened this issue Feb 3, 2016 · 12 comments

Comments

@velocityzen
Copy link

tmp ❯ npm i scrypt --save

> scrypt@5.4.1 install /Users/velocityzen/Projects/tmp/node_modules/scrypt
> node-gyp rebuild

  COPY ../scrypt/scrypt-1.1.6/config.h
  SOLINK_MODULE(target) Release/copied_files.node
  CC(target) Release/obj.target/scrypt_wrapper/src/util/salt.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/keyderivation.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/pickparams.o
  CC(target) Release/obj.target/scrypt_wrapper/src/scryptwrapper/hash.o
  LIBTOOL-STATIC Release/scrypt_wrapper.a
Usage: /usr/local/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
make: *** [Release/scrypt_wrapper.a] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/velocityzen/Projects/tmp/node_modules/scrypt
gyp ERR! node -v v5.5.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN ENOENT ENOENT: no such file or directory, open '/Users/velocityzen/Projects/tmp/package.json'
npm WARN EPACKAGEJSON tmp No description
npm WARN EPACKAGEJSON tmp No repository field.
npm WARN EPACKAGEJSON tmp No README data
npm WARN EPACKAGEJSON tmp No license field.
npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "scrypt" "--save"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! scrypt@5.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the scrypt@5.4.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the scrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls scrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/velocityzen/Projects/tmp/npm-debug.log
@velocityzen
Copy link
Author

tmp ❯ libtool --version
libtool (GNU libtool) 2.4.6

@barrysteyn
Copy link
Owner

Please try version 6. I think it will fix your problem.

tmp ❯ libtool --version
libtool (GNU libtool) 2.4.6


Reply to this email directly or view it on GitHub
#113 (comment)
.

@velocityzen
Copy link
Author

@barrysteyn same libtool: error: unrecognised option: '-static'

@barrysteyn
Copy link
Owner

Okay, I will look into this over the weekend. I'll do this on my Mac. Try
to publish on Monday

@velocityzen
Copy link
Author

@barrysteyn thanks!

@velocityzen
Copy link
Author

I found a problem. I have another version of libtool installed in /usr/local/bin/libtool.
You should use OSX stock libtool from /usr/bin/libtool

@barrysteyn
Copy link
Owner

Hi Alexey

I don't explicitly use any libtool, that is the job of node-gyp. I think
that node-gyp just looks for the libtool in the standard place. Look for
node-gyp on npm, there is documentation there, perhaps you can change the
libtool search path.

@velocityzen
Copy link
Author

Ok, then it's node-gyp problem 👍

@lbrth
Copy link

lbrth commented Feb 6, 2017

Sorry to reopen this, but could you explain how you fixed this problem exactly ? thanks !

@makc
Copy link

makc commented Dec 20, 2017

@lbrth this worked for me:

mv /usr/local/bin/libtool /usr/local/bin/libtool.bak
npm install scrypt
mv /usr/local/bin/libtool.bak /usr/local/bin/libtool

CC #155

@nghiadt16
Copy link

@makc thank you so so much! I spent a lot of time to deal with it :(

@yiakwy
Copy link

yiakwy commented May 8, 2018

@makc This is a much cleaner solution with minimum side effects

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

6 participants