調查期間出現的這個問題的常用方法是什麼./configure
?
configure: error: Package requirements (bdw-gc >= 7.1
cairo >= 1.10
cairomm-1.0 >= 1.9.8
glib-2.0 >= 2.28
glibmm-2.4 >= 2.28
giomm-2.4
gsl
gthread-2.0 >= 2.0
libpng >= 1.2
libxml-2.0 >= 2.6.11
libxslt >= 1.0.15
pango >= 1.24
pangoft2 >= 1.24
sigc++-2.0 >= 2.0.12
) were not met:
No package 'bdw-gc' found
我剛剛下載並bdw-gc
構建https://github.com/ivmai/bdwgc/
我想問題可能是因為bdw-gc
安裝到/usr/local/bin
,而不是/usr/local
我試過這個:
LDFLAGS=-L/usr/local/lib LIBS=-lgc ./configure
答案1
bdw-gc
指的是用於 C 和 C++ 的 Boehm-Demers-Weiser 垃圾收集器。您需要安裝gc-devel
或libgc-dev
軟體包。
在 openSUSE 中:
zypper install gc-devel
在費多拉中:
yum install gc-devel
在Ubuntu中:
apt-get install libgc-dev
以下是更多資訊:
$ yum search boehm
======================= Description & URL Matched: boehm =======================
gc.x86_64 : A garbage collector for C and C++
gc.i686 : A garbage collector for C and C++
============================== URL Matched: boehm ==============================
gc-devel.i686 : Libraries and header files for gc development
gc-devel.x86_64 : Libraries and header files for gc development
...
和:
$ apt-cache search boehm
libgc-dev - conservative garbage collector for C (development)
libgc1c2 - conservative garbage collector for C and C++
...