WebFaction
Community site: login 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

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 :

[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

-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 18 May '11, 20:10

interstar
1114
accept rate: 0%

edited 18 May '11, 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
(18 May '11, 20:17) neeravk

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

(02 Aug '11, 07:44) varun

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

(02 Aug '11, 08:00) timg ♦♦
Be the first one to answer this question!
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67

question asked: 18 May '11, 20:10

question was seen: 6,688 times

last updated: 02 Aug '11, 08:00

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM