Linux:尽管安装了 libgthread,我如何处理 "GThread not available"

标签 linux error-handling installation

我正在尝试在我的 linux fedora 20 系统上安装 tagsistant,所以我开始按照安装说明文本进行操作,其中首先执行 ./configure。当我这样做时,它失败并显示消息:

配置:错误:“GThread 支持不可用。请安装 libgthread”

我已经安装了 libgthreadgliblibfuse 以响应这条消息和之前的消息。

既不是 grep GTh 也不是 grep libg,在 config.log 文件列表中,找不到任何东西。有错误的修复方法吗?我没有列出 config.log 的内容或屏幕的输出,因为它们很长,但如果有帮助,我可以提取任何相关细节。

经过进一步调查,我在 config 中找到了错误消息的来源:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_thread_init in -lgthread-2.0" >&5
$as_echo_n "checking for g_thread_init in -lgthread-2.0... " >&6; }
if ${ac_cv_lib_gthread_2_0_g_thread_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lgthread-2.0  $LIBS"

并且发现 g-thread 已被弃用,因此不在包中,参见 g-thread-init deprecated

再说一次,有人能建议我如何解决这个问题吗?


经过深思熟虑,我认为我应该在 Unix 和 Linux 站点上问这个问题,请问我如何将它迁移到那里,或者:有人可以帮我做吗?

最佳答案

Tagsistant ./configure 在报告缺少的依赖项时有点误导。首先,GThread 支持由 glib 本身提供,因此输出应该建议安装 glib,而不是 libgthread。

此外,您真正需要安装的是库包含文件。通常您可以通过安装软件包的 -dev 或 -devel 版本来获取它们。在 RedHat/Fedora 中,第二个适合:

$ yum install glib-devel

对 DBI、FUSE 和 libextractor 等其他软件包执行相同的操作。

关于Linux:尽管安装了 libgthread,我如何处理 "GThread not available",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23296762/

相关文章:

child 使用管道进行计算

linux - 如何在 linux 中格式化 tree 的输出,以便配色方案仍然适用?

python - 我尝试在Flask中使用Blueprints进行404错误处理,但似乎无法正常工作。这是我的代码:

tomcat - Dockerfile - 创建 dockerfile

ruby - 安装 Ruby Gem 不适用于 OSX 10.10 Yosemite

java - java jre 与 jdk 的替代方案

linux - 当我阅读 head.s(Linux 内核文件之一)时遇到问题

installation - 安装 tarball 的 puppet 配方

parsing - 使用 yacc 时,如何告诉 yyparse() 要停止解析?

python - 展平图层ValueError : Input 0 is incompatible with layer flatten_5: expected min_ndim=3, found ndim=2