Kubuntu 10.04 and library path problems
Paul Abrahams
abrahams at acm.org
Sat Dec 25 12:27:03 EST 2010
On Saturday, December 25, 2010 11:13:42 am you wrote:
> On Sat, December 25, 2010 11:04 am, Paul Abrahams wrote:
> > Rather that go back to the builds, I wanted to use the released version
> > of 2.4. So based on information in various posts, I unpacked that
> > version and
> > did this from the directory where it was installed:
> >
> > make distclean
> > ./configure --prefix /opt/gnucash
> > make all install
> >
> > I then ran gnucash and got:
> >
> > pwa at Asus-laptop:~/Downloads/bsdiff/gnucash-2.4.0$ gnucash
> > gnucash: error while loading shared libraries: libgnc-qof.so.1: cannot
> > open
> > shared object file: No such file or directory
> >
> > So I then tried this:
> >
> > LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH gnucash
> >
> > and this time gnucash worked. But that's hardly a solution for the long
> > term.
> > Is there a cleaner fix? Note that I already tried modifying the
> > configuration
> > as suggested by Geert Janssens a couple of days ago.
>
> Do you have 2.2.9 still installed via dpkg?
The story there is a little complicated. I tried to install 2.4 without
uninstalling 2.2.9. Then, realizing my mistake, I uninstalled gnucash (2.2.9)
using Synaptic. I followed up with a purge using dpkg, which removed the
configuration files.
> Did you build other
> dependencies by hand instead of using the Ubuntu packages?
No, but I did use sudo apt-get build-dep gnucash to deal with dependencies.
That got me past a bunch of config errors. I didn't add any other packages to
deal with dependencies.
> What do you
> get from:
>
> find / -name libgnc-qof.so.1
/opt/gnucash/lib/libgnc-qof.so.1
> Also, what do you get from:
>
> ldd /opt/gnucash/lib/libgnc-qof.so.1
linux-vdso.so.1 => (0x00007fff64187000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
(0x00007fb16da2f000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0
(0x00007fb16d82a000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
(0x00007fb16d625000)
librt.so.1 => /lib/librt.so.1 (0x00007fb16d41d000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00007fb16d13b000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fb16cf1d000)
libm.so.6 => /lib/libm.so.6 (0x00007fb16cc9a000)
libc.so.6 => /lib/libc.so.6 (0x00007fb16c917000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00007fb16c6e5000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fb16c4e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb16ded9000)
> which gnucash
pwa at Asus-laptop:~/Downloads/bsdiff/gnucash-2.4.0$ ls -l $(which gnucash)
-rwxr-xr-x 1 root root 46439 2010-12-25 00:07 /usr/local/bin/gnucash
I hope this helps.
More information about the gnucash-user
mailing list