v4.11で進めます。
環境はW5に入れている、debian squeezeです。
Linux debian 2.6.32-5-686 #1 SMP Mon Jun 13 04:13:06 UTC 2011 i686 GNU/Linux日本語解説サイトはもはや役に立たないので公式情報を参考に進めていきます
特にsidしかパッケージがないこともあり自前でbuildする必要があります。/usr以下を汚したくないため$HOME/localにインストール方法なので後で後くされなく消せるのでおすすめな方法です。
まずは、gitから落としてきます
shin@debian:~/dev$ git clone --depth 1 git://github.com/joyent/node.gitCloning into node...remote: Counting objects: 21010, done.remote: Compressing objects: 100% (8487/8487), done.remote: Total 21010 (delta 16287), reused 16130 (delta 12136)Receiving objects: 100% (21010/21010), 32.83 MiB | 263 KiB/s, done.Resolving deltas: 100% (16287/16287), done.
つぎにv4.11 をcheck outします
$HOME/local/nodeへのインストールを指示しconfigureします。shin@debian:~/dev$ cd node/shin@debian:~/dev/node$ git checkout v0.4.11Note: checking out 'v0.4.11'.
You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at a745d19... Bump version to v0.4.11
あとは、まけまけインストールshin@debian:~/dev/node$ export JOBS=2shin@debian:~/dev/node$ mkdir ~/localshin@debian:~/dev/node$ ./configure --prefix=$HOME/local/nodeChecking for program g++ or c++ : /usr/bin/g++Checking for program cpp : /usr/bin/cppChecking for program ar : /usr/bin/arChecking for program ranlib : /usr/bin/ranlibChecking for g++ : okChecking for program gcc or cc : /usr/bin/gccChecking for program ar : /usr/bin/arChecking for program ranlib : /usr/bin/ranlibChecking for gcc : okChecking for library dl : yesChecking for openssl : yesChecking for library util : yesChecking for library rt : yes--- libeio ---Checking for library pthread : yesChecking for function pthread_create : yesChecking for function pthread_atfork : yesChecking for futimes(2) : yesChecking for readahead(2) : yesChecking for fdatasync(2) : yesChecking for pread(2) and pwrite(2) : yesChecking for sendfile(2) : yesChecking for sync_file_range(2) : yes--- libev ---Checking for header sys/inotify.h : yesChecking for function inotify_init : yesChecking for header sys/epoll.h : yesChecking for function epoll_ctl : yesChecking for header port.h : not foundChecking for header poll.h : yesChecking for function poll : yesChecking for header ['sys/types.h', 'sys/event.h'] : not foundChecking for header sys/queue.h : yesChecking for function kqueue : not foundChecking for header sys/select.h : yesChecking for function select : yesChecking for header sys/eventfd.h : yesChecking for function eventfd : yesChecking for SYS_clock_gettime : yesChecking for library rt : yesChecking for function clock_gettime : yesChecking for function nanosleep : yesChecking for function ceil : yesChecking for fdatasync(2) with c++ : yes'configure' finished successfully (4.283s)
最後に.profileにPATHを設定しますshin@debian:~/dev/node$ makeshin@debian:~/dev/node$ make install
インストールはこれで終わりですshin@debian:~$ echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profileshin@debian:~$ echo 'export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules' >> ~/.profileshin@debian:~$ source ~/.profile
0 件のコメント:
コメントを投稿