linux - 安装 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
但它仍然给出不安装包的提示。如何解决?
解决方案
找不到包“tokyocabinet”
这意味着“没有/usr/lib64/pkgconfig/tokyocabinet.pc
找到包配置文件”。
解决方案 :# yum install tokyocabinet-devel
即所有用于构建应用程序/编译的库必须是(lib)[name]-devel
推荐阅读
- html - HTML 浏览器图像兼容性
- entity-framework-6 - 在 EntityFramwork 6.2.0 我想创建阴影属性(是 EF 6 支持阴影属性)
- react-native - 在反应原生的屏幕之间传递不可序列化的对象
- r - 尽管使用 scale_fill_manual(),ggplotly() 仍忽略图例标签编辑
- javascript - JS 对象原型级别和继承复制或参考
- java - 具有默认接口方法的 Java 8 InvocationHandler
- javascript - 如何通过使用 ajax 调用按下按钮删除来删除数据库行
- python-3.x - Read .txt with emoji characters in python
- keycloak - ISPN 缓存的 Keycloak 和失效模式
- javascript - 如何使 ChartJS 中的 Line 不超过 yAxes 的最大值