I'm following the instructions here :
http://community.webfaction.com/questions/75/issue-nodejs-installation
plus I had to do the following to tell the python scripts to use 2.6
| grep -ri "bin/env python" . | cut -d ":" -f 1 | xargs sed -i 's/env python/env python2.6/'
|
I also had to change the Makefile to refer to python2.6
Now I'm seeing this error :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | [50/69] libv8.a: deps/v8/SConstruct -> build/default/libv8.a
python "/home2/synaesmedia/src/node-v0.2.3/tools/scons/scons.py" -j 1 -C "/home2/synaesmedia/src/node-v0.2.3/build/default/" -Y "/home2/synaesmedia/src/node-v0.2.3/deps/v8" visibility=default mode=release library=static snapshot=on
scons: Reading SConscript files ...
NameError: global name 'sorted' is not defined:
File "/home2/synaesmedia/src/node-v0.2.3/deps/v8/SConstruct", line 1152:
Build()
File "/home2/synaesmedia/src/node-v0.2.3/deps/v8/SConstruct", line 1120:
context = BuildSpecific(env.Copy(), mode, env_overrides)
File "/home2/synaesmedia/src/node-v0.2.3/deps/v8/SConstruct", line 1012:
library_flags = context.AddRelevantFlags(user_environ, LIBRARY_FLAGS)
File "/home2/synaesmedia/src/node-v0.2.3/deps/v8/SConstruct", line 905:
for option in sorted(self.options.keys()):
Waf: Leaving directory `/home2/synaesmedia/src/node-v0.2.3/build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [all] Error 1
|
Ideas?
Update :
Hi Neeravk.
Thanks, that got me a bit further. However, in make
1
2
3
4
5
6
7
8
9
10
11
12 | -I/home2/synaesmedia/src/node/node/deps/v8/src /home2/synaesmedia/src/node/node/deps/v8/src/rewriter.cc
g++ -o obj/release/runtime-profiler.o -c -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -I/home2/synaesmedia/src/node/node/deps/v8/src /home2/synaesmedia/src/node/node/deps/v8/src/runtime-profiler.cc
/home2/synaesmedia/src/node/node/deps/v8/src/platform-linux.cc: In function `void* v8::internal::ThreadEntry(void*)':
/home2/synaesmedia/src/node/node/deps/v8/src/platform-linux.cc:587: error: `PR_SET_NAME' was not declared in this scope
/home2/synaesmedia/src/node/node/deps/v8/src/platform-linux.cc:587: warning: unused variable 'PR_SET_NAME'
g++ -o obj/release/runtime.o -c -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -I/home2/synaesmedia/src/node/node/deps/v8/src /home2/synaesmedia/src/node/node/deps/v8/src/runtime.cc
scons: *** [obj/release/platform-linux.o] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home2/synaesmedia/src/node/node/build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1
|
asked
May 18 '11 at 20:10
interstar
1●2
Hi,
Can you try installing with:
Hi,
I installed Git and i am trying to install node-v0.4.9 on Windows7 (64 bit).
When i try to run ./configure, I get the following error :
Checking for Program g++ or c++ : not found. c:node-v0.4.9wscript:232: error: could not configure a cxx compiler.
What am I missing here?
Thanks, Varun
You need to install a g++ or c++ compiler such as http://www.cygwin.com/ or http://www.mingw.org/.