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

Can't build in Win7 With Visual Studio 2012 #6

Closed
Warpten opened this issue Nov 19, 2012 · 6 comments
Closed

Can't build in Win7 With Visual Studio 2012 #6

Warpten opened this issue Nov 19, 2012 · 6 comments

Comments

@Warpten
Copy link

Warpten commented Nov 19, 2012

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   'bignum' ]
info using npm@1.1.16
info using node@v0.6.15
verbose config file C:\Users\User\.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:\TrinityCoreData\wowProxy\node_modules\sprintf\package.json
verbose caching c:\TrinityCoreData\wowProxy\node_modules\express\package.json
verbose cache add [ 'bignum', null ]
silly cache add: name, spec, args [ undefined, 'bignum', [ 'bignum', null ] ]
verbose parsed url { pathname: 'bignum', path: 'bignum', href: 'bignum' }
verbose addNamed [ 'bignum', '' ]
verbose addNamed [ null, '' ]
silly name, range, hasData [ 'bignum', '', false ]
verbose raw, before any munging bignum
verbose url resolving [ 'https://registry.npmjs.org/', './bignum' ]
verbose url resolved https://registry.npmjs.org/bignum
http GET https://registry.npmjs.org/bignum
http 200 https://registry.npmjs.org/bignum
silly get cb [ 200,
silly get cb   { vary: 'Accept',
silly get cb     server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
silly get cb     etag: '"C4IP6CJA56UC317BJO1RQSZ01"',
silly get cb     date: 'Mon, 19 Nov 2012 17:34:50 GMT',
silly get cb     'content-type': 'application/json',
silly get cb     'content-length': '17438' } ]
silly name, range, hasData 2 [ 'bignum', '', true ]
silly versions [ 'bignum', [ '0.4.0', '0.4.1', '0.5.0', '0.5.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: '19f5bcc77249366cfdad1d023ac57673b0a2c966',
verbose bin dist     tarball: 'http://registry.npmjs.org/bignum/-/bignum-0.5.1.tgz' } ]
verbose addRemoteTarball [ 'https://registry.npmjs.org/bignum/-/bignum-0.5.1.tgz',
verbose addRemoteTarball   '19f5bcc77249366cfdad1d023ac57673b0a2c966' ]
verbose fetch to C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\tmp.tgz
http GET https://registry.npmjs.org/bignum/-/bignum-0.5.1.tgz
http 200 https://registry.npmjs.org/bignum/-/bignum-0.5.1.tgz
silly updated sha bytes 14092
info shasum 19f5bcc77249366cfdad1d023ac57673b0a2c966
info shasum C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\tmp.tgz
verbose unpack C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\tmp.tgz
silly gunzTarPerm modes [ '755', '644' ]
silly extracting entry package.json
silly extracting entry .npmignore
silly extracting entry index.js
silly extracting entry test/seed.js
silly extracting entry test/buf.js
silly extracting entry test/big.js
silly extracting entry binding.gyp
silly extracting entry bignum.cc
silly extracting entry examples/perfect.js
silly extracting entry examples/simple.js
silly extracting entry examples/gen.js
silly extracting entry README.markdown
verbose has bindings.gyp [ undefined,
verbose has bindings.gyp   { file: 'C:\\Users\\User\\AppData\\Local\\Temp\\npm-1353346520295\\1353346520295-0.6008252571336925\\package\\package.json',
verbose has bindings.gyp     gypfile: true,
verbose has bindings.gyp     wscript: false,
verbose has bindings.gyp     contributors: false,
verbose has bindings.gyp     serverjs: false } ]
verbose caching C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\package\package.json
verbose loadDefaults bignum@0.5.1
verbose from cache C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\package\package.json
verbose tar.pack [ 'C:\\Users\\User\\AppData\\Roaming\\npm-cache\\bignum\\0.5.1\\package.tgz',
verbose tar.pack   'C:\\Users\\User\\AppData\\Local\\Temp\\npm-1353346520295\\1353346520295-0.6008252571336925\\package' ]
verbose tarball C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package.tgz
verbose folder C:\Users\User\AppData\Local\Temp\npm-1353346520295\1353346520295-0.6008252571336925\package
verbose unpack C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.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 index.js
silly modified mode [ 'index.js', 438, 420 ]
silly extracting entry bignum.cc
silly modified mode [ 'bignum.cc', 438, 420 ]
silly extracting entry binding.gyp
silly modified mode [ 'binding.gyp', 438, 420 ]
silly extracting entry examples/gen.js
silly modified mode [ 'examples/gen.js', 438, 420 ]
silly extracting entry examples/perfect.js
silly modified mode [ 'examples/perfect.js', 438, 420 ]
silly extracting entry examples/simple.js
silly modified mode [ 'examples/simple.js', 438, 420 ]
silly extracting entry README.markdown
silly modified mode [ 'README.markdown', 438, 420 ]
silly extracting entry test/big.js
silly modified mode [ 'test/big.js', 438, 420 ]
silly extracting entry test/buf.js
silly modified mode [ 'test/buf.js', 438, 420 ]
silly extracting entry test/seed.js
silly modified mode [ 'test/seed.js', 438, 420 ]
verbose has bindings.gyp [ undefined,
verbose has bindings.gyp   { file: 'C:\\Users\\User\\AppData\\Roaming\\npm-cache\\bignum\\0.5.1\\package\\package.json',
verbose has bindings.gyp     gypfile: true,
verbose has bindings.gyp     wscript: false,
verbose has bindings.gyp     contributors: false,
verbose has bindings.gyp     serverjs: false } ]
verbose caching C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package\package.json
verbose loadDefaults bignum@0.5.1
silly updated sha bytes 14023
info shasum 612d0cff65f27c3809294e79ffc0f901b04de648
info shasum C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package.tgz
verbose from cache C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package\package.json
verbose chmod C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package.tgz 644
silly skipping chown for windows C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package.tgz
silly resolved [ { name: 'bignum',
silly resolved     version: '0.5.1',
silly resolved     description: 'Arbitrary-precision integer arithmetic using OpenSSL',
silly resolved     main: './index.js',
silly resolved     repository: 
silly resolved      { type: 'git',
silly resolved        url: 'git://github.com/justmoon/node-bignum.git' },
silly resolved     keywords: 
silly resolved      [ 'gmp',
silly resolved        'libgmp',
silly resolved        'big',
silly resolved        'bignum',
silly resolved        'bigint',
silly resolved        'integer',
silly resolved        'arithmetic',
silly resolved        'precision' ],
silly resolved     author: 
silly resolved      { name: 'Stefan Thomas',
silly resolved        email: 'justmoon@members.fsf.org',
silly resolved        url: 'http://www.justmoon.net' },
silly resolved     devDependencies: { expresso: '>=0.6.0', binary: '>=0.1.7', put: '>=0.0.5' },
silly resolved     license: 'MIT/X11',
silly resolved     engine: { node: '>=0.8.0' },
silly resolved     scripts: { install: 'node-gyp configure build', test: 'expresso' },
silly resolved     contributors: [ { name: 'James Halliday', email: 'mail@substack.net' } ],
silly resolved     _id: 'bignum@0.5.1',
silly resolved     dependencies: {},
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     dist: { shasum: '612d0cff65f27c3809294e79ffc0f901b04de648' },
silly resolved     _from: 'bignum' } ]
info into c:\TrinityCoreData\wowProxy bignum@0.5.1
info installOne bignum@0.5.1
verbose from cache C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.1\package\package.json
info unbuild c:\TrinityCoreData\wowProxy\node_modules\bignum
verbose unpack C:\Users\User\AppData\Roaming\npm-cache\bignum\0.5.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 index.js
silly modified mode [ 'index.js', 438, 420 ]
silly extracting entry bignum.cc
silly modified mode [ 'bignum.cc', 438, 420 ]
silly extracting entry binding.gyp
silly modified mode [ 'binding.gyp', 438, 420 ]
silly extracting entry examples/gen.js
silly modified mode [ 'examples/gen.js', 438, 420 ]
silly extracting entry examples/perfect.js
silly modified mode [ 'examples/perfect.js', 438, 420 ]
silly extracting entry examples/simple.js
silly modified mode [ 'examples/simple.js', 438, 420 ]
silly extracting entry README.markdown
silly modified mode [ 'README.markdown', 438, 420 ]
silly extracting entry test/big.js
silly modified mode [ 'test/big.js', 438, 420 ]
silly extracting entry test/buf.js
silly modified mode [ 'test/buf.js', 438, 420 ]
silly extracting entry test/seed.js
silly modified mode [ 'test/seed.js', 438, 420 ]
verbose has bindings.gyp [ undefined,
verbose has bindings.gyp   { file: 'c:\\TrinityCoreData\\wowProxy\\node_modules\\bignum\\package.json',
verbose has bindings.gyp     gypfile: true,
verbose has bindings.gyp     wscript: false,
verbose has bindings.gyp     contributors: false,
verbose has bindings.gyp     serverjs: false } ]
verbose caching c:\TrinityCoreData\wowProxy\node_modules\bignum\package.json
verbose loadDefaults bignum@0.5.1
info preinstall bignum@0.5.1
verbose from cache c:\TrinityCoreData\wowProxy\node_modules\bignum\package.json
verbose readDependencies: using package.json deps
verbose from cache c:\TrinityCoreData\wowProxy\node_modules\bignum\package.json
verbose readDependencies: using package.json deps
silly resolved []
verbose about to build c:\TrinityCoreData\wowProxy\node_modules\bignum
info build c:\TrinityCoreData\wowProxy\node_modules\bignum
verbose from cache c:\TrinityCoreData\wowProxy\node_modules\bignum\package.json
verbose linkStuff [ false,
verbose linkStuff   false,
verbose linkStuff   false,
verbose linkStuff   'c:\\TrinityCoreData\\wowProxy\\node_modules' ]
info linkStuff bignum@0.5.1
verbose linkBins bignum@0.5.1
verbose linkMans bignum@0.5.1
verbose rebuildBundles bignum@0.5.1
info install bignum@0.5.1
verbose unsafe-perm in lifecycle true
silly exec cmd "/c" "node-gyp configure build"
silly spawning [ 'cmd',
silly spawning   [ '/c', 'node-gyp configure build' ],
silly spawning   'c:\\TrinityCoreData\\wowProxy\\node_modules\\bignum' ]
info bignum@0.5.1 Failed to exec install script
info unbuild c:\TrinityCoreData\wowProxy\node_modules\bignum
verbose from cache c:\TrinityCoreData\wowProxy\node_modules\bignum\package.json
info preuninstall bignum@0.5.1
info uninstall bignum@0.5.1
verbose unbuild bignum@0.5.1 [ true,
verbose unbuild bignum@0.5.1   'c:\\TrinityCoreData\\wowProxy\\node_modules',
verbose unbuild bignum@0.5.1   'c:\\TrinityCoreData\\wowProxy\\node_modules' ]
info postuninstall bignum@0.5.1
ERR! bignum@0.5.1 install: `node-gyp configure build`
ERR! `cmd "/c" "node-gyp configure build"` failed with 1
ERR! 
ERR! Failed at the bignum@0.5.1 install script.
ERR! This is most likely a problem with the bignum package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR!     node-gyp configure build
ERR! You can get their info via:
ERR!     npm owner ls bignum
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" "bignum"
ERR! cwd c:\TrinityCoreData\wowProxy
ERR! node -v v0.6.15
ERR! npm -v 1.1.16
ERR! code ELIFECYCLE
ERR! message bignum@0.5.1 install: `node-gyp configure build`
ERR! message `cmd "/c" "node-gyp configure build"` failed with 1
ERR! errno {}
verbose exit [ 1, true ]

