首页 > 解决方案 > 安装 duc 时找不到包“tokyocabinet”

问题描述

当我使用此命令安装 duc 时:

wget -c https://github.com/zevv/duc/releases/download/1.4.4/duc-1.4.4.tar.gz
tar -zxvf duc-1.4.4.tar.gz
cd duc-1.4.4
./confugure

它给了我提示:

configure: error: Package requirements (tokyocabinet) were not met:

No package 'tokyocabinet' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables TC_CFLAGS
and TC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

然后我像这样安装 tokyocabinet 包:

[root@uat-k8s-01 duc-1.4.4]# yum install tokyocabinet
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package tokyocabinet-1.4.48-3.el7.x86_64 already installed and latest version
Nothing to do

但它仍然给出不安装包的提示。如何解决?

标签: linux

解决方案


找不到包“tokyocabinet”

这意味着“没有/usr/lib64/pkgconfig/tokyocabinet.pc找到包配置文件”。

解决方案 :# yum install tokyocabinet-devel

即所有用于构建应用程序/编译的库必须是(lib)[name]-devel


推荐阅读