ncb000gt/node.bcrypt.js — Issue #49: Install fails under OSX Lion
Author: elii
Created: 2011-12-06 16:41:30+00:00
State: open

Hi,

I try to install with

npm install bcrypt

I am running with node 0.4.7 and npm 1.0.106 under Mac OSX 10.7 Lion.

I have openssl and pkg-config installed and compiled node with

./configure --openssl-libpath=/usr/local/ssl/lib --openssl-includes=/usr/local/ssl/include

This is the error log I get:

> bcrypt@0.4.1 install /Users/elias/myApp/node_modules/bcrypt
> make build

rm -f bcrypt_lib.node
rm -Rf build
node-waf configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for gcc : ok
Checking for node path : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local
Checking for function RAND_bytes : no such environment: default
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 241, in configure
conf.sub_config([''])
File "/usr/local/bin/../lib/node/wafadmin/Configure.py", line 221, in sub_config
self.recurse(k, name='configure')
File "/usr/local/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/Users/elias/myApp/node_modules/bcrypt/wscript", line 27, in configure
uselib_store='OPENSSL')
File "/usr/local/bin/../lib/node/wafadmin/Tools/config_c.py", line 444, in check
ret = self.run_c_code(*k, **kw)
File "/usr/local/bin/../lib/node/wafadmin/Tools/config_c.py", line 521, in run_c_code
o = bld(features=kw['features'], source=test_f_name, target='testprog')
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 343, in __call__
return TaskGen.task_gen(*k, **kw)
File "/usr/local/bin/../lib/node/wafadmin/TaskGen.py", line 118, in __init__
self.env = self.bld.env.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
make: *** [configure] Error 1
npm ERR! error installing bcrypt@0.4.1 Error: bcrypt@0.4.1 install: `make build`
npm ERR! error installing bcrypt@0.4.1 `sh "-c" "make build"` failed with 2
npm ERR! error installing bcrypt@0.4.1 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing bcrypt@0.4.1 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing bcrypt@0.4.1 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! bcrypt@0.4.1 install: `make build`
npm ERR! `sh "-c" "make build"` failed with 2
npm ERR!
npm ERR! Failed at the bcrypt@0.4.1 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make build
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bcrypt"
npm ERR! cwd /Users/elias/myApp
npm ERR! node -v v0.4.7
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/elias/myApp/npm-debug.log
npm not ok

Do you have any ideas what I could try?