【发布时间】:2016-08-19 06:37:33
【问题描述】:
我正在尝试使用 perl 从扫描的 PDF 中获取文本,所以我在 perl 中使用 PDF::OCR2 模块但我无法安装此模块,它在安装 Image::OCR::Tesseract 模块时失败,我是使用 CentOS7,这是我在安装过程中的错误
one dependency not OK (Image::OCR::Tesseract); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports LEOCHARRE/PDF-OCR2-1.21.tar.gz
Running make install
Appending installation info to /usr/lib64/perl5/perllocal.pod
LEOCHARRE/PDF-OCR2-1.21.tar.gz
sudo /usr/bin/make install -- OK
Failed during this command:
LEOCHARRE/PDF-OCR2-1.21.tar.gz : make_test NO one dependency not OK (Image::OCR::Tesseract); additionally test harness failed
我看了它的安装指南,他们建议先安装 gcc-c++ 和 automake 然后运行以下命令
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr
./runautoconf
mkdir build-directory
cd build-directory
../configure
make
make install
但它的网址不起作用 有没有其他方法可以成功安装模块 PDF::OCR2?
【问题讨论】: