login community faq
0
1

I've followed the steps from previous examples to get node.js going and have run into a make error:

NameError: name 'set' is not defined

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    [rianders@web10 src]$ git clone git://github.com/joyent/node.git
    [rianders@web10 src]$ cd node
    [rianders@web10 node]$ grep -ri "bin/env python" . | cut -d ":" -f 1 | xargs sed -i 's/env python/env python2.6/'
    [rianders@web10 node]$ ./configure --jobs=1 --prefix=$HOME
    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 program ar                  : /usr/bin/ar 
    Checking for program ranlib              : /usr/bin/ranlib 
    Checking for gcc                         : ok  
    Checking for library dl                  : yes 
    Checking for openssl                     : yes 
    Checking for library util                : yes 
    Checking for library rt                  : yes 
    Checking for CLOCK_MONOTONIC             : yes 
    Checking for fdatasync(2) with c++       : yes 
    'configure' finished successfully (0.772s)
    [rianders@web10 node]$ make
    Traceback (most recent call last):
      File "tools/waf-light", line 157, in ?
        import Scripting
      File "/home2/rianders/src/node/tools/wafadmin/Scripting.py", line 9, in ?
        import Utils, Configure, Build, Logs, Options, Environment, Task
      File "/home2/rianders/src/node/tools/wafadmin/Build.py", line 18, in ?
        import Runner, TaskGen, Node, Scripting, Utils, Environment, Task, Logs, Options
      File "/home2/rianders/src/node/tools/wafadmin/TaskGen.py", line 54, in ?
        class task_gen(object):
      File "/home2/rianders/src/node/tools/wafadmin/TaskGen.py", line 87, in task_gen
        traits = Utils.DefaultDict(set)
    NameError: name 'set' is not defined
    make: *** [program] Error 1

==== Also, set the alias:

alias python='python2.6'

asked Aug 08 '11 at 14:40

ricklon's gravatar image

ricklon
11


It is necessary to be on a server newer than Web20 to install node.js; web1-web20 run an operating system with an old GLIBC. Upgrading this could introduce incompatibilities with legacy applications still running on these servers.

On a newer server, you should be able to install node.js using the following:

1
2
3
4
5
6
7
8
mkdir -p $HOME/src
cd $HOME/src
wget http://nodejs.org/dist/node-v0.4.10.tar.gz
tar -xzf node-v0.4.10.tar.gz
cd node-v0.4.10
alias python=python2.6
./configure --jobs=8 --prefix=$HOME
make && make install

Anyone on an older server is free to migrate to a newer server, which also offers our better hosting plans, at no cost.

answered Aug 08 '11 at 21:57

ryans's gravatar image

ryans ♦♦
28411420

Your answer
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: Aug 08 '11 at 14:40

Seen: 1,661 times

Last updated: Aug 08 '11 at 21:57

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