LoginSignup
8
5

More than 5 years have passed since last update.

Node.js のインストール(ソースから)

Posted at

epelリポジトリにあるNode.jsのバージョンが古かったのでソースから入れ直した時のメモ
ソースからインストールする場合はGCC 4.9.5 以上が必要らしいので、それを済ませたうえで実施します。

手順

  1. ソースをダウンロードする

    # curl -LkvOf https://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz
    
  2. ダウンロードしたソースを展開する

    # tar zxf node-v8.11.3.tar.gz
    
  3. 展開してできたディレクトリに移動する

    # cd node-v8.11.3
    
  4. configureコマンドを実行する

    # ./configure --prefix=/usr
    
  5. makeコマンドを実行する

    # make
    
  6. インストールする

    # make install
    

確認

# which node
/bin/node

# node -v
v8.11.3

参考

8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5