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

Lothar Paltins lkpgcd at mailbox.org
Fri Oct 25 11:19:14 EDT 2019


Am 25.10.19 um 15:11 schrieb Derek Atkins:

> How did you configure gnucash during the build in order to install it to
> /opt/gnucash?  You need to tell gnucash where it is being installed when
> you build it, so it will look in the right place for its files.

cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash ..
make
make install

That's the "official" way to set the install directory. But cmake tries 
to be smart and tries to follow the file hierarchy standard if the path 
starts with /opt. According to the standard, optional packages should be 
installed to /opt/<name>, editable config files to /etc/opt/<name> and 
log files should go to /var/opt/<name>. But cmake (or the cmake 
configuration of gnucash) isn't smart enough, because it doesn't work 
correctly.

Am 25.10.19 um 15:13 schrieb Derek Atkins:
> If "prefix" is /opt/gnucash, then shouldn't the file live in
> /opt/gnucash/etc/environment?

No, see above. It doesn't matter for a single workstation, but in a 
multi-workstation configuration, the splitting of the directories does 
make sense. The directory /opt will then contain only invariable files 
and it could be mounted read only from a central server. All variable 
files will be in the local directories /etc/opt and /var/opt on each 
workstation.

Lothar


More information about the gnucash-devel mailing list