[GNC] Ubuntu distribution version

Derek Zehr dehrtobe at daystar.io
Tue Aug 25 12:10:30 EDT 2020


Sorry David, my previous email didn't go to the group. Here's my problem 
with a little more detail.

When I try to launch GnuCash I get this error:

:/opt/gnucash$ ./bin/gnucash

./bin/gnucash: error while loading shared libraries: libgnc-module.so: 
cannot open shared object file: No such file or directory

:/opt/gnucash$ ls lib/
gnucash                      libgnc-engine.so libgnucash-guile.so
libgnc-app-utils.so          libgnc-generic-import.so  python3.6
libgnc-backend-sql.so        libgnc-gnome.so x86_64-linux-gnu
libgnc-backend-xml-utils.so  libgnc-locale-tax.so
libgnc-core-utils.so         libgnc-module.so

Can you help me figure out why it can't find the library?

(I did have a bit of shuffling around. I built gnucash in /opt instead 
of /opt/gnucash. So I moved the folders bin, etc, share, lib, include to 
/opt/gnucash. Would that have made this problem??)

Thanks,

Derek

On 2020-08-24 10:11 p.m., David Cousens wrote:
> Derek,
>
> Have you installed all the dependencies first
> https://wiki.gnucash.org/wiki/Installing_Dependencies  If so
>
> $sudo apt-get install googletest
>
> will install the googletest framework including google mock.
>
> In most cases cmake will give you the name of the library that is missing.
> Eg the libdbi drivers. You can build GnuCash without them if you are not
> using the database backends but the default build includes them and the unit
> tests check their operation so they are now normally included in the default
> build. I need to update the wiki to reflect that..
>
> you need to do
> $sudo apt-get install libdbi1 libdbi-dev
>
> and one of the following database drivers
> $sudo apt-get install libdbd-mysql
> or
> $sudo apt-get install libdbd-pgsql
> or
> $sudo apt-get install libdbd-sqlite3.
>
> The package names given in the cmake output may differ slightly from the
> package names in the repository for a given distribution. Use
>
> $apt-cache search <string>
>
> where string is a few characters from the package name will usually help in
> identifying the correct name on your distribution . They may have 'lib'
> prefixed onto the package name and may include other build information.
>
>   In most cases for the build what need to be added to your system are the
> development header files which generally have a postfix '-dev' onto the
> package name. You will need the binary libraries at run time so I usually
> include the binaries and headers in the install command but you may find the
> binary libraries are often already installed by other programs/packages. apt
> generally reports that and just installs the headers if they aren't present.
>
> You can safely ignore the warning re Gettext 0.20 (or build it if you are
> feeling advenmturous). Once cmake completes without reporting any missing
> packages you should be ready to buiild. Ninja is becoming the preferred
> build utility rather than make. To use it you first install it with
> sudo apt-get install ninja-build
>
> and then add  a "-GNinja" flag to the cmake command.  the build and install
> commandis then
> $ninja
> and
> $sudo ninja install
>
> David Cousens
>
>
>
> -----
> David Cousens
> --
> Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> 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