Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on windows #16

Closed
jjasonclark opened this issue May 3, 2012 · 3 comments
Closed

Does not build on windows #16

jjasonclark opened this issue May 3, 2012 · 3 comments

Comments

@jjasonclark
Copy link

I've got a Windows NT system that I cannot build pty.js on. Is there instructions on how to do this?

My system is setup with the following:

MS Visual Studio 2010 SP1 Premium edition
Node v0.6.15 (used MSI installer)
Python 2.7.2 (used MSI installer)
MinGW (used MSI installer)
PYTHON=c:\python27\python.exe
NODE_PATH=C:\Progra~2\nodejs\node.exe

I've installed node-gyp via npm install -g node-gyp.

I've added pty.js to my package.json file and I can see it trying to build when I run npm install -d. I've tried the install command in a standard command prompt, a visual studio command prompt, and a mingw command prompt.

-- Command output --

C:\V2Source\trunk\product\applications\UcpPostDeploy\server>npm install -d
npm info it worked if it ends with ok
npm info using npm@1.1.16
npm info using node@v0.6.15
npm info preinstall ucp_validate@0.0.1
npm http GET https://registry.npmjs.org/pty.js
npm http 304 https://registry.npmjs.org/pty.js
npm info into C:\V2Source\trunk\product\applications\UcpPostDeploy\server pty.js@0.1.1
npm info installOne pty.js@0.1.1
npm info unbuild C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
npm info preinstall pty.js@0.1.1
npm info build C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
npm info linkStuff pty.js@0.1.1
npm info install pty.js@0.1.1

> pty.js@0.1.1 install C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
> node-gyp rebuild


C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js>node "C:\Program Files     (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\
\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
info it worked if it ends with ok
spawn C:\Python27\python.exe [ 'C:\\Users\\jclark\\.node-gyp\\0.6.15\\tools\\gyp_addon',
  'binding.gyp',
  '-IC:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules\\pty.js\\build\\config.gypi',
  '-f',
  'msvs',
  '-G',
      'msvs_version=2010' ]
spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe [ 'build/binding.sln',
  '/clp:Verbosity=minimal',
  '/nologo',
  '/p:Configuration=Release;Platform=Win32' ]
  pty.cc
C:\Users\jclark\.node-gyp\0.6.15\src\node_object_wrap.h(57): warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>' needs to have dll
-interface to be used by clients of class 'node::ObjectWrap' [C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\build\p
ty.vcxproj]
          with
          [
              T=v8::Object
          ]
..\src\pty.cc(20): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\V2Source\trunk\product\applications\UcpPost
Deploy\server\node_modules\pty.js\build\pty.vcxproj]
ERR! Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
    at Array.0 (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:176:25)
    at EventEmitter._tickCallback (node.js:192:40)
ERR! not ok
npm info pty.js@0.1.1 Failed to exec install script
npm info unbuild C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
npm info preuninstall pty.js@0.1.1
npm info uninstall pty.js@0.1.1
npm info postuninstall pty.js@0.1.1

npm ERR! pty.js@0.1.1 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the pty.js@0.1.1 install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pty.js
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-d"
npm ERR! cwd C:\V2Source\trunk\product\applications\UcpPostDeploy\server
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message pty.js@0.1.1 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\V2Source\trunk\product\applications\UcpPostDeploy\server\npm-debug.log
npm not ok

-- NPM-debug.log --

