2011-08-11 65 views
0

我嘗試在Fedora 15中安裝nautilus-rpm。如何將rpmdb庫與makefile鏈接起來?

這是錯誤消息。

[[email protected] nautilus-rpm-0.1]$ make 
make all-recursive 
make[1]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1' 
Making all in src 
make[2]: Entering directory `/home/designmade/다운로드/nautilus-rpm-0.1/src' 
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o librpmdb-method.la -rpath /usr/local/lib/gnome-vfs-2.0/modules -module -avoid-version rpmdb.lo -pthread -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt 
rm -fr .libs/librpmdb-method.la .libs/librpmdb-method.* .libs/librpmdb-method.* 
gcc -shared rpmdb.lo -lgnomevfs-2 -lgconf-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lrpm -lrpmdb -lrpmio -lpopt -Wl,-soname -Wl,librpmdb-method.so -o .libs/librpmdb-method.so 
/usr/bin/ld: cannot find -lrpmdb 
collect2: ld returned 1 exit status 
make[2]: *** [librpmdb-method.la] 오류 1 
make[2]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1/src' 
make[1]: *** [all-recursive] 오류 1 
make[1]: Leaving directory `/home/designmade/다운로드/nautilus-rpm-0.1' 
make: *** [all] 오류 2 

我試着找到關於rpmdb的文件。

[[email protected] nautilus-rpm-0.1]# find/-name *rpmdb* 
/var/lib/yum/rpmdb-indexes 
/usr/bin/rpmdb 
/usr/lib/rpm/rpmdb_load 
/usr/lib/rpm/rpmdb_verify 
/usr/lib/rpm/rpmdb_loadcvt 
/usr/lib/rpm/rpmdb_recover 
/usr/lib/rpm/rpmdb_dump 
/usr/lib/rpm/rpmdb_stat 
/usr/lib/rpm/rpmdb_upgrade 
/usr/include/rpm/rpmdb.h 
/usr/share/man/man8/rpmdb.8.gz 
/home/test/다운로드/nautilus-rpm-0.1/src/.deps/rpmdb.Plo 
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.desktop.in 
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.lo 
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.o 
/home/test/다운로드/nautilus-rpm-0.1/src/rpmdb.conf 
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.c 
/home/designmade/다운로드/nautilus-rpm-0.1/src/rpmdb.keys.in 

我不明白爲什麼它不起作用。

回答

1

您需要一個包含librpmdb.so的開發包。

+0

那是哪個開發包? –

+0

看起來這個API已經過時了,因爲它最後出現在Fedora 9 ['rpm-libs'](http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/librpmdb-4.4。所以) –