samshull/node-proxy — Issue #17: node-proxy install fails: "no such file or directory"
Author: thinklog
Created: 2011-10-12 01:01:59+00:00
State: open

Hi.

I was attempting to install now.js that relies on node-proxy, but that installation kept failing. Finally, I decided to try to clone and node-proxy directly from github and run make against it. I get the exact same problem.

I also tried the remedies proposed here:
http://permalink.gmane.org/gmane.comp.lang.javascript.nodejs/29563
but that didn't work either.

The error message follow below:

BUILDING: C++ Component
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 node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.046s)
Waf: Entering directory `/root/downloads/node-proxy/node-proxy/src/build'
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 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 399, in build_impl
bld.add_subdirs([os.path.split(Utils.g_module.root_path)[0]])
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 981, in add_subdirs
self.recurse(dirs, 'build')
File "/usr/local/bin/../lib/node/wafadmin/Utils.py", line 634, in recurse
f(self)
File "/root/downloads/node-proxy/node-proxy/src/wscript", line 13, in build
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 335, in new_task_gen
ret = cls(*k, **kw)
File "/usr/local/bin/../lib/node/wafadmin/Tools/ccroot.py", line 162, in __init__
TaskGen.task_gen.__init__(self, *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'
cp: cannot stat `src/build/*/node-proxy.node': No such file or directory
make: *** [all] Error 1

Any help would be appreciated.