Perl Can';在Cygwin上安装Crypt::PBC时,t链接/包括GMP

Perl Can';在Cygwin上安装Crypt::PBC时,t链接/包括GMP,perl,cygwin,cpan,Perl,Cygwin,Cpan,我已经尝试安装了几个星期,但没有这样做。我首先使用了cpan安装Crypt::PBC,结果如下: Going to read '/home/Mounica/.cpan/Metadata' Database was generated on Wed, 23 Apr 2014 23:06:17 GMT Running install for module 'Crypt::PBC' Running make for J/JE/JETTERO/Crypt-PBC-0.9000.tar.gz Fetc

我已经尝试安装了几个星期,但没有这样做。我首先使用了
cpan安装Crypt::PBC
,结果如下:

Going to read '/home/Mounica/.cpan/Metadata'
  Database was generated on Wed, 23 Apr 2014 23:06:17 GMT
Running install for module 'Crypt::PBC'
Running make for J/JE/JETTERO/Crypt-PBC-0.9000.tar.gz
Fetching with LWP:
http://mirror.ox.ac.uk/sites/www.cpan.org/authors/id/J/JE/JETTERO/Crypt-PBC-0.9000.tar.gz
Checksum for /home/Mounica/.cpan/sources/authors/id/J/JE/JETTERO/Crypt-PBC-0.9000.tar.gz ok

  CPAN.pm: Going to build J/JE/JETTERO/Crypt-PBC-0.9000.tar.gz

Use of qw(...) as parentheses is deprecated at inc/Devel/CheckLib.pm line 164.
Error locating libpbc version 0.5.1: Can't link/include 'pbc.h', 'pbc'

You can get the latest debian binaries from https://voltar.org/pbcfiles

Would you like to download and build libpbc from tarball automatically? [y/N] [n]
然后当我说是的时候,我意识到voltar.org的链接断了。这是生成的消息:

Would you like to download and build libpbc from tarball automatically? [y/N]     [y]
downloading libpbc from http://voltar.org/pbcfiles/pbc-0.5.1.tar.gz...
--2014-04-24 06:33:50--  http://voltar.org/pbcfiles/pbc-0.5.1.tar.gz
Resolving voltar.org (voltar.org)... 69.174.176.168
Connecting to voltar.org (voltar.org)|69.174.176.168|:80... connected.
HTTP request sent, awaiting response... 404 File not found
2014-04-24 06:33:51 ERROR 404: File not found.

couldn't fetch with wget...
couldn't fetch with curl ...
unpacking libpbc from pbc-0.5.1.tar.gz...
No files found for pbc-0.5.1.tar.gz at Makefile.PL line 112

gzip: pbc-0.5.1.tar.gz: unexpected end of file
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
failed to unpack pbc
No 'Makefile' created  JETTERO/Crypt-PBC-0.9000.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Use of qw(...) as parentheses is deprecated at inc/Devel/CheckLib.pm line 164.
Error locating libpbc version 0.5.14: Can't link/include 'pbc.h', 'pbc'

You can get the latest debian binaries from http://crypto.stanford.edu/pbc/files/

Would you like to download and build libpbc from tarball automatically?[y/N] [y]
(You do need libgmp installed in order for this PBC.so to function...)
Can't link/include 'gmp'
所以我解包了使用
tar-xvzf-Crypt-PBC-0.9000.tar.gz
下载的
Crypt-PBC-0.9000.tar.gz
。内容已成功解压缩。之后,由于其中有一个
Makefile.PL
,所以我使用了
perl-Makefile.PL
。在makefile中,我将web请求更改为作为pbc文件的源,然后再次使用
perl makefile.pl
。生成了以下内容:

Would you like to download and build libpbc from tarball automatically? [y/N]     [y]
downloading libpbc from http://voltar.org/pbcfiles/pbc-0.5.1.tar.gz...
--2014-04-24 06:33:50--  http://voltar.org/pbcfiles/pbc-0.5.1.tar.gz
Resolving voltar.org (voltar.org)... 69.174.176.168
Connecting to voltar.org (voltar.org)|69.174.176.168|:80... connected.
HTTP request sent, awaiting response... 404 File not found
2014-04-24 06:33:51 ERROR 404: File not found.

couldn't fetch with wget...
couldn't fetch with curl ...
unpacking libpbc from pbc-0.5.1.tar.gz...
No files found for pbc-0.5.1.tar.gz at Makefile.PL line 112

gzip: pbc-0.5.1.tar.gz: unexpected end of file
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
failed to unpack pbc
No 'Makefile' created  JETTERO/Crypt-PBC-0.9000.tar.gz
  /usr/bin/perl Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Use of qw(...) as parentheses is deprecated at inc/Devel/CheckLib.pm line 164.
Error locating libpbc version 0.5.14: Can't link/include 'pbc.h', 'pbc'

You can get the latest debian binaries from http://crypto.stanford.edu/pbc/files/

Would you like to download and build libpbc from tarball automatically?[y/N] [y]
(You do need libgmp installed in order for this PBC.so to function...)
Can't link/include 'gmp'

我尝试在incpath和libpath中包含各种GMP文件,但没有任何帮助。您能告诉我这个makefile需要哪些特定的GMP文件,以便我可以将这些文件包括在INC路径中吗?

您是否按照标签指示使用Cygwin?如果是的话,请把它放在标题中让它更清楚。我建议不要使用该模块:它不会给人留下好印象,而且自09年以来就没有更新过。无论如何,您可以从或获取libpbc二进制文件。您可以尝试安装或尝试或。可能有助于安装GMP(该模块在Cygwin上似乎不起作用),但您始终可以从@amon下载GMP。我知道链接尚未更新,这就是为什么我将HTTP请求更改为stanford站点。很抱歉,我忘了提及我也从Math::BigInt::GMP和Math::GMP下载并安装了GMP