当我尝试运行时,我正在接受
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 cos我在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
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
答案 0 :(得分:1)
您是否尝试过chmod + x support / node-builds-v4 / node-linux64?
答案 1 :(得分:1)
在终端中设置变量NODE_PATH的值,如下所示:
export NODE_PATH="/usr/local/lib/node"
答案 2 :(得分:0)
我收到的信息是此权限问题应该已修复。请再试一次。