Tuesday, December 8, 2015

how to run nodejs app in freebsd linux

1. how to install nodejs in freebsd
=======================
cd /usr/ports/lang/python27
make install clean
*******************************
if
- env: python: No such file or directory
then create link
ln -s /usr/local/bin/python2.7 /usr/local/bin/python
- Object directory not changed from original /usr/ports/devel/libexecinfo/work/libexecinfo-1.1
then download some lib
http://ftp.nsysu.edu.tw/FreeBSD/ports/local-distfiles/itetcu/libexecinfo-1.1.tar.bz2
http://ftp.nsysu.edu.tw/FreeBSD/ports/local-distfiles/sunpoet/npm-1.3.11.tar.xz
to
/usr/ports/distfiles/
then
cd /usr/ports/devel/libexecinfo
make deinstall
make install
*******************************
cd /usr/ports/www/node
./configure
make
cd /usr/ports/www/npm
make install
*******************************
whereis npm
npm: /usr/local/bin/npm /usr/local/lib/node_modules/npm/man/man1/npm.1 /usr/ports/www/npm
whereis node
node: /usr/local/bin/node /usr/local/man/man1/node.1.gz /usr/ports/www/node


2. how to install mongodb in freebsd
=======================
http://ftp.nsysu.edu.tw/FreeBSD/ports/local-distfiles/vanilla/v8-3.18.5.tar.xz
to
/usr/ports/distfiles/
then
cd /usr/ports/databases/mongodb
make install

No comments: