Git Product home page Git Product logo

Comments (13)

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

Can you do:
cd /home/vagrant
npm install pty.js

can you see if it installs pty.js in /home/vagrant/node_modules/pty.js?

from wetty.

howardroark avatar howardroark commented on May 29, 2024

Yup. That seemed to work out.

vagrant@vagrant-ubuntu-trusty-64 ~ β€” u:1 j:0 (17:48:45 06.14)
#158 ❯❯❯ npm install pty.js
\
> [email protected] install /home/vagrant/node_modules/pty.js
> node-gyp rebuild

make: Entering directory `/home/vagrant/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc: In function β€˜void PtyFork(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/unix/pty.cc:185:34: warning: ignoring return value of β€˜int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
       if (strlen(cwd)) chdir(cwd);
                                  ^
  SOLINK_MODULE(target) Release/obj.target/pty.node
  SOLINK_MODULE(target) Release/obj.target/pty.node: Finished
  COPY Release/pty.node
make: Leaving directory `/home/vagrant/node_modules/pty.js/build'
[email protected] node_modules/pty.js
β”œβ”€β”€ [email protected]
└── [email protected]
vagrant@vagrant-ubuntu-trusty-64 ~ β€” u:1 j:0 (17:49:04 06.14)
#159 ❯❯❯ tree node_modules/
node_modules/
└── pty.js
    β”œβ”€β”€ binding.gyp
    β”œβ”€β”€ build
    β”‚Β Β  β”œβ”€β”€ binding.Makefile
    β”‚Β Β  β”œβ”€β”€ config.gypi
    β”‚Β Β  β”œβ”€β”€ Makefile
    β”‚Β Β  β”œβ”€β”€ pty.target.mk
    β”‚Β Β  └── Release
    β”‚Β Β      β”œβ”€β”€ linker.lock
    β”‚Β Β      β”œβ”€β”€ obj.target
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ pty
    β”‚Β Β      β”‚Β Β  β”‚Β Β  └── src
    β”‚Β Β      β”‚Β Β  β”‚Β Β      └── unix
    β”‚Β Β      β”‚Β Β  β”‚Β Β          └── pty.o
    β”‚Β Β      β”‚Β Β  └── pty.node
    β”‚Β Β      └── pty.node
    β”œβ”€β”€ deps
    β”‚Β Β  └── winpty
    β”‚Β Β      β”œβ”€β”€ agent
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ AgentAssert.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ AgentAssert.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Agent.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Agent.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ ConsoleInput.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ ConsoleInput.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Coord.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Coord.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ DsrSender.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ EventLoop.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ EventLoop.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ main.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Makefile
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ NamedPipe.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ NamedPipe.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ SmallRect.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ SmallRect.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Terminal.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Terminal.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Console.cc
    β”‚Β Β      β”‚Β Β  └── Win32Console.h
    β”‚Β Β      β”œβ”€β”€ config.mk
    β”‚Β Β      β”œβ”€β”€ configure
    β”‚Β Β      β”œβ”€β”€ include
    β”‚Β Β      β”‚Β Β  └── winpty.h
    β”‚Β Β      β”œβ”€β”€ libwinpty
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Makefile
    β”‚Β Β      β”‚Β Β  └── winpty.cc
    β”‚Β Β      β”œβ”€β”€ LICENSE
    β”‚Β Β      β”œβ”€β”€ Makefile
    β”‚Β Β      β”œβ”€β”€ misc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ build_win32.sh
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ DebugClient.py
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ DebugServer.py
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ FormatChar.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ SelectAllTest.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ ShowArgv.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ ShowConsoleInput.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Spew.py
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ UnixEcho.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ VkEscapeTest.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Echo1.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Echo2.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Test1.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Test2.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Win32Test3.cc
    β”‚Β Β      β”‚Β Β  └── Win32Write1.cc
    β”‚Β Β      β”œβ”€β”€ Notes.txt
    β”‚Β Β      β”œβ”€β”€ README.rst
    β”‚Β Β      β”œβ”€β”€ shared
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ AgentMsg.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Buffer.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ c99_snprintf.h
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ DebugClient.cc
    β”‚Β Β      β”‚Β Β  └── DebugClient.h
    β”‚Β Β      β”œβ”€β”€ unix-adapter
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ main.cc
    β”‚Β Β      β”‚Β Β  β”œβ”€β”€ Makefile
    β”‚Β Β      β”‚Β Β  └── Shared.cc
    β”‚Β Β      └── winpty.gyp
    β”œβ”€β”€ index.js
    β”œβ”€β”€ lib
    β”‚Β Β  β”œβ”€β”€ pty.js
    β”‚Β Β  └── pty_win.js
    β”œβ”€β”€ LICENSE
    β”œβ”€β”€ Makefile
    β”œβ”€β”€ node_modules
    β”‚Β Β  β”œβ”€β”€ extend
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ index.js
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ package.json
    β”‚Β Β  β”‚Β Β  └── README.md
    β”‚Β Β  └── nan
    β”‚Β Β      β”œβ”€β”€ appveyor.yml
    β”‚Β Β      β”œβ”€β”€ CHANGELOG.md
    β”‚Β Β      β”œβ”€β”€ include_dirs.js
    β”‚Β Β      β”œβ”€β”€ LICENSE.md
    β”‚Β Β      β”œβ”€β”€ nan.h
    β”‚Β Β      β”œβ”€β”€ nan_implementation_12_inl.h
    β”‚Β Β      β”œβ”€β”€ nan_implementation_pre_12_inl.h
    β”‚Β Β      β”œβ”€β”€ nan_new.h
    β”‚Β Β      β”œβ”€β”€ nan_string_bytes.h
    β”‚Β Β      └── package.json
    β”œβ”€β”€ package.json
    β”œβ”€β”€ README.md
    β”œβ”€β”€ src
    β”‚Β Β  β”œβ”€β”€ unix
    β”‚Β Β  β”‚Β Β  └── pty.cc
    β”‚Β Β  └── win
    β”‚Β Β      └── pty.cc
    └── wscript

