如何在perl中安装模块PDF :: OCR2?

时间:2016-08-19 06:37:33

标签: perl pdf module ocr

我正在尝试使用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?

1 个答案:

答案 0 :(得分:0)

Tesseract,就像许多事情已转移到github:

https://github.com/tesseract-ocr

在尝试安装PDF::OCR2模块之前,您需要从此处克隆并构建此软件。提交票证或补丁以更新INSTALL说明。