joh*_*_ka 6 install-from-source configure
我试图tesseract-ocr
使用这些命令安装:
auto-apt run ./configure
make
checkinstall
Run Code Online (Sandbox Code Playgroud)
Auto-apt 和 apt-file 安装在我的 Ubuntu 14.04 和最新版本上。
但是,在 ./configure 过程中,我遇到了以下错误:
checking for strerror... yes
checking for vsnprintf... yes
checking for gethostname... yes
checking for strchr... yes
checking for memcpy... yes
checking for acos... yes
checking for asin... yes
checking for leptonica... configure: error: leptonica not found
Run Code Online (Sandbox Code Playgroud)
这是完整的配置代码:粘贴过去的代码。ofcode.org
我已经安装了 'leptonica-progs' 包,但仍然遇到同样的错误。
知道如何解决这个问题吗?
Tho*_*ard 12
几乎所有使用 a 编译的程序./configure
(例如这个程序,尽管它是在此auto-apt
过程中触发的)都不会查找依赖项检查所引用的程序的实际二进制文件。相反,此类系统正在寻找开发库和头文件,而不是二进制文件。这些通常保存在一个带有-dev
后缀的单独包中,名称相似。为此,我们需要为库找到相应的开发头文件。
什么leptonica-progs
,你安装了包含都为Leptonica库示例程序,而不是实际的头/库文件。在 Trusty 下搜索包系统,我认为您需要安装libleptonica-dev
包来安装库本身的实际头文件和库文件。
运行sudo apt-get install libleptonica-dev
然后./configure
再次运行该行,它不应再触发 leptonica 依赖项。