【问题标题】:Error When installing Tesseract 3.05 in Centos7 "error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package"在 Centos7 中安装 Tesseract 3.05 时出错“错误:需要 Leptonica 1.74 或更高版本。尝试安装 libleptonica-dev 包”
【发布时间】:2018-08-12 22:44:06
【问题描述】:

我们最初在 centos 7 中安装了 tesseract 3.04,并且知道切换到 tesseract 3.05。我们已经卸载了旧版本,并且已经安装了从 leptonica 主页下载的 leptonica-1.75.3。

但是,当我们安装 tesseract 3.05 时,我们收到以下错误 检查 LEPTONICA... 不 配置:错误:需要 Leptonica 1.74 或更高版本。尝试安装 libleptonica-dev 包。

在 tesseract-3.05.01 文件夹中的控制台中运行 ./configure 时。

需要知道问题出在哪里。

【问题讨论】:

    标签: tesseract centos7 leptonica


    【解决方案1】:

    configure 脚本使用pkg-config 来查看是否安装了leptonica 库(并且具有所需的版本)。

    从源代码编译和安装 leptonica 后,您必须手动告诉 pkg-config 在哪里可以找到与 leptonica 一起安装的 lept.pc 配置文件。设置PKG_CONFIG_PATH 环境变量,使其指向lept.pc 的位置。如果您将 leptonica 安装到其默认位置,您应该这样做:

    $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
    

    在为 tesseract 运行 configure 之前。

    【讨论】:

    猜你喜欢
    • 2020-01-20
    • 2020-07-09
    • 2013-10-21
    • 2022-11-20
    • 2017-03-05
    • 1970-01-01
    • 1970-01-01
    • 2021-05-07
    • 2021-02-19
    相关资源
    最近更新 更多