Cannot open shared object file while starting Gnucash

Bug #292648 reported by rso
6
Affects Status Importance Assigned to Milestone
gnucash (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnucash

With the update from Ubuntu 8.04 to 8.10 there was also Gnucash being updated from 2.2.4 to 2.2.6. With version 2.2.4 I never had problems starting Gnucash. After the update to Ubuntu 8.10 and Gnucash 2.2.6 I can't start Gnucash anymore and I get an error message:
"gnucash-bin: error while loading shared libraries: libgnc-qof.so.1: cannot open shared object file: No such file or directory"

The stated file "libgnc-qof.so.1" is installed. Reinstalling didn't help.

Revision history for this message
rso (reto-schoch) wrote :
description: updated
Revision history for this message
Saivann Carignan (oxmosys) wrote :

Thanks for your bug report. Can you give us the output of the following commands in a terminal?

dpkg -S libgnc-qof
sudo ldconfig

Can you also test if gnucash works after this?

Changed in gnucash:
status: New → Incomplete
Revision history for this message
rso (reto-schoch) wrote :

After I ran the stated commands I still have the same error message starting up Gnucash.

Revision history for this message
Saivann Carignan (oxmosys) wrote :

Very hard here to see where is the problem since the libraries are there, ldconfig does not seem to fail and the package seem correctly installed. I can't see any other exemple of this problem in Google, so that's unusual. I'm pretty sure that the problem is not gnucash itself but something broken in the library system of your installation (or something broke normal permissions of files). However, I don't have necessary knowledge to help you search more on this. I can only tell you that backuping your home directory and re-installing ubuntu would be a definitive solution to the problem since no other users have this problem.

Revision history for this message
Saivann Carignan (oxmosys) wrote :

(However if you find more information about the problem and that it's not caused by accidental damages on your ubuntu installation, this would be very interesting to know).

Revision history for this message
andi5 (andi5) wrote :

You could try to run gnucash with strace, i.e. edit the last line of /usr/bin/gnucash and use "strace -o /tmp/myfile gnucash-bin...". Maybe /tmp/myfile contains some valuable information then. Just an idea before you reinstall :-)

Revision history for this message
rso (reto-schoch) wrote :

Saïvann was right, it's not Gnucash, but my installation. If I don't start Gnucash with the command gnucash but with /usr/bin/gnucash the application starts up just fine. Though $PATH lists /usr/bin, I have to apply this modification to the startup-command. It seems to be something wrong with the mapping.
Thanks to the hint of andi5 I found this out.
So thanks for your help ... and sorry for bothering with a non-bug - but the indication of the error-message seemed doubtless.

Revision history for this message
Saivann Carignan (oxmosys) wrote :

Thank you very much for keeping your bug report up to date. While it was not a genuine bug this time, it could have been one so don't hesitate to post new bug report again in the future.

Changed in gnucash:
status: Incomplete → Invalid
Revision history for this message
Ron HD (ronhd) wrote :

I just ran into this same problem in Kubuntu 16.04, in the process of migrating from PCLinuxOS. The same solution also worked for me.

The command "which gnucash" revealed that I have a script in my ~/bin that was used to work around a problem in a previous gnucash problem (IIRC, the guile library was missing). Removing this script resolved the issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.