node-fann icon indicating copy to clipboard operation
node-fann copied to clipboard

Windows install

Open 26medias opened this issue 10 years ago • 4 comments

Hi,

Any help available to install on windows?

I have pkg-config installed and working, yet it fails.

Here is the console dump from npm install:

C:\xampp\htdocs\git\AIStock>npm install fann npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No README data npm http GET https://registry.npmjs.org/fann npm http 304 https://registry.npmjs.org/fann

[email protected] install C:\xampp\htdocs\git\AIStock\node_modules\fann node-gyp rebuild C:\xampp\htdocs\git\AIStock\node_modules\fann>node "C:\Program Files\nodejs\node _modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebu ild gyp: Call to 'pkg-config --atleast-version=2.1.0 fann' returned exit status 1. w hile trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_module s\npm\node_modules\node-gyp\lib\configure.js:467:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789: 12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu les\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\xampp\htdocs\git\AIStock\node_modules\fann gyp ERR! node -v v0.10.22 gyp ERR! node-gyp -v v0.11.0 gyp ERR! not ok npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the fann 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 fann npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "fann" npm ERR! cwd C:\xampp\htdocs\git\AIStock npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\xampp\htdocs\git\AIStock\npm-debug.log npm ERR! not ok code 0

26medias avatar Mar 02 '14 01:03 26medias

It looks like you don't have Gyp installed

toddpi314 avatar Jun 03 '14 04:06 toddpi314

Same on OS X Yosemite

feidens avatar Oct 25 '14 14:10 feidens

Same on unbutu 15.04

Waxo avatar Aug 12 '15 08:08 Waxo

Ok i've found a way. If you install the last version of fann the version is not set in fann.pc (under /usr/local/lib/pkgconfig/fann.pc). If you use pkg-config --modversion fann and you get an empty line the version is not set. So just edit the fann.pc with the good version and it will works.

Waxo avatar Aug 12 '15 13:08 Waxo