imor / uci

A thin wrapper on a uci chess engine
MIT License
33 stars 18 forks source link

Not able to install uci , error VCBUILD : error : project file #16

Closed shaktisd closed 10 years ago

shaktisd commented 10 years ago

Not able to install uci, getting the following error. Why can't we have the binaries directly ?

C:\shakti\nodejs\eclipse\Enide-Studio-05-kepler-win64\ws\uci>npm install uci npm http GET https://registry.npmjs.org/uci npm http 200 https://registry.npmjs.org/uci npm http GET https://registry.npmjs.org/uci/-/uci-0.2.16.tgz npm http 200 https://registry.npmjs.org/uci/-/uci-0.2.16.tgz npm http GET https://registry.npmjs.org/chess.js npm http GET https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/polyglot-chess npm http GET https://registry.npmjs.org/string npm http GET https://registry.npmjs.org/is-running npm http 200 https://registry.npmjs.org/polyglot-chess npm http GET https://registry.npmjs.org/polyglot-chess/-/polyglot-chess-0.1.6.tgz npm http 200 https://registry.npmjs.org/chess.js npm http GET https://registry.npmjs.org/chess.js/-/chess.js-0.1.0.tgz npm http 200 https://registry.npmjs.org/chess.js/-/chess.js-0.1.0.tgz npm http 200 https://registry.npmjs.org/polyglot-chess/-/polyglot-chess-0.1.6.tgz npm http 200 https://registry.npmjs.org/is-running npm http GET https://registry.npmjs.org/is-running/-/is-running-1.0.5.tgz npm http 200 https://registry.npmjs.org/string npm http GET https://registry.npmjs.org/string/-/string-1.7.0.tgz npm http 200 https://registry.npmjs.org/string/-/string-1.7.0.tgz npm http 200 https://registry.npmjs.org/is-running/-/is-running-1.0.5.tgz npm http 200 https://registry.npmjs.org/q npm http GET https://registry.npmjs.org/q/-/q-0.9.7.tgz npm http 200 https://registry.npmjs.org/q/-/q-0.9.7.tgz

polyglot-chess@0.1.6 install C:\shakti\nodejs\node_modules\uci\node_modules\polyglot-chess node-gyp rebuild

C:\shakti\nodejs\node_modules\uci\node_modules\polyglot-chess>node "C:\shakti\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. VCBUILD : error : project file 'C:\shakti\nodejs\node_modules\uci\node_modules\polyglot-chess\build\polyglot.vcproj' was not found or not a valid project file. [C:\shakti\nodejs\node_modules\uci\node_modules\polyglot-chess\build\binding.sln] 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:\shakti\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:797:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\shakti\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\shakti\nodejs\node_modules\uci\node_modules\polyglot-chess gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm ERR! polyglot-chess@0.1.6 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the polyglot-chess@0.1.6 install script. npm ERR! This is most likely a problem with the polyglot-chess 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 polyglot-chess npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\shakti\nodejs\node.exe" "C:\shakti\nodejs\node_modules\npm\bin\npm-cli.js" "install" "uci" npm ERR! cwd C:\shakti\nodejs\eclipse\Enide-Studio-05-kepler-win64\ws\uci npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.24 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\shakti\nodejs\eclipse\Enide-Studio-05-kepler-win64\ws\uci\npm-debug.log npm ERR! not ok code 0

imor commented 10 years ago

Installation fails because polyglot-chess is failing. uci depends upon polyglot-chess.

You do have visual studio 2010 installed on your system right? If you want binaries you can go to the polyglot-chess release page and download it from there.

Caveats - Only windows 64 bit binary is available and you'll have to install polyglot-chess manually. Sorry for the hassle but this is the current state of affairs. Hopefully npm will allow better binary distribution in future (see this issue - https://github.com/npm/npm/issues/1891)

Let me know if it helps.