mozilla/browserid — Issue #744: npm install fails on bigint and crypto code
Author: jbonacci
Created: 2011-12-13 02:22:23+00:00
State: open

$ git clone git://github.com/mozilla/browserid
$ cd browserid
$ npm install

Did the above on a Mac and got massive failures against bigint/crypto

...etc...
Waf: Entering directory `/Users/jbonacci/Git/browserid/node_modules/jwcrypto/node_modules/bigint/build'
[1/2] cxx: bigint.cc -> build/Release/bigint_1.o
../bigint.cc:9:17: error: gmp.h: No such file or directory
not found
'configure' finished successfully (6.472s)
node-waf build
...etc...

Apparently we now need gmp?

On @fetep recommendation, I install gmp/gmp-devel
REF for Mac: http://web.me.com/chibaf/math/mp/mpfr/install.html

Workaround:
% tar zxvf gmp-5.0.2.tar.bz2
% cd gmp-5.0.2
% ./configure
% make
% make check
% sudo make install

This appeared to work w/o issue.