studiomobile / poker-eval-node

Node.js wrapper for poker-eval library
9 stars 4 forks source link

This library is failing to install #5

Open ashhwani opened 8 years ago

ashhwani commented 8 years ago

I have tried to install this library and its not installing. Below is the error that I'm facing while installing this:

npm ERR! poker-eval@0.4.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the poker-eval@0.4.0 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the poker-eval 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 poker-eval npm ERR! There is likely additional logging output above.

Please suggest how to install this in my node.js project. If I need a specific version of the node.js and npm or the library needs to be updated. I'm using node.js on mac OS X. Please advice.

harrythree commented 7 years ago

I know this has been a while, but I was able to install this on Mac.

First you need poker-eval installed on your computer.

I found a fork of the original repo here

I had to install automake and libtool before I could install poker-eval c library.

brew install automake

brew install libtool

After that you will need to clone the repo and in the root run

autoreconf --install and make install

This will install the poker-eval files that are need here

After install poker-eval, I was able to go back to poker-eval-node and run npm install and everything installed correctly. Using node v6 too.

I hope this helps!