Problem compiling node.js for Debian 4 (etch)

170 views
Skip to first unread message

andiskater

unread,
Nov 21, 2009, 8:54:16 AM11/21/09
to nodejs
Hi!

I successfully compiled node.js for Mac OS X, but I canÄt get it
working on my v-server, which is limited to Debian 4 (etch).

When I run ./configure I get the following output:
-------------------
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) : fail
Checking for sendfile(2) : ok
Checking for sync_file_range(2) : fail
--- libev ---
Checking for header sys/inotify.h : not found
Checking for header sys/epoll.h : not found
Checking for header sys/event.h : not found
Checking for header sys/queue.h : not found
Checking for header port.h : not found
Checking for header poll.h : not found
Checking for header sys/select.h : not found
Checking for header sys/eventfd.h : not found
Checking for function inotify_init : not found
Checking for epoll_ctl : Traceback (most recent call
last):
File "/root/nodestuff/node/tools/waf-light", line 148, in ?
Scripting.prepare(t, cwd, VERSION, wafdir)
File "/root/nodestuff/node/tools/wafadmin/Scripting.py", line 142,
in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/root/nodestuff/node/tools/wafadmin/Scripting.py", line 132,
in prepare_impl
main()
File "/root/nodestuff/node/tools/wafadmin/Scripting.py", line 185,
in main
fun(ctx)
File "/root/nodestuff/node/tools/wafadmin/Scripting.py", line 237,
in configure
conf.sub_config([''])
File "/root/nodestuff/node/tools/wafadmin/Configure.py", line 178,
in sub_config
self.recurse(k, name='configure')
File "/root/nodestuff/node/tools/wafadmin/Utils.py", line 599, in
recurse
f(self)
File "<string>", line 123, in configure
File "/root/nodestuff/node/tools/wafadmin/Configure.py", line 178,
in sub_config
self.recurse(k, name='configure')
File "/root/nodestuff/node/tools/wafadmin/Utils.py", line 599, in
recurse
f(self)
File "<string>", line 29, in configure
File "/root/nodestuff/node/tools/wafadmin/Tools/config_c.py", line
525, in check_cc
return self.check(*k, **kw)
File "/root/nodestuff/node/tools/wafadmin/Tools/config_c.py", line
407, in check
ret = self.run_c_code(*k, **kw)
File "/root/nodestuff/node/tools/wafadmin/Tools/config_c.py", line
489, in run_c_code
bld.compile()
File "/root/nodestuff/node/tools/wafadmin/Build.py", line 267, in
compile
self.generator.start()
File "/root/nodestuff/node/tools/wafadmin/Runner.py", line 210, in
start
self.consumers = [TaskConsumer(self) for i in xrange
(self.numjobs)]
File "/root/nodestuff/node/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
-----------------------

So it seems configure crashes when checking for "epoll_ctl". I don't
know if all the "not found" messages are a problem, too.
I have to admit that I don't even know that "epoll_ctl" is.

Does someone know how to fix this, or if it is possible to compile
node.js for Debian etch at all?

I can't update the v-server system to a new kernel. Some time ago i
successfully compiled v8cgi on this server so v8 should complie.

I hope you can help me, because I really want to use node.js in a
project.

Thank you in advance,
Andi

Ryan Dahl

unread,
Nov 23, 2009, 4:16:13 AM11/23/09
to nod...@googlegroups.com
On Sat, Nov 21, 2009 at 2:54 PM, andiskater <andis...@gmail.com> wrote:
> Hi!
>
> I successfully compiled node.js for Mac OS X, but I canÄt get it
> working on my v-server, which is limited to Debian 4 (etch).
>
> When I run ./configure I get the following output:
> [...]
> thread.error: can't start new thread
> -----------------------
>
> So it seems configure crashes when checking for "epoll_ctl". I don't
> know if all the "not found" messages are a problem, too.
> I have to admit that I don't even know that "epoll_ctl" is.
>
> Does someone know how to fix this, or if it is possible to compile
> node.js for Debian etch at all?

Lets combine this with the thread:
http://groups.google.com/group/nodejs/browse_thread/thread/b74487101ff9baa4#
as it appears to be the same issue.

Node should definitely support Debian etch. I'm not immediately sure
what the problem is - I'll look into it.

premasagar

unread,
Nov 24, 2009, 1:31:21 AM11/24/09
to nodejs
Hi Ryan,
I have a similar issue. I get this on Ubuntu 9.10 (actually Ubuntu
Netbook Remix), using Node v0.1.18:

$ ./configure

