$shibayu36->blog;

クラスター株式会社のソフトウェアエンジニアです。エンジニアリングや読書などについて書いています。

brewのgmpを使って、Math::BigInt::GMPを入れる

brew install gmpしたあとにMath::BigInt::GMPが入らなかったのでメモ。

$ cpanm --look Math::BigInt::GMP
$ USE_MACPORTS=0 perl ./Makefile.PL INC="-I/usr/local/include" LIBS="-L/usr/local/lib -lgmp"
$ make
$ make test
$ make install

Crypt::DH::GMPとかも同じ手順でできる。