安装duc时找不到软件包“ tokyocabinet”

时间:2020-04-18 13:31:33

标签: linux

当我使用此命令安装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

,但仍然没有提供安装提示。如何解决?

2 个答案:

答案 0 :(得分:1)

未找到软件包“ tokyocabinet”

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

解决方案:# yum install tokyocabinet-devel

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

答案 1 :(得分:0)

在编译并安装duc之前,应先安装依赖包,如果使用centos,则应这样做:

sudo yum install pango-devel cairo-devel tokyocabinet-devel -y
sudo yum install ncurses-devel -y