[Xapian-tickets] [Xapian] #662: xapian-bindings for php / dl(): Unable to load dynamic library
Xapian
nobody at xapian.org
Wed Nov 5 04:35:35 GMT 2014
#662: xapian-bindings for php / dl(): Unable to load dynamic library
-----------------------------------+---------------------------
Reporter: Sadrak | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Xapian-bindings (PHP) | Version: 1.2.19
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Linux
-----------------------------------+---------------------------
\
\
\
\
\
\
Comment (by olly):
The issue isn't that you need to run {{{ldconfig}}} after {{{make
install}}}, but that you need to run it after manually changing what
libraries are installed where, as you did when you deleted
{{{/usr/lib/libxapian.so*}}} earlier. In fact, {{{make install}}} runs
{{{ldconfig}}} for you, but restricted to the directory which the new
library gets installed in - that's {{{/usr/local/lib}}} in this case, so
it wouldn't fix up the cache for your manual changes in {{{/usr/lib}}}.
The advice you paste comes from libtool rather than our own code, so it's
not easy for us to change, but it looks fine to me as-is. Since xapian-
bindings builds with libtool, it's not really relevant for this situation
anyway.
As for the original error, on my Debian wheezy VM, I build xapian-core
1.2.19 from source as a non-root user, then {{{make install}}} as root,
and then build xapian-bindings 1.2.19 from source, configuring, building
and running the tests like so:
{{{
./configure --with-php XAPIAN_CONFIG=/usr/local/bin/xapian-config
make
make check
}}}
Then I don't see the failure you describe - the tests pass. Perhaps I'm
missing some step, or perhaps in your experimenting you got things set up
oddly (like the situation manually running ldconfig fixed).
If you're able to supply a series of steps to reproduce the failure, I'm
happy to investigate further.
\
\
\
--
Ticket URL: <http://trac.xapian.org/ticket/662#comment:5>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list