alexyoung / ircd.js

A Node ircd (IRC daemon)
GNU General Public License v3.0
528 stars 90 forks source link

npm install ircdjs fails #62

Closed valentinas closed 11 years ago

valentinas commented 11 years ago

I'm trying to install ircdjs using npm, but it fails with error message

..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory C:\node_modules\ircdjs\node_modules\bcrypt\build\bcrypt_lib.vcxproj]

I'm assuming that that's a package issue? The output from npm is bellow.

npm http GET https://registry.npmjs.org/ircdjs
npm http 304 https://registry.npmjs.org/ircdjs
npm http GET https://registry.npmjs.org/winston/0.6.1
npm http GET https://registry.npmjs.org/carrier
npm http GET https://registry.npmjs.org/bcrypt
npm http 304 https://registry.npmjs.org/winston/0.6.1
npm http 304 https://registry.npmjs.org/bcrypt
npm http 304 https://registry.npmjs.org/carrier
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/request

> bcrypt@0.7.5 install C:\node_modules\ircdjs\node_modules\bcrypt
> node-gyp rebuild

C:\node_modules\ircdjs\node_modules\bcrypt>node "c:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  blowfish.cc
  bcrypt.cc
  bcrypt_node.cc
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\node_modules\ircdjs\node_modules\
bcrypt\build\bcrypt_lib.vcxproj]
..\src\bcrypt_node.cc(38): fatal error C1083: Cannot open include file: 'openssl/rand.h': No such file or directory [C:\node_modules\ircdjs\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:786:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node_modules\ircdjs\node_modules\bcrypt
gyp ERR! node -v v0.10.3
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! bcrypt@0.7.5 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the bcrypt@0.7.5 install script.
npm ERR! This is most likely a problem with the bcrypt 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 bcrypt
npm ERR! There is likely additional logging output above.
sespindola commented 11 years ago

That's a node.bcrypt compiling error. You need to install OpenSSL for Windows. Make sure you install the full version for your architecture.

The URL is: http://slproweb.com/products/Win32OpenSSL.html

Alex, you can close this one.

valentinas commented 11 years ago

I'll try that, thanks!