from wetty.

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

weird, can you check if any of the suggestions here nodejs/node-gyp#363 fixes this?

from wetty.

howardroark avatar howardroark commented on May 29, 2024

Tried just about everything mentioned...

  • Tried building node on a fresh system
  • Tried downgrading Python 2.6 and then building node
  • Tried installing NVM/node on a fresh system

Same things happens each time. You can see the system I'm using by downloading this gist.

https://gist.github.com/howardroark/25550e799297fafb3b94

It just downloads the official vagrant image from ubuntu and installs nvm on it. The error is produceable there. No pressure at all if you don't have the time.

from wetty.

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

For some reason things fail with node 0.12 I was able to get it working with 0.10.31 here
http://nodejs.org/dist/v0.10.31/node-v0.10.31-linux-x64.tar.gz
Can you check with this version? (Also do a 'npm install -g node-gyp' )

from wetty.

howardroark avatar howardroark commented on May 29, 2024

I was able to get it installed that way :) Though I had to install each dependency on it's own after the install before I could run app.js.

from wetty.

howardroark avatar howardroark commented on May 29, 2024

So yeah... only works with node 0.10.x. I tried io.js 1 & 2 as well. Very odd. You know though... I wonder if Ubuntu precise is the better release to work with anyway. Considering it is likely to be getting more bug fixes due to it's wider adoption.

from wetty.

howardroark avatar howardroark commented on May 29, 2024

Happens on Ubuntu 12.04 as well. Must be something to do with Node+Python+Ubuntu

from wetty.

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

2c65241 will fix this issue but the side effect is it will cause #4 (because of chjj/pty.js#58) but I think it's better to live with a few zombie processes than fail on node 0.12

from wetty.

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

@howardroark latest code should work fine regardless of the ubuntu/node version, can you verify and close this issue? (you will need to git clone this repo and not do 'npm install wetty' from the NPM repo)

from wetty.

howardroark avatar howardroark commented on May 29, 2024

Yup, that worked! You can push the update to NPM πŸ‘

Also... Is there any way to avoid needing to verify the host and enter a password?

from wetty.

krishnasrinivas avatar krishnasrinivas commented on May 29, 2024

you can setup passwordless ssh using pub/pvt keys. (as wetty uses ssh to connect)

from wetty.

howardroark avatar howardroark commented on May 29, 2024

@krishnasrinivas thanks... Is this data supplied at the point where app.js is initiated?

from wetty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.