[centos-users 520] Net::SSH::Perl のインストールについて

ml_rh_linux @ spiralsys.com ml_rh_linux @ spiralsys.com
2007年 6月 25日 (月) 20:17:24 JST


石川と申します

よろしくお願いします。

今まで、REDHATでしたが、centos を使用したいと思って、構築中です。
REDHATでは、うまくいってたのですが、Net::SSH::Perl のインストールで、
つまずいています。



CentOS Linux 5 V1.350
Perl version 5.8.8

インストールで、以下のように、エラーが出ます。
また、Math::GMPを取り出して、インストールしても、同じようにアラーになります。

どなたか、教えていただけますようよろしくお願いします。



(長くて、申しわけありません。)

cpan[3]> install Net::SSH::Perl
:
; 途中略
:

質問は、全てリターン

Warning (usually harmless): 'YAML' not installed, will not store persistent state

   CPAN.pm: Going to build C/CH/CHIPT/Math-GMP-2.04.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP
cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap  GMP.xs > GMP.xsc && 
mv GMP.xsc GMP.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables   -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" 
-fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"   GMP.c
GMP.xs:4:17: error: gmp.h: そのようなファイルやディレクトリはありません
GMP.xs: In function ‘constant’:
GMP.xs:49: 警告: label ‘not_there’ defined but not used
GMP.c: In function ‘XS_Math__GMP_new_from_scalar’:
GMP.c:93: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:93: error: (Each undeclared identifier is reported only once
GMP.c:93: error: for each function it appears in.)
GMP.c:93: error: ‘RETVAL’ undeclared (first use in this function)
GMP.xs:70: 警告: implicit declaration of function ‘mpz_init_set_str’
GMP.c: In function ‘XS_Math__GMP_new_from_scalar_with_base’:
GMP.c:114: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:114: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c: In function ‘XS_Math__GMP_destroy’:
GMP.c:133: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:133: error: ‘n’ undeclared (first use in this function)
GMP.c:137: error: expected expression before ‘)’ token
GMP.c:136: 警告: unused variable ‘tmp’
GMP.xs:90: 警告: implicit declaration of function ‘mpz_clear’
GMP.c: In function ‘XS_Math__GMP_stringify_gmp’:
GMP.c:157: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:157: error: ‘n’ undeclared (first use in this function)
GMP.xs:98: 警告: ISO C90 forbids mixed declarations and code
GMP.c:166: error: expected expression before ‘)’ token
GMP.c:165: 警告: unused variable ‘tmp’
GMP.xs:101: 警告: implicit declaration of function ‘mpz_sizeinbase’
GMP.xs:105: 警告: implicit declaration of function ‘mpz_get_str’
GMP.c: In function ‘XS_Math__GMP_get_str_gmp’:
GMP.c:194: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:194: error: ‘n’ undeclared (first use in this function)
GMP.c:195: 警告: ISO C90 forbids mixed declarations and code
GMP.c:204: error: expected expression before ‘)’ token
GMP.c:203: 警告: unused variable ‘tmp’
GMP.c: In function ‘XS_Math__GMP_sizeinbase_gmp’:
GMP.c:232: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:232: error: ‘n’ undeclared (first use in this function)
GMP.c:233: 警告: ISO C90 forbids mixed declarations and code
GMP.c:239: error: expected expression before ‘)’ token
GMP.c:238: 警告: unused variable ‘tmp’
GMP.c: In function ‘XS_Math__GMP_uintify_gmp’:
GMP.c:259: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:259: error: ‘n’ undeclared (first use in this function)
GMP.c:260: 警告: ISO C90 forbids mixed declarations and code
GMP.c:265: error: expected expression before ‘)’ token
GMP.c:264: 警告: unused variable ‘tmp’
GMP.xs:148: 警告: implicit declaration of function ‘mpz_get_ui’
GMP.c: In function ‘XS_Math__GMP_add_ui_gmp’:
GMP.c:285: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:285: error: ‘n’ undeclared (first use in this function)
GMP.c:286: 警告: ISO C90 forbids mixed declarations and code
GMP.c:290: error: expected expression before ‘)’ token
GMP.c:289: 警告: unused variable ‘tmp’
GMP.xs:158: 警告: implicit declaration of function ‘mpz_add_ui’
GMP.c: In function ‘XS_Math__GMP_intify_gmp’:
GMP.c:309: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:309: error: ‘n’ undeclared (first use in this function)
GMP.c:310: 警告: ISO C90 forbids mixed declarations and code
GMP.c:315: error: expected expression before ‘)’ token
GMP.c:314: 警告: unused variable ‘tmp’
GMP.xs:166: 警告: implicit declaration of function ‘mpz_get_si’
GMP.c: In function ‘XS_Math__GMP_mul_2exp_gmp’:
GMP.c:335: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:335: error: ‘n’ undeclared (first use in this function)
GMP.c:336: 警告: ISO C90 forbids mixed declarations and code
GMP.c:337: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:341: error: expected expression before ‘)’ token
GMP.c:340: 警告: unused variable ‘tmp’
GMP.xs:177: 警告: implicit declaration of function ‘mpz_init’
GMP.xs:178: 警告: implicit declaration of function ‘mpz_mul_2exp’
GMP.c: In function ‘XS_Math__GMP_div_2exp_gmp’:
GMP.c:364: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:364: error: ‘n’ undeclared (first use in this function)
GMP.c:365: 警告: ISO C90 forbids mixed declarations and code
GMP.c:366: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:370: error: expected expression before ‘)’ token
GMP.c:369: 警告: unused variable ‘tmp’
GMP.xs:190: 警告: implicit declaration of function ‘mpz_div_2exp’
GMP.c: In function ‘XS_Math__GMP_powm_gmp’:
GMP.c:393: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:393: error: ‘n’ undeclared (first use in this function)
GMP.c:395: error: ‘mod’ undeclared (first use in this function)
GMP.c:396: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:400: error: expected expression before ‘)’ token
GMP.c:399: 警告: unused variable ‘tmp’
GMP.c:407: error: expected expression before ‘)’ token
GMP.c:406: 警告: unused variable ‘tmp’
GMP.c:414: error: expected expression before ‘)’ token
GMP.c:413: 警告: unused variable ‘tmp’
GMP.xs:204: 警告: implicit declaration of function ‘mpz_powm’
GMP.c: In function ‘XS_Math__GMP_mmod_gmp’:
GMP.c:437: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:437: error: ‘a’ undeclared (first use in this function)
GMP.c:438: error: ‘b’ undeclared (first use in this function)
GMP.c:439: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:443: error: expected expression before ‘)’ token
GMP.c:442: 警告: unused variable ‘tmp’
GMP.c:450: error: expected expression before ‘)’ token
GMP.c:449: 警告: unused variable ‘tmp’
GMP.xs:217: 警告: implicit declaration of function ‘mpz_mmod’
GMP.c: In function ‘XS_Math__GMP_mod_2exp_gmp’:
GMP.c:473: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:473: error: ‘in’ undeclared (first use in this function)
GMP.c:474: 警告: ISO C90 forbids mixed declarations and code
GMP.c:475: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:479: error: expected expression before ‘)’ token
GMP.c:478: 警告: unused variable ‘tmp’
GMP.xs:230: 警告: implicit declaration of function ‘mpz_mod_2exp’
GMP.c: In function ‘XS_Math__GMP_add_two’:
GMP.c:502: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:502: error: ‘m’ undeclared (first use in this function)
GMP.c:503: error: ‘n’ undeclared (first use in this function)
GMP.c:504: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:508: error: expected expression before ‘)’ token
GMP.c:507: 警告: unused variable ‘tmp’
GMP.c:515: error: expected expression before ‘)’ token
GMP.c:514: 警告: unused variable ‘tmp’
GMP.xs:243: 警告: implicit declaration of function ‘mpz_add’
GMP.c: In function ‘XS_Math__GMP_sub_two’:
GMP.c:538: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:538: error: ‘m’ undeclared (first use in this function)
GMP.c:539: error: ‘n’ undeclared (first use in this function)
GMP.c:540: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:544: error: expected expression before ‘)’ token
GMP.c:543: 警告: unused variable ‘tmp’
GMP.c:551: error: expected expression before ‘)’ token
GMP.c:550: 警告: unused variable ‘tmp’
GMP.xs:256: 警告: implicit declaration of function ‘mpz_sub’
GMP.c: In function ‘XS_Math__GMP_mul_two’:
GMP.c:574: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:574: error: ‘m’ undeclared (first use in this function)
GMP.c:575: error: ‘n’ undeclared (first use in this function)
GMP.c:576: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:580: error: expected expression before ‘)’ token
GMP.c:579: 警告: unused variable ‘tmp’
GMP.c:587: error: expected expression before ‘)’ token
GMP.c:586: 警告: unused variable ‘tmp’
GMP.xs:269: 警告: implicit declaration of function ‘mpz_mul’
GMP.c: In function ‘XS_Math__GMP_div_two’:
GMP.c:610: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:610: error: ‘m’ undeclared (first use in this function)
GMP.c:611: error: ‘n’ undeclared (first use in this function)
GMP.c:612: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:616: error: expected expression before ‘)’ token
GMP.c:615: 警告: unused variable ‘tmp’
GMP.c:623: error: expected expression before ‘)’ token
GMP.c:622: 警告: unused variable ‘tmp’
GMP.xs:282: 警告: implicit declaration of function ‘mpz_div’
GMP.c: In function ‘XS_Math__GMP_bdiv_two’:
GMP.c:647: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:647: error: ‘m’ undeclared (first use in this function)
GMP.c:648: error: ‘n’ undeclared (first use in this function)
GMP.xs:293: error: ‘quo’ undeclared (first use in this function)
GMP.xs:294: error: ‘rem’ undeclared (first use in this function)
GMP.c:656: error: expected expression before ‘)’ token
GMP.c:655: 警告: unused variable ‘tmp’
GMP.c:663: error: expected expression before ‘)’ token
GMP.c:662: 警告: unused variable ‘tmp’
GMP.xs:300: 警告: implicit declaration of function ‘mpz_tdiv_qr’
GMP.c: In function ‘XS_Math__GMP_mod_two’:
GMP.c:690: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:690: error: ‘m’ undeclared (first use in this function)
GMP.c:691: error: ‘n’ undeclared (first use in this function)
GMP.c:692: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:696: error: expected expression before ‘)’ token
GMP.c:695: 警告: unused variable ‘tmp’
GMP.c:703: error: expected expression before ‘)’ token
GMP.c:702: 警告: unused variable ‘tmp’
GMP.xs:315: 警告: implicit declaration of function ‘mpz_mod’
GMP.c: In function ‘XS_Math__GMP_cmp_two’:
GMP.c:726: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:726: error: ‘m’ undeclared (first use in this function)
GMP.c:727: error: ‘n’ undeclared (first use in this function)
GMP.c:728: 警告: ISO C90 forbids mixed declarations and code
GMP.c:733: error: expected expression before ‘)’ token
GMP.c:732: 警告: unused variable ‘tmp’
GMP.c:740: error: expected expression before ‘)’ token
GMP.c:739: 警告: unused variable ‘tmp’
GMP.xs:326: 警告: implicit declaration of function ‘mpz_cmp’
GMP.c: In function ‘XS_Math__GMP_gmp_legendre’:
GMP.c:760: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:760: error: ‘m’ undeclared (first use in this function)
GMP.c:761: error: ‘n’ undeclared (first use in this function)
GMP.c:762: 警告: ISO C90 forbids mixed declarations and code
GMP.c:767: error: expected expression before ‘)’ token
GMP.c:766: 警告: unused variable ‘tmp’
GMP.c:774: error: expected expression before ‘)’ token
GMP.c:773: 警告: unused variable ‘tmp’
GMP.xs:336: 警告: implicit declaration of function ‘mpz_legendre’
GMP.c: In function ‘XS_Math__GMP_gmp_jacobi’:
GMP.c:794: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:794: error: ‘m’ undeclared (first use in this function)
GMP.c:795: error: ‘n’ undeclared (first use in this function)
GMP.c:796: 警告: ISO C90 forbids mixed declarations and code
GMP.c:801: error: expected expression before ‘)’ token
GMP.c:800: 警告: unused variable ‘tmp’
GMP.c:808: error: expected expression before ‘)’ token
GMP.c:807: 警告: unused variable ‘tmp’
GMP.xs:346: 警告: implicit declaration of function ‘mpz_jacobi’
GMP.c: In function ‘XS_Math__GMP_pow_two’:
GMP.c:828: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:828: error: ‘m’ undeclared (first use in this function)
GMP.c:829: 警告: ISO C90 forbids mixed declarations and code
GMP.c:830: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:834: error: expected expression before ‘)’ token
GMP.c:833: 警告: unused variable ‘tmp’
GMP.xs:359: 警告: implicit declaration of function ‘mpz_pow_ui’
GMP.c: In function ‘XS_Math__GMP_gcd_two’:
GMP.c:858: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:858: error: ‘m’ undeclared (first use in this function)
GMP.c:859: error: ‘n’ undeclared (first use in this function)
GMP.c:860: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:864: error: expected expression before ‘)’ token
GMP.c:863: 警告: unused variable ‘tmp’
GMP.c:871: error: expected expression before ‘)’ token
GMP.c:870: 警告: unused variable ‘tmp’
GMP.xs:372: 警告: implicit declaration of function ‘mpz_gcd’
GMP.c: In function ‘XS_Math__GMP_gmp_fib’:
GMP.c:895: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:895: error: ‘RETVAL’ undeclared (first use in this function)
GMP.xs:384: 警告: implicit declaration of function ‘mpz_fib_ui’
GMP.c: In function ‘XS_Math__GMP_and_two’:
GMP.c:915: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:915: error: ‘m’ undeclared (first use in this function)
GMP.c:916: error: ‘n’ undeclared (first use in this function)
GMP.c:917: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:921: error: expected expression before ‘)’ token
GMP.c:920: 警告: unused variable ‘tmp’
GMP.c:928: error: expected expression before ‘)’ token
GMP.c:927: 警告: unused variable ‘tmp’
GMP.xs:397: 警告: implicit declaration of function ‘mpz_and’
GMP.c: In function ‘XS_Math__GMP_xor_two’:
GMP.c:951: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:951: error: ‘m’ undeclared (first use in this function)
GMP.c:952: error: ‘n’ undeclared (first use in this function)
GMP.c:953: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:957: error: expected expression before ‘)’ token
GMP.c:956: 警告: unused variable ‘tmp’
GMP.c:964: error: expected expression before ‘)’ token
GMP.c:963: 警告: unused variable ‘tmp’
GMP.xs:409: 警告: implicit declaration of function ‘mpz_xor’
GMP.c: In function ‘XS_Math__GMP_or_two’:
GMP.c:987: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:987: error: ‘m’ undeclared (first use in this function)
GMP.c:988: error: ‘n’ undeclared (first use in this function)
GMP.c:989: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:993: error: expected expression before ‘)’ token
GMP.c:992: 警告: unused variable ‘tmp’
GMP.c:1000: error: expected expression before ‘)’ token
GMP.c:999: 警告: unused variable ‘tmp’
GMP.xs:422: 警告: implicit declaration of function ‘mpz_ior’
GMP.c: In function ‘XS_Math__GMP_gmp_fac’:
GMP.c:1024: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:1024: error: ‘RETVAL’ undeclared (first use in this function)
GMP.xs:434: 警告: implicit declaration of function ‘mpz_fac_ui’
GMP.c: In function ‘XS_Math__GMP_gmp_copy’:
GMP.c:1044: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:1044: error: ‘m’ undeclared (first use in this function)
GMP.c:1045: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:1049: error: expected expression before ‘)’ token
GMP.c:1048: 警告: unused variable ‘tmp’
GMP.xs:445: 警告: implicit declaration of function ‘mpz_init_set’
GMP.c: In function ‘XS_Math__GMP_gmp_tstbit’:
GMP.c:1071: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:1071: error: ‘m’ undeclared (first use in this function)
GMP.c:1072: 警告: ISO C90 forbids mixed declarations and code
GMP.c:1078: error: expected expression before ‘)’ token
GMP.c:1077: 警告: unused variable ‘tmp’
GMP.xs:455: 警告: implicit declaration of function ‘mpz_tstbit’
GMP.c: In function ‘XS_Math__GMP_gmp_sqrt’:
GMP.c:1098: error: ‘mpz_t’ undeclared (first use in this function)
GMP.c:1098: error: ‘m’ undeclared (first use in this function)
GMP.c:1099: error: ‘RETVAL’ undeclared (first use in this function)
GMP.c:1103: error: expected expression before ‘)’ token
GMP.c:1102: 警告: unused variable ‘tmp’
GMP.xs:466: 警告: implicit declaration of function ‘mpz_sqrt’
make: *** [GMP.o] エラー 1

略 




centos-users メーリングリストの案内