2015-03-13 83 views
0

我嘗試在bluehost上安裝node.js失敗。我得到的最後一個錯誤是關於只讀文件系統。我將我正在安裝的目錄設置爲755.在bluehost上安裝node.js時出錯

make -C out BUILDTYPE=Release V=1 
make[1]: Entering directory `/home7/arielbal/node-v0.12.0/out' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory `/home7/arielbal/node-v0.12.0/out' 
ln -fs out/Release/node node 
/ramdisk/bin/python tools/install.py install '' '/usr/local' 
installing /usr/local/bin/node 
make -C out BUILDTYPE=Release V=1 
make[1]: Entering directory `/home7/arielbal/node-v0.12.0/out' 
make[1]: Nothing to be done for `all'. 
make[1]: Leaving directory `/home7/arielbal/node-v0.12.0/out' 
ln -fs out/Release/node node 
/ramdisk/bin/python tools/install.py install '' '/usr/local' 
installing /usr/local/bin/node 
Traceback (most recent call last): 
    File "tools/install.py", line 202, in <module> 
    run(sys.argv[:]) 
    File "tools/install.py", line 197, in run 
    if cmd == 'install': return files(install) 
    File "tools/install.py", line 130, in files 
    action(['out/Release/node'], 'bin/node') 
    File "tools/install.py", line 79, in install 
    def install(paths, dst): map(lambda path: try_copy(path, dst), paths) 
    File "tools/install.py", line 79, in <lambda> 
    def install(paths, dst): map(lambda path: try_copy(path, dst), paths) 
    File "tools/install.py", line 70, in try_copy 
    try_unlink(target_path) # prevent ETXTBSY errors 
    File "tools/install.py", line 33, in try_unlink 
    os.unlink(path) 
OSError: [Errno 30] Read-only file system: '/usr/local/bin/node' 
make: *** [install] Error 1 
+0

共享主機?還有,你是否檢查過目錄上的權限,以確保一旦你改變了他們的權限? – ambe5960 2015-03-13 07:29:59

+0

這是共享主機。我應該檢查權限。 – abalter 2015-03-13 07:40:53

+0

我剛剛意識到它試圖安裝到/ usr/locl/bin中,我絕對沒有寫入權限。我想我需要找出一種方法來安裝它作爲某種本地安裝。 – abalter 2015-03-18 06:03:58

回答

0

這是我的工作。下載後,我使用--prefix選項運行配置。隨着你的主目錄爲例:

./configure --prefix="/home7/arielbal/node" 

然後編譯並安裝它(請& & make install的)。這會將所有內容安裝在您的「節點」文件夾下。

之後,請將您的路徑包括節點二:

export PATH="${PATH}:/home7/arielbal/node/bin" 

希望幫助!