[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trouble using Gforth, having installed via homebrew on OSX
From: |
Alex Byrne |
Subject: |
Trouble using Gforth, having installed via homebrew on OSX |
Date: |
Mon, 25 Jul 2022 15:30:11 +0100 |
I'm new to forth, and in fact low level programming entirely. I think the
language is neat, but using it is so far another matter! I've just
installed (ostensibly successfully) gforth 0.7.3 on a macOS 12.4 montery
apple m1 pro via homebrew. Unfortunately, I think the path is misconfigured
and I'm struggling to rectify it.
% gforth
gives
gforth: cannot open image file gforth.fi in path
.:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.3:/usr/local/share/gforth/0.7.3
for reading
It can't find the image. And echo $GFORTHPATH returns empty. So, I tried
instead:
% GFORTHPATH=/opt/homebrew/Cellar/gforth/0.7.3_3/lib/gforth/0.7.3
% exporth GFORTHPATH
% gforth
Which works, but isn't persistent across terminal instances.
I read that fixpath.fs might be relevant, and so tried to use that, but
% gforth fixpath.fs $GFORTHPATH gforth
Fixing gforth with
/opt/homebrew/Cellar/gforth/0.7.3_3/lib/gforth/0.7.3:/opt/homebrew/Cellar/gforth/0.7.3_3/share/gforth/0.7.3:/opt/homebrew/Cellar/gforth/0.7.3_3/share/gforth/site-forth
in file included from *OS command line*:-1
/opt/homebrew/Cellar/gforth/0.7.3_3/share/gforth/0.7.3/fixpath.fs:49:
No such file or directory
2 arg >>>fix-exe<<<
Backtrace:
$129842DE0 throw
even though that file does exist at that path. Not sure where to go from
here!
Thanks
- Trouble using Gforth, having installed via homebrew on OSX,
Alex Byrne <=