在Mac上编译Gforth的问题

时间:2013-03-05 04:05:43

标签: forth gforth

我从官方网站下载了Gforth 0.7.0,将该文件夹放在/Applications中,并将其别名放在/usr/local/bin中。 编译后使用:

$ sudo -s
$ ./configure
$ make

making时,它会得到结果:

cd engine && make gforth-ditc-noll OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o
cd .. && CONFIG_FILES=stamp-h CONFIG_HEADERS=engine/config.h ./config.status
config.status: creating stamp-h
config.status: creating engine/config.h
config.status: engine/config.h is unchanged
config.status: executing stamp-h commands
echo timestamp > stamp-h
cp -p engine/gforth-ditc-noll gforth-ditc
true
cd engine && make gforth-itc-noll OPT=-noll OPTDEFINES= OPTOBJECTS=dblsub.o
make[1]: `gforth-itc-noll' is up to date.
cp -p engine/gforth-itc-noll gforth-itc
true
./preforth -p ".:~+:." -e 's" mach16b.fs"' ./kernel/main.fs -e "save-cross kernl16b.fi- /usr/local/bin/gforth-0.7.0 bye"


Segmentation fault: 11.
make: *** [kernl16b.fi-] Error 139
bash-3.2# ./preforth


Segmentation fault: 11.

我不知道这里有什么问题。我试过了the answer to Stack Overflow question Compiling Gforth without Gforth?,但它也没用。我正在MacBook Air上运行Mac OS X v10.8(Mountain Lion)。

1 个答案:

答案 0 :(得分:2)

没关系,我解决了。我只是用Homebrew做了一个

brew install gforth

它有效!它吓坏了!经过两天的努力,我无法相信我没有想到......