gpt4 book ai didi

tesseract - Centos7安装Tesseract 3.05时出错 "error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package"

转载 作者:行者123 更新时间:2023-12-02 11:30:21 31 4
gpt4 key购买 nike

我们最初在 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 时。

需要知道问题出在哪里。

最佳答案

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 之前。

关于tesseract - Centos7安装Tesseract 3.05时出错 "error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49107733/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com