Checking for program g++,c++ : not found
Checking for program icpc : not found
Checking for program c++ : not found
Checking for program CC : not found
Checking for program gcc,cc : ok /usr/bin/gcc
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 gcc : ok
Checking for library dl : ok
Checking for library execinfo : not found
Checking for gnutls : 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) : ok
--- 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 : ok
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 : ok
Checking for function select : ok
Checking for function eventfd : ok
Checking for SYS_clock_gettime : ok
Checking for library rt : ok
Checking for function clock_gettime : ok
Checking for function nanosleep : ok
Checking for function ceil : ok
---- deps/udns ----
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for inet_pton() && inet_ntop()... yes
checking for socklen_t... yes
checking for libraries needed for socket and connect... ok (none
needed)
checking for IPv6... yes
checking for poll()... yes
creating config.h... ok
creating Makefile... ok
creating config.status... ok
all done.
'configure' finished successfully (6.632s)


$ make

Waf: Entering directory `/home/premasagar/projects/node/build'
error: cxx is not a valid task generator -> ['command-output',
'cmd_output', 'cc', 'cmd', 'subst', 'copy']
make: *** [all] Error 1


$ make install

Waf: Entering directory `/home/premasagar/projects/node/build'
error: cxx is not a valid task generator -> ['command-output',
'cmd_output', 'cc', 'cmd', 'subst', 'copy']
make: *** [install] Error 1


==

Prem

Premasagar Rose

unread,
Nov 24, 2009, 5:21:09 AM11/24/09
to nodejs
Some more info - it seems to have installed successfully on another machine, using Ubuntu 9.10 standard edition (i.e. not Ubuntu Netbook Remix). There must be something extra I have on that machine.

Prem




2009/11/24 premasagar <p...@dharmafly.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.





--
Premasagar Rose, Dharmafly
http://dharmafly.com | 07941 192398
http://premasagar.com | http://twitter.com/premasagar

Urban Hafner

unread,
Nov 26, 2009, 9:35:57 AM11/26/09
to nod...@googlegroups.com
premasagar wrote:
> Hi Ryan,
> I have a similar issue. I get this on Ubuntu 9.10 (actually Ubuntu
> Netbook Remix), using Node v0.1.18:
>
> $ ./configure
>
> Checking for program g++,c++ : not found
> Checking for program icpc : not found
> Checking for program c++ : not found
> Checking for program CC : not found

I think you just need to install g++ and then it should work.

Urban

Premasagar Rose

unread,
Nov 26, 2009, 11:13:31 AM11/26/09
to nod...@googlegroups.com
Thanks, Urban. Yes - I installed g++ and now node.js installs fine on the Ubuntu Netbook Remix machine.
I still get "Checking for epoll_ctl: fail" during the configuration, but it does look like it installed OK. Haven't sparked it all up yet, though.

Prem




2009/11/26 Urban Hafner <ur...@bettong.net>
--

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.


Ryan Dahl

unread,
Nov 26, 2009, 3:41:48 PM11/26/09
to nod...@googlegroups.com
On Thu, Nov 26, 2009 at 8:13 AM, Premasagar Rose <p...@dharmafly.com> wrote:
> Thanks, Urban. Yes - I installed g++ and now node.js installs fine on the
> Ubuntu Netbook Remix machine.
> I still get "Checking for epoll_ctl: fail" during the configuration, but it
> does look like it installed OK. Haven't sparked it all up yet, though.

That's okay. Mac doens't have epoll. Node uses select() instead on macintosh.

Premasagar Rose

unread,
Nov 26, 2009, 4:56:17 PM11/26/09
to nod...@googlegroups.com
Ah, ok. The word 'fail' disturbed me, but it sounds like all is in order.

Prem

kandelakig

unread,
Dec 2, 2009, 9:07:22 AM12/2/09
to nodejs
Hi,

Thank you for the topic.
and for the answers (Urban).
I had the same problem and it helped.
:-)

--

cristianB

unread,
Dec 14, 2009, 2:21:09 PM12/14/09
to nodejs
Hi.
I'm on Ubuntu 9.10 (not netbook remix), i have g++ installed and i
still get similar "not found" ( execinfo, sys/event.h, port.h ) and
"failed" (fail) messages.
Any idea what i can do?

Felix Geisendörfer

unread,
Dec 14, 2009, 2:37:48 PM12/14/09
to nodejs
Make sure you have this package:

http://packages.ubuntu.com/karmic/build-essential

I don't think you need anything else for a working node build on a
fresh karmic install.

-- Felix Geisendörfer aka the_undefined

cristianB

unread,
Dec 14, 2009, 3:53:07 PM12/14/09
to nodejs
Hmm, strange. I installed the package you mentioned (thanks), got the
same messages, but ./copnfigure said all was succesfull, blah-blah so
i continuted with compiling and make test said build finished
sucessfully.
I ran the "Hello World" server and all was ok, so...

CLF

unread,
Jan 11, 2010, 7:55:51 AM1/11/10
to nodejs
I fixed this on Fedora by installing the gcc-c++ package.

> > nodejs+un...@googlegroups.com<nodejs%2Bunsu...@googlegroups.com>


> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nodejs?hl=en.
>
> --

Reply all
Reply to author
Forward
0 new messages