Not sure to understand all of this. I have Python 2.7.3 and openssl.

@aresn
Copy link

aresn commented Apr 21, 2013

were you finally able to build bignum on windows ? I'm having a similar problem.

@alberthendriks
Copy link

I (finally) managed to build on Windows 7. One of the errors I got was:

bignum.obj : error LNK2001: unresolved external symbol BN_mod_inverse [C:\Users\user\Downloads\bitcoinjs\bitcoinjs\bitcoinjs-server\node_modules\node-bignum\build\bignum.vcxproj]

C:\Users\user\Downloads\bitcoinjs\bitcoinjs\bitcoinjs-server\node_modules\nodebignum\build\Release\bignum.node : fatal error LNK1120: 33 unresolved externals [C:\Users\user\Downloads\bitcoinjs\bitcoinjs\bitcoinjs-server\node_modules\node-bignum\build\bignum.vcxproj]

It's because some openssl lib file is not included. Workaround:
In binding.gyp, on the same level of (and after) include_dirs, add:
"libraries" : ["C:/OpenSSL-Win64/lib/*.lib"]

after that node-gyp configure and node-gyp build should work.

@aresn
Copy link

aresn commented Apr 23, 2013

Thank you , I also got this working :)

@mscdex
Copy link

mscdex commented May 13, 2013

This should work out of the box on Windows once nodejs/node-v0.x-archive#4051 is resolved.

@srw
Copy link

srw commented Nov 3, 2014

Could you post the instructions? I receive hundreds of errors in Visual Studio 2012.

@alberthendriks
Copy link

This is a long time ago for me. I never completed anything for this project.

Albert

On Mon, Nov 3, 2014 at 12:28 PM, srw notifications@github.com wrote:

Could you post the instructions? I receive hundreds of errors in Visual
Studio 2012.


Reply to this email directly or view it on GitHub
#6 (comment).

@rvagg rvagg closed this as completed Feb 18, 2015
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

6 participants