2013-04-24 67 views
0

我已經從git repo下載了libmongoc驅動程序並進行安裝。然後我下載了collectd tar文件,並提取它,並嘗試安裝它,每一件事就ok了,但是當我嘗試運行收集d我面對這些錯誤:collectd write_mongodb插件lt_dlopen錯誤在fedora 17. collectd不能識別已安裝的lib

[path to collectd]# sbin/collectd 
ERROR: lt_dlopen ("/opt/collectd/lib/collectd/write_mongodb.so") failed: file not found. 
The most common cause for this problem are missing dependencies. 
Use ldd(1) to check the dependencies of the plugin/shared object. 
[path to collectd]# 

[path to collectd]# ldd /opt/collectd/lib/collectd/write_mongodb.so 
linux-vdso.so.1 => (0x00007fff1dbaa000) 
libmongoc.so.0.7 => not found 
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8351fd1000) 
libc.so.6 => /lib64/libc.so.6 (0x00007f8351c1a000) 
/lib64/ld-linux-x86-64.so.2 (0x00007f83523e4000) 
[path to collectd]# 
[path to collectd]# locate libmongoc.so.0.7 
/usr/local/lib/libmongoc.so.0.7 
/usr/local/lib/libmongoc.so.0.7.1 
[path to collectd]# 

爲什麼collectd無法識別安裝libmongoc庫?

+0

我得到了和你一樣的錯誤。你解決了嗎? – 2013-06-02 03:35:30

+0

不幸的是,我想收集我的guest vms統計信息,現在我使用libvirt標準api來做到這一點。 – 2013-06-02 04:22:08

回答

0

我用write_mongodb成功安裝了collectd。

[[email protected] ~]# ldd /usr/local/etc/collectd/lib/collectd/write_mongodb.so 
    linux-vdso.so.1 => (0x00007fffa3ffe000) 
    libmongoc.so.0.6 => not found 
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f1134fe8000) 
    libc.so.6 => /lib64/libc.so.6 (0x00007f1134c2f000) 
    /lib64/ld-linux-x86-64.so.2 (0x00007f1135614000) 

,然後我複製到libmongoc.so.0.6的/ lib64的 目錄,然後運行collectd(我是/ usr/local/lib目錄 安裝),一切工作正常。
希望這可以幫助你。