end0tknr's kipple - 新web写経開発

http://d.hatena.ne.jp/end0tknr/ から移転しました

GMP - The GNU Multiple Precision Arithmetic Library

Math::GMP - search.cpan.org
Math::GMP を installしようとしたら、次のようなエラーになり、GMP の存在を知りました。

[colinux Math-GMP-2.06]$ make
Skip blib/lib/Math/GMP.pm (unchanged)
cc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"2.06\" -DXS_VERSION=\"2.06\" -fPIC "-I/usr/local/lib/perl5/5.10.1/i686-linux-thread-multi/CORE"   GMP.c
GMP.xs:4:17: error: gmp.h: No such file or directory
GMP.c: In function 'XS_Math__GMP_new_from_scalar':
GMP.c:238: error: 'mpz_t' undeclared (first use in this function)
GMP.c:238: error: (Each undeclared identifier is reported only once
GMP.c:238: error: for each function it appears in.)
GMP.c:238: error: 'RETVAL' undeclared (first use in this function)
  :

http://gmplib.org