Slackware Linux:Glib 找不到 libffi.so.6。它试图查找哪里?

Slackware Linux:Glib 找不到 libffi.so.6。它试图查找哪里?

我已经安装了 libffi,它位于 /usr/local/lib,但 glib make 进程找不到它

/home/mathmagi/src/glib-2.32.4/gio/.libs/lt-glib-compile-resources: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
/home/mathmagi/src/glib-2.32.4/gio/.libs/lt-glib-compile-resources: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
/home/mathmagi/src/glib-2.32.4/gio/.libs/lt-glib-compile-resources: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
/home/mathmagi/src/glib-2.32.4/gio/.libs/lt-glib-compile-resources: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
make[4]: Entering directory `/home/mathmagi/src/glib-2.32.4/gio/tests'
  GEN    gdbus-test-codegen-generated.c
  GEN    test_resources.c
/home/mathmagi/src/glib-2.32.4/gio/.libs/lt-glib-compile-resources: error while loading shared libraries: libffi.so.6: cannot open shared object file: No such file or directory
make[4]: *** [test_resources.c] Error 127
make[4]: Leaving directory `/home/mathmagi/src/glib-2.32.4/gio/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mathmagi/src/glib-2.32.4/gio'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mathmagi/src/glib-2.32.4/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mathmagi/src/glib-2.32.4'
make: *** [all] Error 2

它肯定在 /usr/local/lib 中!

bash-4.1# updatedb
bash-4.1# locate libffi.so.6
/usr/local/lib/libffi.so.6
/usr/local/lib/libffi.so.6.0.0
/home/mathmagi/src/libffi-3.0.11/x86_64-unknown-linux-gnu/.libs/libffi.so.6
/home/mathmagi/src/libffi-3.0.11/x86_64-unknown-linux-gnu/.libs/libffi.so.6.0.0

我已经尝试过

LDFLAGS=-L/usr/local/lib ./configure

不起作用。

我如何找到 glib 正在寻找的位置并进行更改?

答案1

LD_LIBRARY_PATH=/usr/local/lib 

在 Debian Squeeze 上为我工作。

相关内容