魔女喰い(裏メモ) https://otspace.stores.jp/items/5d3a42973a7e964d4a66924c @stores_jp
【署名のお願い】自然エネルギー100%と原発の段階的廃止を実現するため「エネルギー基本計画」を変えよう!

note.mu徒然なるままに

EC2で動くかもしれないCloud9の圧縮ファイルを作ったので

Cloud9ってこういうやつです

GitHubのソースはココからゲット

そして出来たのが

Cloud9 0.7.0

EC2で動くかもしれないCloud9の圧縮ファイルを作ったので

普通に入れると、なぜか依存関係やらなんやらで動かないことがありまして・・・
その依存関係やらなんやらを解消するのが非常に面倒でして・・・
作ってしまいました。
これダメかな?

NODE.jsは
sodu -sやってから

・libxml2-develのインストール
yum -y install libxml2-devel  <=これ必要らしい

・NAVEのインストール
cd /usr/tmp
yum -y install git
git clone http://github.com/isaacs/nave.git 
cd /usr/local
ln -s /usr/tmp/nave nave

・NODEJSのインストール
/usr/local/nave/nave.sh install 0.8.25
/usr/local/nave/nave.sh use 0.8.25

とこのようにして作成

圧縮ファイルをEC2へアップロードして
cd /root/.nave
mv /home/ec2-user/cloud9.tar.gz .
chown root:root cloud9.tar.gz
tar zxvf cloud9.tar.gz
cd cloud9
npm list
cloud9@0.7.0 /root/.nave/cloud9
tqw ace@1.0.0
x tqq amd-loader@0.0.4
x tqq asyncjs@0.0.9
x tqw dryice@0.4.10
x x mqq uglify-js@1.3.5
x tqw jsdom@0.2.19
x x tqw contextify@0.1.6
x x x mqq bindings@1.1.0
x x tqq cssom@0.2.5
x x tqq cssstyle@0.2.3
x x tqq htmlparser@1.7.6
x x mqw request@2.21.0
x x   tqq aws-sign@0.3.0
x x   tqq cookie-jar@0.3.0
x x   tqq forever-agent@0.5.0
x x   tqw form-data@0.0.8
x x   x tqq async@0.2.9
x x   x mqw combined-stream@0.0.4
x x   x   mqq delayed-stream@0.0.5
x x   tqw hawk@0.13.1
x x   x tqw boom@0.4.2
x x   x x mqq hoek@0.9.1
x x   x tqq cryptiles@0.2.1
x x   x tqq hoek@0.8.5
x x   x mqw sntp@0.2.4
x x   x   mqq hoek@0.9.1
x x   tqw http-signature@0.9.11
x x   x tqq asn1@0.1.11
x x   x tqq assert-plus@0.1.2
x x   x mqq ctype@0.5.2
x x   tqq json-stringify-safe@4.0.0
x x   tqq node-uuid@1.4.0
x x   tqq oauth-sign@0.3.0
x x   tqq qs@0.6.5
x x   mqq tunnel-agent@0.3.0
x mqq mime@1.2.9
tqq amd-loader@0.0.4
tqq apf@0.1.0
tqq architect@0.1.4
tqq async@0.1.21
tqq asyncjs@0.0.7
tqw connect@1.8.7
x tqq formidable@1.0.14
x tqq mime@1.2.9
x mqq qs@0.6.5
tqw connect-architect@0.0.6
x mqq mime@1.2.9
tqw dryice@0.4.10
x mqq uglify-js@1.3.5
tqq http-error@0.0.1
tqw jsDAV@0.2.4
x tqq asyncjs@0.0.8
x tqq formidable@1.0.9
x tqq gnu-tools@0.0.8
x tqw jsftp@0.5.9
x x mqq streamer@0.2.1
x tqq node-sftp@0.1.1
x mqq xmldom@0.1.2
tqq mappings@0.1.5
tqq netutil@0.0.1
tqw nodeunit@0.7.4
x mqw tap@0.4.3
x   tqq buffer-equal@0.0.0
x   tqq deep-equal@0.0.0
x   tqw difflet@0.2.5
x   x tqq charm@0.0.8
x   x tqq deep-is@0.1.2
x   x mqq traverse@0.6.3
x   tqw glob@3.2.1
x   x tqq graceful-fs@1.2.2
x   x tqq inherits@1.0.0
x   x mqw minimatch@0.2.12
x   x   tqq lru-cache@2.3.0
x   x   mqq sigmund@1.0.0
x   tqq inherits@2.0.0
x   tqq mkdirp@0.3.5
x   tqw nopt@2.1.1
x   x mqq abbrev@1.0.4
x   tqw runforcover@0.0.2
x   x mqw bunker@0.1.2
x   x   mqw burrito@0.2.12
x   x     tqq traverse@0.5.2
x   x     mqq uglify-js@1.1.1
x   tqq slide@1.1.4
x   mqq yamlish@0.0.5
tqw optimist@0.3.4
x mqq wordwrap@0.0.2
tqw packager@0.1.0
x tqq asyncjs@0.0.9
x mqq libxml@0.0.7
tqw rimraf@2.0.1
x mqq graceful-fs@1.1.14
tqq simple-template@0.0.1
tqq sinon@1.3.4
tqw smith@0.1.9
x mqq msgpack-js@0.1.5
tqw smith.io@0.0.36
x tqw engine.io@0.3.5
x x tqq base64id@0.1.0
x x tqq debug@0.6.0
x x tqw engine.io-client@0.3.6
x x x tqw ws@0.4.20
x x x x tqq commander@0.6.1
x x x x tqq options@0.0.5
x x x x mqq tinycolor@0.0.1
x x x mqq xmlhttprequest@1.5.0
x x mqw ws@0.4.25
x x   tqq commander@0.6.1
x x   tqq options@0.0.5
x x   mqq tinycolor@0.0.1
x tqq msgpack-js-browser@0.1.4
x mqw smith@0.1.13
x   mqq msgpack-js@0.1.5
tqq treehugger@0.0.1
tqw v8debug@0.1.1
x mqq amd-loader@0.0.4
tqw vfs-architect@0.0.2
x tqq architect@0.1.10
x mqw vfs-local@0.3.11
x   mqq simple-mime@0.0.8
tqw vfs-local@0.3.11
x mqq simple-mime@0.0.8
mqq vfs-nodefs-adapter@0.3.0