info it worked if it ends with ok
verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
verbose cli   'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli   'install',
verbose cli   '-d' ]
info using npm@1.1.16
info using node@v0.6.15
verbose C:\Program Files (x86)\nodejs\\node.exe node symlink
verbose config file C:\Users\jclark\.npmrc
verbose config file C:\Program Files (x86)\nodejs\etc\npmrc
verbose config file C:\Program Files (x86)\nodejs\node_modules\npm\npmrc
verbose caching C:\V2Source\trunk\product\applications\UcpPostDeploy\server\package.json
verbose loadDefaults ucp_validate@0.0.1
verbose readDependencies: using package.json deps
verbose where, deps [ 'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server',
verbose where, deps   [ 'express', 'ejs', 'underscore', 'pty.js' ] ]
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\package.json
info preinstall ucp_validate@0.0.1
verbose caching C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\ejs\package.json
verbose caching C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\express\package.json
verbose caching C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\underscore\package.json
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\package.json
verbose readDependencies: using package.json deps
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\ejs\package.json
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\express\package.json
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\underscore\package.json
verbose already installed in C:\V2Source\trunk\product\applications\UcpPostDeploy\server skipping ejs@>= 0.0.1
verbose already installed in C:\V2Source\trunk\product\applications\UcpPostDeploy\server skipping underscore@>= 1.3.0
verbose cache add [ 'pty.js@>= 0.1.1', null ]
silly cache add: name, spec, args [ undefined, 'pty.js@>= 0.1.1', [ 'pty.js@>= 0.1.1', null ] ]
verbose parsed url { pathname: 'pty.js@', path: 'pty.js@', href: 'pty.js@' }
silly cache add: name, spec, args [ 'pty.js', '>= 0.1.1', [ 'pty.js', '>= 0.1.1' ] ]
verbose parsed url { pathname: '=', path: '=', href: '=' }
verbose addNamed [ 'pty.js', '>= 0.1.1' ]
verbose addNamed [ null, '>=0.1.1' ]
silly name, range, hasData [ 'pty.js', '>=0.1.1', false ]
verbose already installed in C:\V2Source\trunk\product\applications\UcpPostDeploy\server skipping express@2.5.8
verbose raw, before any munging pty.js
verbose url resolving [ 'https://registry.npmjs.org/', './pty.js' ]
verbose url resolved https://registry.npmjs.org/pty.js
verbose etag "C8UZ4QS2T14IVWKZN8LJ583A5"
http GET https://registry.npmjs.org/pty.js
http 304 https://registry.npmjs.org/pty.js
silly get cb [ 304,
silly get cb   { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
silly get cb     etag: '"C8UZ4QS2T14IVWKZN8LJ583A5"',
silly get cb     date: 'Thu, 03 May 2012 22:29:46 GMT',
silly get cb     'content-length': '0' } ]
verbose etag pty.js from cache
silly name, range, hasData 2 [ 'pty.js', '>=0.1.1', true ]
silly versions [ 'pty.js',
silly versions   [ '0.0.1',
silly versions     '0.0.2',
silly versions     '0.0.3',
silly versions     '0.0.4',
silly versions     '0.0.5',
silly versions     '0.0.6',
silly versions     '0.0.6-1',
silly versions     '0.0.7',
silly versions     '0.0.8',
silly versions     '0.0.9',
silly versions     '0.1.0',
silly versions     '0.1.1' ] ]
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8r-v83.6.6.24-win32-ia32-6.1.7601',
verbose bin dist   { shasum: '8c91b44d6b3767c71d61901b44633c8cac909beb',
verbose bin dist     tarball: 'http://registry.npmjs.org/pty.js/-/pty.js-0.1.1.tgz' } ]
verbose has bindings.gyp [ undefined,
verbose has bindings.gyp   { file: 'C:\\Users\\jclark\\AppData\\Roaming\\npm-cache\\pty.js\\0.1.1\\package\\package.json',
verbose has bindings.gyp     gypfile: true,
verbose has bindings.gyp     contributors: false,
verbose has bindings.gyp     serverjs: false,
verbose has bindings.gyp     wscript: true } ]
verbose has wscript [ undefined,
verbose has wscript   { file: 'C:\\Users\\jclark\\AppData\\Roaming\\npm-cache\\pty.js\\0.1.1\\package\\package.json',
verbose has wscript     gypfile: true,
verbose has wscript     contributors: false,
verbose has wscript     serverjs: false,
verbose has wscript     wscript: true } ]
verbose caching C:\Users\jclark\AppData\Roaming\npm-cache\pty.js\0.1.1\package\package.json
verbose loadDefaults pty.js@0.1.1
silly resolved [ { name: 'pty.js',
silly resolved     description: 'Pseudo terminals for node.',
silly resolved     author: { name: 'Christopher Jeffrey' },
silly resolved     version: '0.1.1',
silly resolved     main: './index.js',
silly resolved     repository: { type: 'git', url: 'git://github.com/chjj/pty.js.git' },
silly resolved     homepage: 'https://github.com/chjj/pty.js',
silly resolved     bugs: { url: 'https://github.com/chjj/pty.js/issues' },
silly resolved     keywords: [ 'pty', 'tty', 'terminal' ],
silly resolved     scripts: { test: 'node test', install: 'node-gyp rebuild' },
silly resolved     tags: [ 'pty', 'tty', 'terminal' ],
silly resolved     _id: 'pty.js@0.1.1',
silly resolved     dependencies: {},
silly resolved     devDependencies: {},
silly resolved     optionalDependencies: {},
silly resolved     engines: { node: '*' },
silly resolved     _engineSupported: true,
silly resolved     _npmVersion: '1.1.16',
silly resolved     _nodeVersion: 'v0.6.15',
silly resolved     _defaultsLoaded: true,
silly resolved     _from: 'pty.js@>= 0.1.1' } ]
info into C:\V2Source\trunk\product\applications\UcpPostDeploy\server pty.js@0.1.1
info installOne pty.js@0.1.1
verbose from cache C:\Users\jclark\AppData\Roaming\npm-cache\pty.js\0.1.1\package\package.json
info unbuild C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
verbose unpack C:\Users\jclark\AppData\Roaming\npm-cache\pty.js\0.1.1\package.tgz
silly gunzTarPerm modes [ '755', '644' ]
silly extracting entry package.json
silly modified mode [ 'package.json', 438, 420 ]
silly extracting entry .npmignore
silly modified mode [ '.npmignore', 438, 420 ]
silly extracting entry README.md
silly modified mode [ 'README.md', 438, 420 ]
silly extracting entry LICENSE
silly modified mode [ 'LICENSE', 438, 420 ]
silly extracting entry index.js
silly modified mode [ 'index.js', 438, 420 ]
silly extracting entry binding.gyp
silly modified mode [ 'binding.gyp', 438, 420 ]
silly extracting entry lib/pty.js
silly modified mode [ 'lib/pty.js', 438, 420 ]
silly extracting entry Makefile
silly modified mode [ 'Makefile', 438, 420 ]
silly extracting entry src/pty.cc
silly modified mode [ 'src/pty.cc', 438, 420 ]
silly extracting entry wscript
silly modified mode [ 'wscript', 438, 420 ]
verbose has bindings.gyp [ undefined,
verbose has bindings.gyp   { file: 'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules\\pty.js\\package.json',
verbose has bindings.gyp     gypfile: true,
verbose has bindings.gyp     contributors: false,
verbose has bindings.gyp     serverjs: false,
verbose has bindings.gyp     wscript: true } ]
verbose has wscript [ undefined,
verbose has wscript   { file: 'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules\\pty.js\\package.json',
verbose has wscript     gypfile: true,
verbose has wscript     contributors: false,
verbose has wscript     serverjs: false,
verbose has wscript     wscript: true } ]
verbose caching C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\package.json
verbose loadDefaults pty.js@0.1.1
info preinstall pty.js@0.1.1
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\package.json
verbose readDependencies: using package.json deps
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\package.json
verbose readDependencies: using package.json deps
silly resolved []
verbose about to build C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
info build C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\package.json
verbose linkStuff [ false,
verbose linkStuff   false,
verbose linkStuff   false,
verbose linkStuff   'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules' ]
info linkStuff pty.js@0.1.1
verbose linkBins pty.js@0.1.1
verbose linkMans pty.js@0.1.1
verbose rebuildBundles pty.js@0.1.1
info install pty.js@0.1.1
verbose unsafe-perm in lifecycle true
silly exec cmd "/c" "node-gyp rebuild"
silly spawning [ 'cmd',
silly spawning   [ '/c', 'node-gyp rebuild' ],
silly spawning   'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules\\pty.js' ]
info pty.js@0.1.1 Failed to exec install script
info unbuild C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js
verbose from cache C:\V2Source\trunk\product\applications\UcpPostDeploy\server\node_modules\pty.js\package.json
info preuninstall pty.js@0.1.1
info uninstall pty.js@0.1.1
verbose unbuild pty.js@0.1.1 [ true,
verbose unbuild pty.js@0.1.1   'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules',
verbose unbuild pty.js@0.1.1   'C:\\V2Source\\trunk\\product\\applications\\UcpPostDeploy\\server\\node_modules' ]
info postuninstall pty.js@0.1.1
ERR! pty.js@0.1.1 install: `node-gyp rebuild`
ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
ERR! 
ERR! Failed at the pty.js@0.1.1 install script.
ERR! This is most likely a problem with the pty.js package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR!     node-gyp rebuild
ERR! You can get their info via:
ERR!     npm owner ls pty.js
ERR! There is likely additional logging output above.
ERR! 
ERR! System Windows_NT 6.1.7601
ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-d"
ERR! cwd C:\V2Source\trunk\product\applications\UcpPostDeploy\server
ERR! node -v v0.6.15
ERR! npm -v 1.1.16
ERR! code ELIFECYCLE
ERR! message pty.js@0.1.1 install: `node-gyp rebuild`
ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
ERR! errno {}
verbose exit [ 1, true ]
@chjj
Copy link
Owner

chjj commented May 4, 2012

Unfortunately, pty.js will never work with windows. Windows doesn't have a tty subsystem.

@chjj chjj closed this as completed May 4, 2012
@jjasonclark
Copy link
Author

Is this the case in a minGW or Cygwin environment?

@ForbesLindesay
Copy link

There is now windows support via #30 (although I'm struggling to get it to work)

ddm pushed a commit to ddm/pty.js that referenced this issue Nov 8, 2017
ddm pushed a commit to ddm/pty.js that referenced this issue Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants