Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

pty.js error #31

Closed
isc30 opened this issue Mar 17, 2015 · 3 comments
Closed

pty.js error #31

isc30 opened this issue Mar 17, 2015 · 3 comments

Comments

@isc30
Copy link

isc30 commented Mar 17, 2015

Hi, sorry for my bad english, i am from Spain.
My nodejs -v is 0.10.37 and npm -v 1.4.28

Installation fails here:

node-gyp rebuild

make: Entering directory '/home/pi/c9/c9sdk/node_modules/pty/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
/usr/bin/g++: 1: /usr/bin/g++: Syntax error: "(" unexpected
pty.target.mk:82: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 2
make: Leaving directory '/home/pi/c9/c9sdk/node_modules/pty/node_modules/pty.js/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.18.7-v7+
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/c9/c9sdk/node_modules/pty/node_modules/pty.js
gyp ERR! node -v v0.10.37
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

Can you help me please?

@javruben javruben changed the title tpy.js error pty.js error Mar 17, 2015
@nightwing
Copy link
Member

@isc30 when do you get this error?
does curl https://raw.githubusercontent.com/c9/install/master/install.sh | bash print any errors?

@isc30
Copy link
Author

isc30 commented Mar 17, 2015

Yes, it prints the error xdd
All ide is working fine except terminals (they need pty.js)

@isc30
Copy link
Author

isc30 commented Mar 19, 2015

I finally solved it doing this:

  • Purge all nodejs, npm and node-gyp installations
  • Install steps or RASPBERRY (my case):
wget http://node-arm.herokuapp.com/node_0.10.36_armhf.deb
sudo dpkg -i node_0.10.36_armhf.deb
sudo npm install -g node-gyp
git clone http://github.com/c9/core cloud9
cd cloud9
./scripts/install-sdk.sh

And thats it, cloud9 fully featured working correctly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants