Desinerd : Dipankar's Blog

Node.js on FreeBSD

Published: in Personal, , , , by .

$ sudo portmaster devel/pkg-config devel/libexecinfo devel/cmake devel/scons lang/python27 
$ git clone https://github.com/joyent/node.git 
$ cd node/deps/v8 
$ git checkout v0.4.6 
$ scons os=freebsd arch=x64 (takes a while to compile v8) 
$ sudo cp libv8* /usr/local/lib 
$ cd ~/node $ ./configure \ --prefix=/usr/local \ --shared-v8 \ --shared-v8-includes=/home/mikl/node/deps/v8/include \ --shared-v8-libpath=/usr/local/lib \ --shared-v8-libname=v8 
$ gmake 
$ sudo gmake install

The above works like a charm when it comes to installing nodejs on FreeBSD !

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *