Skip to content

Instantly share code, notes, and snippets.

@gavinengel
Created August 19, 2013 06:11
Show Gist options
  • Save gavinengel/6266132 to your computer and use it in GitHub Desktop.
Save gavinengel/6266132 to your computer and use it in GitHub Desktop.
Cloud9 Error
#### commands used to setup virtual machine, per:
#### https://github.com/ajaxorg/cloud9/issues/2905#issuecomment-22685063 ####
sudo apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev;
# to get package 'add-apt-repository'
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties
# adding node.js
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update;
sudo apt-get install -y nodejs
# pulling the latest cloud9 project code
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9/
sudo npm install
sudo npm install jsDAV
#### Running the daemon ... ####
notroot@ubuntu:~/cloud9$ sudo ~/cloud9/bin/cloud9.sh
mkdir -p plugins-client/lib.ace/www/worker
rm -rf /tmp/c9_worker_build
mkdir -p /tmp/c9_worker_build/ext
ln -s `pwd`/plugins-client/ext.language /tmp/c9_worker_build/ext/language
ln -s `pwd`/plugins-client/ext.codecomplete /tmp/c9_worker_build/ext/codecomplete
ln -s `pwd`/plugins-client/ext.jslanguage /tmp/c9_worker_build/ext/jslanguage
ln -s `pwd`/plugins-client/ext.csslanguage /tmp/c9_worker_build/ext/csslanguage
ln -s `pwd`/plugins-client/ext.htmllanguage /tmp/c9_worker_build/ext/htmllanguage
ln -s `pwd`/plugins-client/ext.linereport /tmp/c9_worker_build/ext/linereport
ln -s `pwd`/plugins-client/ext.linereport_php /tmp/c9_worker_build/ext/linereport_php
ln -s `pwd`/plugins-client/ext.linereport_python /tmp/c9_worker_build/ext/linereport_python
node Makefile.dryice.js worker
# cloud9 worker ---------
/home/notroot/cloud9/node_modules/dryice/lib/dryice/index.js:647
throw new Error('Each commonjs root should be a directory: ' + root);
^
Error: Each commonjs root should be a directory: /home/notroot/cloud9/node_modules/ace/lib
at CommonJsProject.<anonymous> (/home/notroot/cloud9/node_modules/dryice/lib/dryice/index.js:647:13)
at Array.map (native)
at new CommonJsProject (/home/notroot/cloud9/node_modules/dryice/lib/dryice/index.js:645:27)
at Function.copy.createCommonJsProject (/home/notroot/cloud9/node_modules/dryice/lib/dryice/index.js:961:10)
at worker (/home/notroot/cloud9/Makefile.dryice.js:43:30)
at main (/home/notroot/cloud9/Makefile.dryice.js:35:9)
at Object.<anonymous> (/home/notroot/cloud9/Makefile.dryice.js:101:5)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
make: *** [plugins-client/lib.ace/www/worker/worker-language.js] Error 8
Linux 64 bit
path.existsSync is now called `fs.existsSync`.
connect plugin start
Connect server listening at http://localhost:3131
module.js:340
throw err;
^
Error: Cannot find module 'ace/package.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.require.resolve (module.js:384:19)
at Object.setup (/home/notroot/cloud9/plugins-client/lib.ace/ace-lib.js:2:24)
at startPlugins (/home/notroot/cloud9/node_modules/architect/architect.js:152:16)
at /home/notroot/cloud9/node_modules/architect/architect.js:166:13
at Object.setup (/home/notroot/cloud9/plugins-server/cloud9.debug/debug.js:16:5)
at startPlugins (/home/notroot/cloud9/node_modules/architect/architect.js:152:16)
at /home/notroot/cloud9/node_modules/architect/architect.js:166:13
at Object.setup (/home/notroot/cloud9/plugins-server/cloud9.alive/alive.js:32:5)
at startPlugins (/home/notroot/cloud9/node_modules/architect/architect.js:152:16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment