[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can not work with libguile-2.0
From: |
Mark Harig |
Subject: |
Re: Can not work with libguile-2.0 |
Date: |
Thu, 17 Feb 2011 13:04:08 -0500 |
In manual section 2.3(Linking Guile into Programs)
I follow the example,run it and have something wrong:
---->cut here<----
$ gcc -o simple-guile simple-guile.c `pkg-config --cflags --libs
guile-2.0`
$ ./simple-guile
./simple-guile: error while loading shared libraries:
libguile-2.0.so.22: cannot
open shared object file: No such file or directory
---->cut here<----
Agreed. The solution to the problem above, for now, is to set the
value of the environment variable LD_LIBRARY_PATH so that the linker
can find libguile-2.0.so.22:
$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
$ guile
...
The value that you set LD_LIBRARY_PATH depends on where you installed
Guile. You should adjust the value accordingly, depending on where
libguile-2.0.so.22 is located in your file system.
This problem has been reported. See the following messages:
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00022.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00036.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00038.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00077.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00076.html
http://lists.gnu.org/archive/html/bug-guile/2011-01/msg00079.html
--