Trouble Configuring v0.1.18

12 views
Skip to first unread message

Edd S

unread,
Nov 22, 2009, 10:34:43 AM11/22/09
to nodejs
I have successfully managed to build and run node.js on my local
machine. However, when trying to install it on my webfaction account I
get the following python error when trying to configure the build. Is
this something I am doing wrong or that is wrongly configured on the
server?

[edd@web77 node-v0.1.18]$ ./configure
Checking for program g++,c++ : ok /usr/bin/g++
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc,cc : ok /usr/bin/gcc
Checking for gcc : ok
Checking for library dl : ok
Checking for library execinfo : not found
--- libeio ---
Checking for library pthread : ok
Checking for function pthread_create : ok
Checking for function pthread_atfork : ok
Checking for futimes(2) : ok
Checking for readahead(2) : ok
Checking for fdatasync(2) : ok
Checking for pread(2) and pwrite(2) : ok
Checking for sendfile(2) : ok
Checking for sync_file_range(2) : fail
--- libev ---
Checking for header sys/inotify.h : ok
Checking for header sys/epoll.h : ok
Checking for header sys/event.h : not found
Checking for header sys/queue.h : ok
Checking for header port.h : not found
Checking for header poll.h : ok
Checking for header sys/select.h : ok
Checking for header sys/eventfd.h : not found
Checking for function inotify_init : ok
Checking for epoll_ctl : fail
Checking for function kqueue : not found
Checking for function port_create : not found
Checking for function poll : Traceback (most recent call
last):
File "/home/edd/src/node-v0.1.18/tools/waf-light", line 148, in ?
Scripting.prepare(t, cwd, VERSION, wafdir)
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Scripting.py", line
142, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Scripting.py", line
132, in prepare_impl
main()
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Scripting.py", line
185, in main
fun(ctx)
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Scripting.py", line
237, in configure
conf.sub_config([''])
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Configure.py", line
178, in sub_config
self.recurse(k, name='configure')
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Utils.py", line 599,
in recurse
f(self)
File "<string>", line 123, in configure
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Configure.py", line
178, in sub_config
self.recurse(k, name='configure')
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Utils.py", line 599,
in recurse
f(self)
File "<string>", line 34, in configure
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Tools/config_c.py",
line 525, in check_cc
return self.check(*k, **kw)
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Tools/config_c.py",
line 407, in check
ret = self.run_c_code(*k, **kw)
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Tools/config_c.py",
line 489, in run_c_code
bld.compile()
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Build.py", line 267,
in compile
self.generator.start()
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Runner.py", line
210, in start
self.consumers = [TaskConsumer(self) for i in xrange
(self.numjobs)]
File "/home/edd/src/node-v0.1.18/tools/wafadmin/Runner.py", line 31,
in __init__
self.start()
File "/usr/lib/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

Ryan Dahl

unread,
Nov 23, 2009, 3:39:24 AM11/23/09
to nod...@googlegroups.com
> thread.error: can't start new thread

Is it possible you're running out of memory?

olafk

unread,
Nov 24, 2009, 3:55:45 AM11/24/09
to nodejs
On 23 Nov., 09:39, Ryan Dahl <coldredle...@gmail.com> wrote:
> > thread.error: can't start new thread
>
> Is it possible you're running out of memory?

I had the same issue on a Linux-VPS, with 1 GB RAM,
very few services running.

Maybe 1 GB is not enough, how much memory does
the script need?

Daniel Bartlett

unread,
Nov 24, 2009, 5:14:30 AM11/24/09
to nod...@googlegroups.com
I use/compile/etc node on a 512M Xen VM, even with 5000 connections to
a node http server the RSS memory usage only goes to 600k.

2009/11/24 olafk <olaf.kl...@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>
>

Daniel Bartlett

unread,
Nov 24, 2009, 5:15:24 AM11/24/09
to nod...@googlegroups.com
Which distro are you trying to build on Edd?

2009/11/24 Daniel Bartlett <d...@f-box.org>:

Edd S

unread,
Nov 24, 2009, 5:16:40 AM11/24/09
to nodejs
On Nov 23, 8:39 am, Ryan Dahl <coldredle...@gmail.com> wrote:
> > thread.error: can't start new thread
>
> Is it possible you're running out of memory?

This is probably the case. A little odd that a configuration script
would need so much memory but I have found a simple fix. I managed to
get the script to run if you just limit the number of jobs it can run
using the --jobs parameter. So running:

./configure --jobs=1

lets the script run all the way to the end.

Edd

olafk

unread,
Nov 24, 2009, 5:43:45 AM11/24/09
to nodejs
Works for me also,
thanks Edd.
Reply all
Reply to author
Forward
0 new messages