[GNC] 4.12 ERROR: In procedure scm-error: no code for module (gnucash utilities)

Derek Atkins derek at ihtfp.com
Tue Oct 25 17:10:32 EDT 2022


Hi,

It looks like you still have a version of GnuCash installed into /usr/local

That is going to take precedence, and interact with your compiled version.

You need to remove all remnants for GnuCash from /usr/local.

-derek

On Tue, October 25, 2022 5:02 pm, osbert wrote:
> Hi,
>
> I have now also followed the advice given by John and Derek:
>    cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash and
>    sudo make install
>
> Gnucash 4.12 is now running :)  Thanks for your feedback :)
>
> However the terminal prints out these error messages:
> # --- std-out ---------------------------------------------------
> $ gnucash
> This is a development version. It may or may not work.
> Report bugs and other problems to gnucash-devel at gnucash.org
> You can also lookup and file bug reports at https://bugs.gnucash.org
> To find the last stable version, please refer to https://www.gnucash.org/
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;;       or pass the --no-auto-compile argument to disable.
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/utilities.scm
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/core-utils.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/core-utils.scm
> ;;; compiled
> /home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/core-utils.scm.go
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling /usr/local/share/guile/site/2.2/gnucash/engine.scm
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/business-core.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling
> /usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm
> ;;; compiled
> /home/osbert/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/share/guile/site/2.2/gnucash/engine/business-core.scm.go
> ;;; WARNING: loading compiled file
> /usr/local/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine/gnc-numeric.go
> failed:
> ;;; ERROR: In procedure make_objcode_from_file: bad header on object
> file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
> ;;; compiling
> /usr/local/share/guile/site/2.2/gnucash/engine/gnc-numeric.scm
> ...
>
> Is that something that can be avoided/corrected - or just ignored (I did
> remove the guile folder inside the .cache directory)?
>
> Thanks & regards,
> Osbert
>
>
> On 25.10.22 12:19, John Ralls wrote:
>> Because
>> >/-- Installing: /opt/bin/gnucash /
>> You told CMake -DCMAKE_INSTALL_PREFIX=/opt. If you want GnuCash
>> installed in /opt/gnucash then you have to tell cmake
>> -DCMAKE_INSTALL_PREFIX=/opt/gnucash.
>>
>> Regards,
>> John Ralls
>>
>
> On 25.10.22 14:02, Derek Atkins wrote:
>> Hi,
>>
>> I do not see a "make install" in here.
>>
>> You cannot run GnuCash from the build tree, you need to install it to
>> run it.
>>
>> -derek
>>
> _______________________________________________
> 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
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list