Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在bluehost上安装node.js时出错_Python_Node.js_Bluehost - Fatal编程技术网

Python 在bluehost上安装node.js时出错

Python 在bluehost上安装node.js时出错,python,node.js,bluehost,Python,Node.js,Bluehost,我尝试在bluehost上安装node.js失败。最后一个错误是关于只读文件系统。我将要安装的目录从/设置为755 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

我尝试在bluehost上安装node.js失败。最后一个错误是关于只读文件系统。我将要安装的目录从/设置为755

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
make-C out BUILDTYPE=Release V=1
make[1]:输入目录“/home7/arielbal/node-v0.12.0/out”
make[1]:对“所有人”都不做任何事情。
make[1]:离开目录“/home7/arielbal/node-v0.12.0/out”
ln-fs out/Release/node节点
/ramdisk/bin/python工具/install.py安装“”/usr/local
安装/usr/local/bin/node
make-C out BUILDTYPE=Release V=1
make[1]:输入目录“/home7/arielbal/node-v0.12.0/out”
make[1]:对“所有人”都不做任何事情。
make[1]:离开目录“/home7/arielbal/node-v0.12.0/out”
ln-fs out/Release/node节点
/ramdisk/bin/python工具/install.py安装“”/usr/local
安装/usr/local/bin/node
回溯(最近一次呼叫最后一次):
文件“tools/install.py”,第202行,在
运行(sys.argv[:])
运行中的第197行文件“tools/install.py”
如果cmd=='install':返回文件(安装)
文件中第130行的文件“tools/install.py”
操作(['out/Release/node'],'bin/node')
安装中第79行的文件“tools/install.py”
def安装(路径,dst):映射(lambda路径:try_copy(路径,dst),路径)
文件“tools/install.py”,第79行,在
def安装(路径,dst):映射(lambda路径:try_copy(路径,dst),路径)
文件“tools/install.py”,第70行,在try\u copy中
尝试取消链接(目标路径)#防止ETXTBSY错误
try\u unlink中第33行的文件“tools/install.py”
操作系统取消链接(路径)
OSError:[Errno 30]只读文件系统:'/usr/local/bin/node'
make:**[安装]错误1

以下是对我有效的方法。下载后,我使用--prefix选项运行configure。以您的homedir为例:

./configure --prefix="/home7/arielbal/node"
然后构建并安装它(make&&make-install)。在本地安装“节点”文件夹下的所有内容

之后,将路径设置为包含节点二进制文件:

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

希望有帮助

它是共享主机吗?另外,您是否检查了目录上的权限,以确保在您更改权限后,这些权限已通过?它是共享主机。我应该检查权限。我刚刚意识到它正试图安装到/usr/locl/bin中,我肯定没有写入权限。我想我需要找到一种方法,将其作为某种本地安装进行安装。