./configure:从源代码构建 Inkscape 时未找到 bdw-gc

./configure:从源代码构建 Inkscape 时未找到 bdw-gc

对于出现的这个问题,常用的调查方法是什么./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-devellibgc-dev包。

在 openSUSE 中:

zypper install gc-devel

在 Fedora 中:

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++
...

相关内容