gpt4 book ai didi

linux - 从 GitHub : support/node-builds-v4/node-linux64: Permission denied 安装 Cloud9 时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 09:55:14 25 4
gpt4 key购买 nike

当我尝试运行时,我得到了

jiewmeng@klifmedia:~/cloud9$ sudo bin/cloud9.sh
[sudo] password for jiewmeng:
--------------------------- Please wait, initializing submodules for first launch ------------------------
Submodule 'support/ace' (http://github.com/ajaxorg/ace.git) registered for path 'support/ace'
... ...
Resolving deltas: 100% (1419/1419), done.
Submodule path 'support/socket.io': checked out 'ee4c3bba5120d11489dc98da75082a2c65eac9e1'
--------------------------- Submodules installed ------------------------
Linux 64 bit
bin/cloud9.sh: 39: support/node-builds-v4/node-linux64: Permission denied

怎么了。我怎样才能安装cloud9?

更新 1

向下阅读说明“启动错误:二进制文件和 node.js”,发现我可能需要安装 o3,因为我在 x64 上。我试过了

jiewmeng@klifmedia:~$ git clone http://github.com/ajaxorg/o3
Cloning into o3...
...
jiewmeng@klifmedia:~$ cd o3
jiewmeng@klifmedia:~/o3$ ./tools/node_modules_build
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 node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.824s)
...
14:13:16 runner system command -> ['/usr/bin/g++', 'default/hosts/node-o3/sh_node_1.o', 'default/hosts/node-o3/sh_node_libs_1.o', '-o', '/home/jiewmeng/o3/build/default/o3.node', '-shared', '-L/usr/local/lib', '-Wl,-Bdynamic', '-lxml2']
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
Waf: Leaving directory `/home/jiewmeng/o3/build'
Build failed: -> task failed (err #1):
{task: cxx_link sh_node_1.o,sh_node_libs_1.o -> o3.node}
File "/usr/local/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 147, in prepare
error(str(e))

更新 2

我通过安装 libxml2-dev 解决了 Update 1 中的问题

jiewmeng@klifmedia:~/o3$ ./tools/node_modules_build 
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 node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.374s)
...
'build' finished successfully (1m46.076s)
jiewmeng@klifmedia:~/o3$ sudo cp build/default/o3.node ~/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/

然后...回到同样的错误...

jiewmeng@klifmedia:~$ cd cloud9/
jiewmeng@klifmedia:~/cloud9$ bin/cloud9.sh
Linux 64 bit
bin/cloud9.sh: 39: support/node-builds-v4/node-linux64: Permission denied

最佳答案

您是否尝试过 chmod +x support/node-builds-v4/node-linux64?

关于linux - 从 GitHub : support/node-builds-v4/node-linux64: Permission denied 安装 Cloud9 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5865584/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com