2015-09-19 61 views
1

謝謝這篇文章http://habrahabr.ru/post/95960/ 我想正確安裝節點js。但在配置的那一刻,我對未安裝的軟件包有一些問題。嘗試安裝節點JS,但在製作時遇到問題./configure

Checking for program g++ or c++   : /usr/bin/g++ 
Checking for program cpp     : /usr/bin/cpp 
Checking for program ar     : /usr/bin/ar 
Checking for program ranlib    : /usr/bin/ranlib 
Checking for g++       : ok 
Checking for program gcc or cc   : /usr/bin/gcc 
Checking for gcc       : ok 
Checking for library dl     : not found 
Checking for library execinfo   : not found 
Checking for openssl      : yes 
Checking for library rt     : not found 
--- libeio --- 
Checking for library pthread    : not found 
Checking for function pthread_create  : not found 
/usr/local/bin/node/deps/libeio/wscript:12: error: the configuration failed (see '/usr/local/bin/node/build/config.log') 

有人能幫我找到那些嗎?我已經搜索過,並試圖通過apt-get管理器來安裝它,但我還沒有達到任何結果。我正在使用Ubuntu 14.

回答

0

我想安裝節點使用NVM /更新(節點版本管理器)的最佳方式https://github.com/creationix/nvm

要安裝 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash

安裝節點4.1 nvm install 4.1

S uper容易,你可以用nvm來做很多東西。只需檢查文檔。

如果你想編譯,就像你在做,你必須安裝所有需要的庫。

+0

你的方法沒有爲我工作。我猜nvm已安裝,但第二個命令它退出消息: '〜$ nvm install 4.1' '沒有命令'nvm'找到,你的意思是:...' 'nvm:命令未找到' – GKV

+0

它在你的bash配置文件中添加一些行'腳本將nvm存儲庫克隆到〜/ .nvm,並將源代碼行添加到您的配置文件中(〜/ .bash_profile,〜/ .zshrc或〜/ .profile)。「它應該用完該盒子,嘗試打開一個新的bash/shell並再次執行該命令,'nvm' – DevAlien

+0

無論如何,我需要node.js更少我猜。我正在使用symfony2,並嘗試通過捆綁包安裝bootsrap和jQuery,以獲得本地支持,但仍然沒有結果。 – GKV