Installation under Windows
It is really hard to use zone117x/node-stratum-pool under WIndows. I am giving up. Here are some obstacles i could overcome:
- install node.js v0.10.30
- "npn" brings Error: ENOENT, stat 'C:\Users\Administrator\AppData\Roaming\npm'
- Bugfix: create empty folder User\AppData\Roaming\npm
- install git
- on Windows Server: install .NET 3.5 Feature
- install .NET 2.0 SDK
- we need C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages\vcbuild.exe in PATH
- install Visual C++ 2010
- several updates, read http://www.mathworks.com/matlabcentral/answers/96611-how-do-i-install-microsoft-visual-c-2010-and-microsoft-windows-sdk-7-1
- we need C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h in PATH
- we need C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86\kernel32.lib in PATH
- find ammintrin.h ( http://www.mathworks.in/matlabcentral/answers/90383-fix-problem-when-mex-cpp-file )
- place it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
- copy some files of https://www.openssl.org/source/openssl-1.0.1i.tar.gz
- we need bn.h and other files from "crypto" folder in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\openssl
- git clone https://github.com/zone117x/node-stratum-pool node_modules/stratum-pool
next problem: npm update
LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [C:\Users\Ser
vice\Downloads\test\node_modules\stratum-pool\node_modules\bignum\build\bignum.
vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\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:810:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\Service\Downloads\test\node_modules\stratum-pool\node_modu
les\bignum
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
-> giving up. maybe somebody can fix that?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
you may try to use npm update --msvs_version=2012, with it you will see a lot of code errors c++ files there not compatible with visual studio compiler possible it may be compiled with minGW ..but as I see node-gyp can't do it on windows