我从官网下载了Gforth/Applications
0.7.0,把文件夹放在里面,把它的别名放在/usr/local/bin
. 编译后使用:
$ sudo -s
$ ./configure
$ make
制作时,得到结果:
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.
我不知道这里有什么问题。我尝试 了 Stack Overflow 问题的答案Compiling Gforth without Gforth? ,但它也没有工作。我在MacBook Air上运行 Mac OS X v10.8 (Mountain Lion) 。