ld找不到已安装的库

时间:2014-01-22 21:20:11

标签: linux

我正在尝试安装spice-gkt,并且在某些时候我达到了这个死胡同。

我的设置: 采用ARM架构的PC; Debian 7正在运行(修改版)

错误:

Libraries have been installed in:
/usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/spice-controller'
/usr/bin/install -c -m 644 spice-controller.h '/usr/local/include/spice-controller'
make[6]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk/controller'
make[5]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk/controller'
make[4]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk/controller'
make[4]: Entering directory `/home/cubie/Desktop/spice-gtk-0.22/gtk'
CCLD libspice-client-glib-2.0.la
/usr/bin/ld: cannot find -lcelt
collect2: ld returned 1 exit status
make[4]: *** [libspice-client-glib-2.0.la] Error 1
make[4]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22/gtk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/cubie/Desktop/spice-gtk-0.22'
make: *** [install] Error 2

Spice依赖于libcelt051,已安装......所以,真的不知道是什么原因引起的。

1 个答案:

答案 0 :(得分:0)

/usr/local/bin通常不用于库。

您需要正确安装libcelt。通过从发行版软件包管理器安装或下载所需版本,然后使用通常的./configure && make && sudo make install进行编译和安装。