error while loading shared libraries: libecap.so.0: No such file or directory

Asked by Nick Parker on 2009-07-27

Im having an issue that im not sure is libecap or squid related. I'm trying to install squid 3.1.0.12 on ubuntu 8.04 server. The configuration flags are:

sudo ./configure --prefix=/usr --enable-ssl --disable-ipv6 --localstatedir=/var --libexecdir=${prefix}/lib/squid --srcdir=. --datadir=${prefix}/share/squid --sysconfdir=/etc/squid --enable-ecap --enable-icap-client

I installed libecap 0.0.2 before squid.

Everything compiled correctly on both installs, but now im getting

squid: error while loading shared libraries: libecap.so.0: cannot open shared object file: No such file or directory

Whenever i run squid. Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Nick Parker
Solved:
2009-07-27
Last query:
2009-07-27
Last reply:
2009-07-27
Alex Rousskov (rousskov) said : #1

What does "ldd squid" say, where "squid" is the location of your Squid executable? For example,

<pre>
$ ldd squid
        linux-gate.so.1 => (0xb8079000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb8026000)
        libecap.so.0 => /usr/local/lib/libecap.so.0 (0xb801d000)
        ...
</pre>

If it does not show the path to libecap.so.0, then you may need to tell your dynamic loader where libecap.so.0 is. Try "man ld.so".

Nick Parker (nick-uship) said : #2

Great - thank you. Steps to fix:

sudo nano /etc/ld.so.conf

Add /usr/local/lib

sudo ldconfig

Thanks,
Nick