起動
bin/cloud9.sh 

もしかしたら動くかもしれないCloud9の圧縮ファイルでしたw
まだテストしてませんw

ここまでは来ました。
...
connect plugin start
Connect server listening at http://localhost:3131
IDE SERVER PLUGIN:  auth
IDE SERVER PLUGIN:  git
IDE SERVER PLUGIN:  gittools
IDE SERVER PLUGIN:  hg
IDE SERVER PLUGIN:  npm
IDE SERVER PLUGIN:  filelist
IDE SERVER PLUGIN:  search
IDE SERVER PLUGIN:  revisions
IDE SERVER PLUGIN:  settings
IDE SERVER PLUGIN:  shell
IDE SERVER PLUGIN:  state
IDE SERVER PLUGIN:  watcher
IDE SERVER PLUGIN:  node-runtime
IDE SERVER PLUGIN:  npm-runtime
IDE SERVER PLUGIN:  python-runtime
IDE SERVER PLUGIN:  apache-runtime
IDE SERVER PLUGIN:  ruby-runtime
IDE SERVER PLUGIN:  php-runtime
IDE SERVER PLUGIN:  other-runtime
Started '/root/.nave/cloud9/configs/default'!
IDE server initialized. Listening on localhost:3131

__
うまくいかない時もあります。
そんな時は、こんなエラーになっちゃいます。
色々弄っていたらNGになったので・・・
make: Nothing to be done for `update'.
Linux 64 bit
path.existsSync is now called `fs.existsSync`.
connect plugin start

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: listen EADDRINUSE
    at errnoException (net.js:770:11)
    at HTTPServer.Server._listen2 (net.js:910:14)
    at listen (net.js:932:10)
    at Server.listen (net.js:1006:9)
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:121:9)

・Opera Nextで実行するとエラーになる。
path.exists is now called `fs.exists`.

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

だめだ。
うまく動かないじゃん。
path.existsSync is now called `fs.existsSync`.
path.exists is now called `fs.exists`.

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at HTTPServer.Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at net.js:1135:9
    at asyncCallback (dns.js:68:16)
    at Object.onanswer [as oncomplete] (dns.js:121:9)

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)


__

この時の解決方法はNODEをアンインストールしてインストールし直す。バージョンは0.8.25が良いみたい。


気を取り直して、完全に初めからやってみる。



コメント

人気の投稿

Hot Trends

Wikipedia

検索結果