我一直试图安装Crypt::PBC几周但未能这样做。我首先使用了cpan install 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
所以我解压缩了使用Crypt-PBC-0.9000.tar.gz
下载的tar -xvzf Crypt-PBC-0.9000.tar.gz
。内容已成功解压缩。之后,因为其中有Makefile.PL
,我使用了perl Makefile.pl
。在makefile中,我将Web请求更改为http://crypto.stanford.edu/pbc/files作为pbc文件的源,然后再次使用perl Makefile.pl
。生成以下内容:
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路径中包含这些文件?