[GNC-dev] Gnucash built from git doesn't start
John Ralls
jralls at ceridwen.us
Tue Oct 22 16:36:41 EDT 2019
> On Oct 22, 2019, at 11:50 AM, Lothar Paltins <lkpgcd at mailbox.org> wrote:
>
> Hi Derek,
>
> thanks for your reply.
>
>> First, that clone command wont bring you maint branch, it will still check
>> out master into a directory named "maint". You need a -b maint in there
>> to pull the maint branch.
>> Second, did you "make install"? GnuCash is finicky about being run from
>> the build tree.
>
> Yes, I forgot the -b before maint in my git clone command and yes, I've installed it to /opt/gnucash. But starting /opt/gnucash/bin/gnucash doesn't work. Does gnucash have problems finding modules if it's installed in a non-standard location?
Everything has trouble finding modules in non-standard locations. Use LD_LIBRARY_PATH to add those non-standard locations to the search paths for ld and dlopen.
BTW, cmake puts the global config files--the ones that normally live in <prefix>/etc--in some strange subdirectory of /etc when <prefix> starts with /opt. GnuCash doesn't know about that and won't be able to find gnucash/environment, which may or may not break things. It does other strange things if <prefix> is /usr or starts with /usr/local, so life is easier if you install in a directory under $HOME, which also saves you needing to sudo for make install.
Regards,
John Ralls
More information about the gnucash-devel
mailing list