当我尝试编译 Gforth 0.7.0 时,出现以下错误:
$ ./configure
$ make
#compiling…
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gforth-ll] Error 1
./preforth -p ".:~+:." -e 's" mach16b.fs"' ./kernel/main.fs -e "save-cross kernl16b.fi- /usr/local/bin/gforth-0.7.0 bye"
You need to configure with a gforth in $PATH to build this part
make[3]: *** [kernl16b.fi-] Error 1
make[2]: *** [gforth-ll] Error 2
make[1]: *** [optgforth] Error 2
make: *** [gforth] Error 2
[22:16:01] gforth-0.7.0$
通过端口安装时出现同样的错误。我想问题是 Gforth 是用 Forth 编写的,至少部分是用 Forth 编写的,那么如何在不先安装它的情况下安装它(或者问题是别的)?
我正在使用 Mac OS 10.6。