Running Node JS 0.8.0 FreeBSD 9

2,078 views
Skip to first unread message

Ben Short

unread,
Jul 3, 2012, 8:02:44 AM7/3/12
to nod...@googlegroups.com
Hi, 

Is it possible to run Node JS 0.8.0 on FreeBSD? 

I ask because libuv doesn't start that FreeBSD is a supported operating system and Node JS no uses libuv.

Thanks

Ben

Ben Noordhuis

unread,
Jul 3, 2012, 9:02:17 AM7/3/12
to nod...@googlegroups.com
Hi, namesake.

FreeBSD is not an officially supported platform but I try to keep it
going on a best-effort basis. I had planned to work on that today or
tomorrow, actually.

There is a version of node.js in ports but I can't vouch for its
stability or up-to-date-ness - it's not maintained by us.

Ben Short

unread,
Jul 3, 2012, 9:25:21 AM7/3/12
to nod...@googlegroups.com
Hi Ben, 

Thanks.

FYI I get the following error when trying to configure version 0.8.0

[ben@freebsd ~/node-v0.8.1/build]$ ../configure
{ 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'host_arch': 'x64',
                 'node_install_npm': 'true',
                 'node_install_waf': 'true',
                 'node_prefix': '',
                 'node_shared_openssl': 'false',
                 'node_shared_v8': 'false',
                 'node_shared_zlib': 'false',
                 'node_use_dtrace': 'false',
                 'node_use_etw': 'false',
                 'node_use_openssl': 'true',
                 'strict_aliasing': 'true',
                 'target_arch': 'x64',
                 'v8_no_strict_aliasing': 'false',
                 'v8_use_snapshot': 'true'}}
creating  ../config.gypi
creating  ../config.mk
/usr/local/bin/python: can't open file 'tools/gyp_node': [Errno 2] No such file or directory

Ben

Nathan Rajlich

unread,
Jul 3, 2012, 12:03:38 PM7/3/12
to nod...@googlegroups.com
Invoke "./configure" from the root directory of the node source tree.

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
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?hl=en

Eric S

unread,
Jul 3, 2012, 1:14:25 PM7/3/12
to nod...@googlegroups.com


On Tuesday, July 3, 2012 5:02:44 AM UTC-7, Ben Short wrote:
Is it possible to run Node JS 0.8.0 on FreeBSD? 

I can't speak to its stability, but the current node-devel port currently installs 0.8.1.  No clue why that's the case, as 0.8.X isn't a devel branch, and both ports are managed by the same person.  

My work with that port (hand edited to install 0.8.0 when it was still installing 0.7.X) was able to pass the unit testing on a few basic modules I wrote, but I got pulled off of that for a higher priority project before I got to test it thoroughly.

mscdex

unread,
Jul 3, 2012, 1:32:49 PM7/3/12
to nodejs
Here is an error I get when trying to build the node 0.8.1 tarball on
FreeBSD 9 32-bit:

In file included from ../deps/uv/src/unix/eio/eio.c:41:
../deps/uv/src/unix/eio/config_linux.h:4:27: warning: linux/version.h:
No such file or directory
../deps/uv/src/unix/eio/config_linux.h:5:22: warning: features.h: No
such file or directory
../deps/uv/src/unix/eio/config_linux.h:47:53: error: missing binary
operator before token "("

Nathan Rajlich

unread,
Jul 3, 2012, 2:08:06 PM7/3/12
to nod...@googlegroups.com
It looks like gyp is recognizing your OS as linux instead of FreeBSD. Possibly a gyp bug.

Ben Noordhuis

unread,
Jul 3, 2012, 2:30:48 PM7/3/12
to nod...@googlegroups.com
On Tue, Jul 3, 2012 at 8:08 PM, Nathan Rajlich <nat...@tootallnate.net> wrote:
> It looks like gyp is recognizing your OS as linux instead of FreeBSD.
> Possibly a gyp bug.

It is but it's fixed upstream. I'll upgrade gyp before the next release.

Nathan Rajlich

unread,
Jul 3, 2012, 2:34:55 PM7/3/12
to nod...@googlegroups.com
Cool, I had a feeling it would be :)

Ben Noordhuis

unread,
Jul 3, 2012, 4:43:12 PM7/3/12
to nod...@googlegroups.com
Okay, you should be able to run `git clone
git://github.com/joyent/node.git && git checkout -b v0.8 -t
origin/v0.8 && ./configure && make` now. The two things you may have
to install are libexecinfo and gmake.

Ben Short

unread,
Jul 4, 2012, 3:30:01 AM7/4/12
to nod...@googlegroups.com
Hi Ben, 

I've just tried your instructions and it builds and runs ok. Many thanks!

Ben

Reply all
Reply to author
Forward
0 new messages