[GNC-dev] Gnucash built from git doesn't start

Lothar Paltins lkpgcd at mailbox.org
Sun Oct 27 06:19:27 EDT 2019

Am 25.10.19 um 21:27 schrieb Geert Janssens:
> Gnucash historically was using the autotools build system. As far as I know
> that system did put the config files in /opt/gnucash/etc/gnucash and not in /
> etc/opt/gnucash(/gnucash)

Yes, if you run "configure --prefix=/opt/gnucash". There's no automagic 
splitting of the subdirectories depending on the path. But you could 
easily split the installation paths if you want to follow the FHS by 
adding "--sysconfdir=/etc/opt/gnucash --localstatedir=/var/opt/gnucash" 
and maybe other options.

> Although the gnucash project since has migrated to exclusively use cmake, it
> may very well be it still expects the files to be in /opt/gnucash/etc/gnucash.
> Does it work if you copy the files in that subdirectory ?

No, it doesn't.

> Not that it matters that much, we should eventually fix it to work with the
> paths as prescribed in the fhs.

I've seen, that the FHS splitting isn't done by cmake itself, it's done 
because gnucash includes the GNUInstallDirs module. But as far as I see, 
the directories can be overwritten by the user by setting the 
appropriate variables. Therefore gnucash shouldn't assume fixed paths, 
instead it should use the actual installation paths chosen by the user 
and by cmake.


More information about the gnucash-devel mailing list