Kubuntu 10.04 and library path problems

Geert Janssens janssens-geert at telenet.be
Sun Dec 26 05:26:04 EST 2010


On Saturday 25 December 2010, 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
> 
The way you start gnucash here will look for it in the default path. From your 
reply to Derek it looks you still have a version of GnuCash installed in 
/usr/local/bin, which uses the wrong version of libqof. Running gnucash simply 
as "gnucash" picks up this version in /usr/local, not the one you installed in 
/opt/gnucash.

With your prefix, you should start gnucash with the command:
/opt/gnucash/bin/gnucash

or prepend /opt/gnucash/bin to your PATH.

I don't think it matters if 2.2.9 is still installed or not in this case.

Geert

> 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.
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list