gpt4 book ai didi

linux - ld 找不到已安装的库

转载 作者:太空宇宙 更新时间:2023-11-04 04:05:33 24 4
gpt4 key购买 nike

我正在尝试安装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...所以,真的不知道是什么原因导致的。

最佳答案

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

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

关于linux - ld 找不到已安装的库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21294205/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com