当我尝试跑步时,我得到了
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
我通过安装解决了 Update 1 中的问题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