waveto/node-compress

fail to "npm install compress"

Closed this issue · 1 comments

T1B0 commented

Hi there,

I'm having trouble to install compress on my debian 64, i get a "Checking for library z : no such environment: default"
in the node-waf configure phase, and then a big stack trace.
I have already installed zlib1l-dev.

here the full error :

$ npm install compress

compress@0.1.9 preinstall /home/foulek/data/nodework/node_modules/compress
node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)
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 : not found
Checking for node prefix : ok /home/foulek/data/nodei
Checking for library z : no such environment: default
Traceback (most recent call last):
File "/home/foulek/data/nodei/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Scripting.py", line 241, in configure
conf.sub_config([''])
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Configure.py", line 221, in sub_config
self.recurse(k, name='configure')
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/home/foulek/data/nodework/node_modules/compress/wscript", line 18, in configure
conf.check(lib='z', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='ZLIB')
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Tools/config_c.py", line 444, in check
ret = self.run_c_code(_k, *_kw)
File "/home/foulek/data/nodei/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 "/home/foulek/data/nodei/bin/../lib/node/wafadmin/Build.py", line 343, in call
return TaskGen.task_gen(_k, *_kw)
File "/home/foulek/data/nodei/bin/../lib/node/wafadmin/TaskGen.py", line 118, in init
self.env = self.bld.env.copy()
AttributeError: 'NoneType' object has no attribute 'copy'
npm ERR! error installing compress@0.1.9 Error: compress@0.1.9 preinstall: node-waf clean || true; node-waf configure build
npm ERR! error installing compress@0.1.9 sh "-c" "node-waf clean || true; node-waf configure build" failed with 1
npm ERR! error installing compress@0.1.9 at ChildProcess. (/home/foulek/data/nodei/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing compress@0.1.9 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing compress@0.1.9 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! compress@0.1.9 preinstall: node-waf clean || true; node-waf configure build
npm ERR! sh "-c" "node-waf clean || true; node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the compress@0.1.9 preinstall script.
npm ERR! This is most likely a problem with the compress package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls compress
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.0-1-amd64
npm ERR! command "node" "/home/foulek/data/nodei/bin/npm" "install" "compress"
npm ERR! cwd /home/foulek/data/nodework
npm ERR! node -v v0.4.11
npm ERR! npm -v 1.0.30
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/foulek/data/nodework/npm-debug.log
npm not ok

Anyone any clues ?

thx !

T1B0 commented

I've sorted this out ! node-compress is one of the few module that would not build on debian with python2.7, while others would work just fine .... so this issue is totally about node-waf, python and debian, nothing to do with this module actually !

Sorry for flooding in there, i was getting kindof nuts on this ....