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

Windows install #13

Open
26medias opened this issue Mar 2, 2014 · 4 comments
Open

Windows install #13

26medias opened this issue Mar 2, 2014 · 4 comments

Comments

@26medias
Copy link

26medias commented Mar 2, 2014

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 AIStock@1.0.0 No repository field.
npm WARN package.json AIStock@1.0.0 No README data
npm http GET https://registry.npmjs.org/fann
npm http 304 https://registry.npmjs.org/fann

fann@0.2.3 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! fann@0.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fann@0.2.3 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

@toddpi314
Copy link

It looks like you don't have Gyp installed

@feidens
Copy link

feidens commented Oct 25, 2014

Same on OS X Yosemite

@Waxo
Copy link

Waxo commented Aug 12, 2015

Same on unbutu 15.04

@Waxo
Copy link

Waxo commented Aug 12, 2015

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.

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

4 participants