2.7.8 fails to find environment file

John Ralls jralls at ceridwen.us
Sun Apr 1 23:16:38 EDT 2018



> On Apr 1, 2018, at 6:03 PM, lj <lj308 at pobox.com> wrote:
> 
> Using: gnucash-2.7.8(unstable) on 32-bit Slackware Linux 14.2
> 
> I built gnucash-2.7.8 (unstable) to be installed at /opt/gnucash. I used
> a cmake line that included:
>  -D CMAKE_INSTALL_PREFIX=/opt/gnucash
> 
> After build and install, gnucash would not start. First error was unable to
> find schemas, which I worked around by setting XDG_DATA_DIRS. Then it
> failed on unable to find modules.
> 
> It turned out that "make install" created the environment file here:
>    (1) /etc/opt/gnucash/gnucash/environment
> But using strace I saw Gnucash was looking for it here:
>    (2) /opt/gnucash/etc/gnucash/environment
> 
> I copy the file from (1) to (2) and then it works.
> 
> (Should I write this up at bugzilla.gnome.org ?)

Sure.

We should be be using CMAKE_INSTALL_FULL_SYSCONFDIR to set the path so that it always works no matter what cmake does with it, and cmake’s unique understanding of the gnu coding standard leads it to do some strange things with sysconfdir.

Regards,
John Ralls


More information about the gnucash-user mailing list