login community faq
0
1

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

1
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's gravatar image

interstar
12

edited May 18 '11 at 21:08

Hi,

Can you try installing with:

git clone https://github.com/joyent/node.git
cd node
export JOBS=8 # optional, sets number of parallel commands.
mkdir ~/local
./configure --prefix=$HOME/local/node
make
make install
export PATH=$HOME/local/node/bin:$PATH
(May 18 '11 at 20:17) neeravk ♦♦ neeravk's gravatar image

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

(Aug 02 '11 at 07:44) varun varun's gravatar image

You need to install a g++ or c++ compiler such as http://www.cygwin.com/ or http://www.mingw.org/.

(Aug 02 '11 at 08:00) timg ♦♦ timg's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×21

Asked: May 18 '11 at 20:10

Seen: 2,096 times

Last updated: Aug 02 '11 at 08:00

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited