Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bin/cloud9.sh failed #2152

Closed
masuch opened this Issue · 6 comments

2 participants

masuch surajshetty
masuch

Hi,

within bin/cloud9.sh script running i have got:

--------------------------- Please wait, initializing submodules for first launch ------------------------

# Submodule 'support/ace' (https://github.com/ajaxorg/ace.git) registered for path 'support/ace'
# Submodule 'support/apf' (https://github.com/ajaxorg/apf.git) registered for path 'support/apf'
# Submodule 'support/asyncjs' (https://github.com/ajaxorg/async.js.git) registered for path 'support/asyncjs'
# Submodule 'support/connect' (https://github.com/ajaxorg/connect.git) registered for path 'support/connect'
# Submodule 'support/gnu-builds' (https://github.com/ajaxorg/gnu-builds.git) registered for path 'support/gnu-builds'
# Submodule 'support/jsdav' (https://github.com/ajaxorg/jsDAV.git) registered for path 'support/jsdav'
# Submodule 'support/lib-v8debug' (https://github.com/ajaxorg/lib-v8debug.git) registered for path 'support/lib-v8debug'
# Submodule 'support/node-builds-v4' (https://github.com/ajaxorg/node-builds-v4.git) registered for path 'support/node-builds-v4'
# Submodule 'support/socket.io' (https://github.com/ajaxorg/socket.io.git) registered for path 'support/socket.io'
# Submodule 'support/socket.io-client' (https://github.com/ajaxorg/socket.io-client.git) registered for path 'support/socket.io-client'
# Submodule 'support/treehugger' (git://github.com/ajaxorg/treehugger.git) registered for path 'support/treehugger'
# Submodule 'support/uglify-js' (https://github.com/ajaxorg/UglifyJS.git) registered for path 'support/uglify-js'
# Cloning into support/ace...
# remote: Counting objects: 21454, done.
# remote: Compressing objects: 100% (5823/5823), done.
# remote: Total 21454 (delta 15434), reused 19975 (delta 14111)
# Receiving objects: 100% (21454/21454), 7.71 MiB | 875 KiB/s, done.
# Resolving deltas: 100% (15434/15434), done.
# Submodule path 'support/ace': checked out '21a07bd793185cf5ddf840e7aff73ead30a03ed2'
# Submodule 'doc/wiki' (git://github.com/ajaxorg/ace.wiki.git) registered for path 'doc/wiki'
# Cloning into doc/wiki...
# remote: Counting objects: 165, done.
# remote: Compressing objects: 100% (161/161), done.
# remote: Total 165 (delta 90), reused 4 (delta 2)
# Receiving objects: 100% (165/165), 24.08 KiB, done.
# Resolving deltas: 100% (90/90), done.
# Submodule path 'doc/wiki': checked out 'd2a65d0addc2e5ab922bbff9cb6022a4652b4f13'
# Cloning into support/apf...
# remote: Counting objects: 41779, done.
# remote: Compressing objects: 100% (7849/7849), done.
# remote: Total 41779 (delta 33521), reused 41616 (delta 33359)
# Receiving objects: 100% (41779/41779), 26.53 MiB | 1.09 MiB/s, done.
# Resolving deltas: 100% (33521/33521), done.
# Submodule path 'support/apf': checked out '2208a7c88712674f814f484ed826453a8d4c6aee'
# Cloning into support/asyncjs...
# remote: Counting objects: 569, done.
# remote: Compressing objects: 100% (254/254), done.
# remote: Total 569 (delta 252), reused 552 (delta 235)
# Receiving objects: 100% (569/569), 69.78 KiB, done.
# Resolving deltas: 100% (252/252), done.
# Submodule path 'support/asyncjs': checked out 'a4c7653f154553327ed0659000b5e1e7e2f02a3f'
# Cloning into support/connect...
# remote: Counting objects: 11183, done.
# remote: Compressing objects: 100% (3304/3304), done.
# remote: Total 11183 (delta 7202), reused 10793 (delta 6882)
# Receiving objects: 100% (11183/11183), 2.44 MiB | 719 KiB/s, done.
# Resolving deltas: 100% (7202/7202), done.
# Submodule path 'support/connect': checked out '6bec95b51f2286b942bc7f340d62d816bcdc13d4'
# Submodule 'support/coffee-script' (http://github.com/jashkenas/coffee-script.git) registered for path 'support/coffee-script'
# Submodule 'support/expresso' (git://github.com/visionmedia/expresso.git) registered for path 'support/expresso'
# Submodule 'support/less' (git://github.com/cloudhead/less.js.git) registered for path 'support/less'
# Submodule 'support/sass' (git://github.com/visionmedia/sass.js.git) registered for path 'support/sass'
# Cloning into support/coffee-script...
# remote: Counting objects: 22575, done.
# remote: Compressing objects: 100% (6378/6378), done.
# remote: Total 22575 (delta 16958), reused 21247 (delta 15919)
# Receiving objects: 100% (22575/22575), 8.09 MiB | 1.03 MiB/s, done.
# Resolving deltas: 100% (16958/16958), done.
# From http://github.com/jashkenas/coffee-script
 # * [new branch]      EventEmitter -> origin/EventEmitter
 # * [new branch]      annotated_param_lists -> origin/annotated_param_lists
 # * [new branch]      es5_bind   -> origin/es5_bind
 # * [new branch]      gh-pages   -> origin/gh-pages
 # * [new branch]      issue1667  -> origin/issue1667
 # * [new branch]      issue1721  -> origin/issue1721
 # * [new branch]      issue1771  -> origin/issue1771
 # * [new branch]      issue1772  -> origin/issue1772
 # * [new branch]      issue1910  -> origin/issue1910
 # * [new branch]      listed-functions -> origin/listed-functions
 # * [new branch]      master     -> origin/master
 # * [new branch]      restructuring -> origin/restructuring
# From http://github.com/jashkenas/coffee-script
 # * [new tag]         0.2.2      -> 0.2.2
 # * [new tag]         0.2.3      -> 0.2.3
 # * [new tag]         0.2.4      -> 0.2.4
 # * [new tag]         0.2.5      -> 0.2.5
 # * [new tag]         0.2.6      -> 0.2.6
 # * [new tag]         0.3.0      -> 0.3.0
 # * [new tag]         0.3.1      -> 0.3.1
 # * [new tag]         0.3.2      -> 0.3.2
 # * [new tag]         0.5.0      -> 0.5.0
 # * [new tag]         0.5.1      -> 0.5.1
 # * [new tag]         0.5.2      -> 0.5.2
 # * [new tag]         0.5.3      -> 0.5.3
 # * [new tag]         0.5.4      -> 0.5.4
 # * [new tag]         0.5.5      -> 0.5.5
 # * [new tag]         0.5.6      -> 0.5.6
 # * [new tag]         0.6.0      -> 0.6.0
 # * [new tag]         0.6.1      -> 0.6.1
 # * [new tag]         0.6.2      -> 0.6.2
 # * [new tag]         0.7.0      -> 0.7.0
 # * [new tag]         0.7.1      -> 0.7.1
 # * [new tag]         0.7.2      -> 0.7.2
 # * [new tag]         0.9.0      -> 0.9.0
 # * [new tag]         0.9.1      -> 0.9.1
 # * [new tag]         0.9.2      -> 0.9.2
 # * [new tag]         0.9.3      -> 0.9.3
 # * [new tag]         0.9.4      -> 0.9.4
 # * [new tag]         0.9.5      -> 0.9.5
 # * [new tag]         0.9.6      -> 0.9.6
 # * [new tag]         1.0.0      -> 1.0.0
 # * [new tag]         1.0.1      -> 1.0.1
 # * [new tag]         1.1.0      -> 1.1.0
 # * [new tag]         1.1.1      -> 1.1.1
 # * [new tag]         1.1.2      -> 1.1.2
 # * [new tag]         1.1.3      -> 1.1.3
 # * [new tag]         1.2.0      -> 1.2.0
# Submodule path 'support/coffee-script': checked out 'a53c104db16d3ac9d13cf9f16834edec250b9749'
# Cloning into support/expresso...
# remote: Counting objects: 1267, done.
# remote: Compressing objects: 100% (427/427), done.
# remote: Total 1267 (delta 711), reused 1188 (delta 638)
# Receiving objects: 100% (1267/1267), 169.19 KiB | 294 KiB/s, done.
# Resolving deltas: 100% (711/711), done.
# Submodule path 'support/expresso': checked out '7f10ab7fa655299b4e2f519065b0495e6ac34ef2'
# Submodule 'deps/jscoverage' (git://github.com/visionmedia/node-jscoverage.git) registered for path 'deps/jscoverage'
# Cloning into deps/jscoverage...
# remote: Counting objects: 628, done.
# remote: Compressing objects: 100% (381/381), done.
# remote: Total 628 (delta 205), reused 627 (delta 204)
# Receiving objects: 100% (628/628), 1.65 MiB | 405 KiB/s, done.
# Resolving deltas: 100% (205/205), done.
# Submodule path 'deps/jscoverage': checked out '0d4608a6b4275b020ba665389aa75897d5d4a584'
# Cloning into support/less...
# remote: Counting objects: 4584, done.
# remote: Compressing objects: 100% (1570/1570), done.
# remote: Total 4584 (delta 2863), reused 4241 (delta 2571)
# Receiving objects: 100% (4584/4584), 4.51 MiB | 628 KiB/s, done.
# Resolving deltas: 100% (2863/2863), done.
# Submodule path 'support/less': checked out 'a2807288008587b95c6c2f8ba5cac16f1bcab98f'
# Cloning into support/sass...
# remote: Counting objects: 742, done.
# remote: Compressing objects: 100% (311/311), done.
# remote: Total 742 (delta 329), reused 732 (delta 322)
# Receiving objects: 100% (742/742), 1.02 MiB | 475 KiB/s, done.
# Resolving deltas: 100% (329/329), done.
# Submodule path 'support/sass': checked out '4dfd4c699e7a8baf226215ab044854c4507f4420'
# Cloning into support/gnu-builds...
# remote: Counting objects: 9, done.
# remote: Compressing objects: 100% (7/7), done.
# remote: Total 9 (delta 0), reused 9 (delta 0)
# Unpacking objects: 100% (9/9), done.
# Submodule path 'support/gnu-builds': checked out '9ff133d95f9a41d749fe16220d81517dad9a2db3'
# Cloning into support/jsdav...
# remote: Counting objects: 2470, done.
# remote: Compressing objects: 100% (961/961), done.
# remote: Total 2470 (delta 1553), reused 2376 (delta 1480)
# Receiving objects: 100% (2470/2470), 541.89 KiB | 360 KiB/s, done.
# Resolving deltas: 100% (1553/1553), done.
# Submodule path 'support/jsdav': checked out 'f5cdc9ad8186007ba51da560c092e937b1031575'
# Cloning into support/lib-v8debug...
# remote: Counting objects: 440, done.
# remote: Compressing objects: 100% (195/195), done.
# remote: Total 440 (delta 276), reused 373 (delta 215)
# Receiving objects: 100% (440/440), 70.35 KiB, done.
# Resolving deltas: 100% (276/276), done.
# Submodule path 'support/lib-v8debug': checked out 'e1362e21c71acb9b32cf51b052997abc4a252bc2'
# Cloning into support/node-builds-v4...
# remote: Counting objects: 43, done.
# remote: Compressing objects: 100% (37/37), done.
# remote: Total 43 (delta 13), reused 12 (delta 3)
# Unpacking objects: 100% (43/43), done.
# Submodule path 'support/node-builds-v4': checked out '2e3ac47b7b8d506147feb08372cc36b988b6195a'
# Cloning into support/socket.io...
# remote: Counting objects: 6902, done.
# remote: Compressing objects: 100% (2869/2869), done.
# remote: Total 6902 (delta 4097), reused 6386 (delta 3703)
# Receiving objects: 100% (6902/6902), 4.81 MiB | 615 KiB/s, done.
# Resolving deltas: 100% (4097/4097), done.
# Submodule path 'support/socket.io': checked out '735d5239b325df2ba67d2b9bb4ec32442283bc06'
# Cloning into support/socket.io-client...
# remote: Counting objects: 4043, done.
# remote: Compressing objects: 100% (1556/1556), done.
# remote: Total 4043 (delta 2604), reused 3765 (delta 2390)
# Receiving objects: 100% (4043/4043), 2.22 MiB | 874 KiB/s, done.
# Resolving deltas: 100% (2604/2604), done.
# Submodule path 'support/socket.io-client': checked out '4375ef1344ecb8ad75a3848a00af6b391822f86b'
# Cloning into support/treehugger...
# remote: Counting objects: 568, done.
# remote: Compressing objects: 100% (370/370), done.
# remote: Total 568 (delta 290), reused 465 (delta 188)
# Receiving objects: 100% (568/568), 257.02 KiB | 198 KiB/s, done.
# Resolving deltas: 100% (290/290), done.
# Submodule path 'support/treehugger': checked out '436d0d6dd0ce43782e6be08ad12c356730626996'
# Cloning into support/uglify-js...
# remote: Counting objects: 1751, done.
# remote: Compressing objects: 100% (906/906), done.
# remote: Total 1751 (delta 795), reused 1662 (delta 729)
# Receiving objects: 100% (1751/1751), 324.36 KiB | 268 KiB/s, done.
# Resolving deltas: 100% (795/795), done.
# Submodule path 'support/uglify-js': checked out '941c845c4a01e4e47a158458fe846eb36d0828ad'
# --------------------------- Submodules installed ------------------------
# npm WARN jsftp@0.2.1 package.json: bugs['web'] should probably be bugs['url']
# 
# > libxml@0.0.3 preinstall /media/DATA/_dev/www/my/apps/_develop/cloud9/support/jsdav/node_modules/libxml
# > ./build.sh
# 
# 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                   : ok /home/u1/.node_libraries 
# Checking for node prefix                 : ok /usr 
# 'configure' finished successfully (0.640s)
# Waf: Entering directory `/media/DATA/_dev/www/my/apps/_develop/cloud9/support/jsdav/node_modules/libxml/support/o3/build'
# [1/3] cxx: hosts/node-o3/sh_node.cc -> build/default/hosts/node-o3/sh_node_1.o
# 01:28:56 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-DPIC', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-Idefault/include', '-I../include', '-Idefault/hosts', '-I../hosts', '-Idefault/modules', '-I../modules', '-Idefault/deps', '-I../deps', '-I/usr/include/nodejs', '../hosts/node-o3/sh_node.cc', '-c', '-o', 'default/hosts/node-o3/sh_node_1.o']
# npm WARN streamer@0.2.1 package.json: bugs['web'] should probably be bugs['url']
# [2/3] cxx: hosts/node-o3/sh_node_libs.cc -> build/default/hosts/node-o3/sh_node_libs_1.o
# 01:28:56 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-msse2', '-ffast-math', '-fPIC', '-DPIC', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-Idefault/include', '-I../include', '-Idefault/hosts', '-I../hosts', '-Idefault/modules', '-I../modules', '-Idefault/deps', '-I../deps', '-I/usr/include/nodejs', '../hosts/node-o3/sh_node_libs.cc', '-c', '-o', 'default/hosts/node-o3/sh_node_libs_1.o']
# ../include/cSys_posix.h: In member function ‘virtual void o3::cMessageLoop::post(const o3::Delegate&, o3::iUnk*)’:
# ../include/cSys_posix.h:414:43: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
# [3/3] cxx_link: build/default/hosts/node-o3/sh_node_1.o build/default/hosts/node-o3/sh_node_libs_1.o -> build/default/o3.node
# 01:29:07 runner system command -> ['/usr/bin/g++', 'default/hosts/node-o3/sh_node_1.o', 'default/hosts/node-o3/sh_node_libs_1.o', '-o', '/media/DATA/_dev/www/my/apps/_develop/cloud9/support/jsdav/node_modules/libxml/support/o3/build/default/o3.node', '-shared', '-L/usr/lib', '-Wl,-Bdynamic', '-lxml2']
# Waf: Leaving directory `/media/DATA/_dev/www/my/apps/_develop/cloud9/support/jsdav/node_modules/libxml/support/o3/build'
# 'build' finished successfully (11.723s)
# formidable@1.0.8 ./node_modules/formidable 
# asyncjs@0.0.5 ./node_modules/asyncjs 
# node-sftp@0.1.1 ./node_modules/node-sftp 
# jsftp@0.2.1 ./node_modules/jsftp 
# └── streamer@0.2.1
# libxml@0.0.3 ./node_modules/libxml 
# Linux 64 bit
# 
# node.js:116
                # throw e; // process.nextTick error, or 'error' event on first tick
                # ^
# TypeError: Object #<Object> has no method 'main'
        # at Object.<anonymous> (/media/DATA/_dev/www/my/apps/_develop/node_modules/cloud9/bin/cloud9.js:42:19)
        # at Module.<anonymous> (module.js:383:26)
        # at Module.<anonymous> (/media/DATA/_dev/www/my/apps/_develop/cloud9/support/requireJS-node.js:9:27)
        # at Object..js (module.js:389:10)
        # at Module.load (module.js:315:31)
        # at Function._load (module.js:276:12)
        # at require (module.js:327:19)
        # at Object.<anonymous> (/media/DATA/_dev/www/my/apps/_develop/cloud9/bin/cloud9.js:42:1)
        # at Module.<anonymous> (module.js:383:26)
        # at Object..js (module.js:389:10)

how can I fix it ?
thank you,
regards,
Martin

surajshetty

which version of node are you using i have tried cloud9 with node0.4.0 and it works fine.

masuch

node version 0.4.9

surajshetty

just install new version of node 0.4.0 i had faces some installation issues versions above 0.4.0
Try these steps:
priliminary softwares required
sudo apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev

install nodejs 0.4.0 for cloud 0.5.1
node installation steps
git clone git://github.com/joyent/node.git
cd node
git checkout v0.4.0
./configure --prefix=~/local
make
make install
make test
cd ..
node -v
get cloud9 installation for git
git clone git://github.com/ajaxorg/cloud9.git
cd cloud9
git checkout devel
git submodule update --init --recursive
bin/cloud9.sh
cd ..
install o3
git clone http://github.com/ajaxorg/o3
cd o3
./tools/node_modules_build
cp build/default/o3.node ../cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/
cd ..
run cloud9
node ~/cloud9/bin/cloud9.js -w ~/yourproject

masuch

still got error after make install:
...
...
...
../src/node_crypto.cc:75:29: error: ‘SSLv2_method’ was not declared in this scope
../src/node_crypto.cc:77:36: error: ‘SSLv2_server_method’ was not declared in this scope
../src/node_crypto.cc:79:36: error: ‘SSLv2_client_method’ was not declared in this scope
Waf: Leaving directory `/home/u1/Downloads/node.0.4.0/build'
Build failed: -> task failed (err #1):
{task: cxx node_crypto.cc -> node_crypto_4.o}

make: *** [program] Error 1

surajshetty

(might be happening due to 64 bit machine )

just try

./configure --without-ssl

masuch

Hi,

Thank you for your support. It finally works. I do not have my project yet but http://127.0.0.1:3000/ is running.
What I am confused that I intentionally missed part of install 0.4.0 node version what was actually primary problem.
but I followed the rest of installation steps and it works.

(I am absolutely not sure but maybe the reason is that I added some environment variables settings into ./bashrc like:
if [ -a /proc/cpuinfo ]; then
export CONCURRENCY_LEVEL=$(($(grep -c ^processor /proc/cpuinfo) + 1))
export MAKEOPTS="-j${CONCURRENCY_LEVEL}"
fi
export CHOST="x86_64-pc-linux-gnu"
export CFLAGS="-march=corei7-avx -Os -pipe"
export CXXFLAGS="${CFLAGS}"
export HOSTCC="gcc -march=corei7-avx -mtune=native"
export HOSTCXX="g++ -march=corei7-avx -mtune=native"

Kind Regards,
Martin

P.S. I have just installed node version 0.4.10 and it is still working.

masuch masuch closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.