在运行AIX6.1的服务器上编译Ocaml时,遇到以下错误:
"../Makefile.shared", line 39: make: 1254-055 Dependency line needs colon or double colon operator.
"../Makefile.shared", line 40: make: 1254-055 Dependency line needs colon or double colon operator.
"../Makefile.shared", line 41: make: 1254-055 Dependency line needs colon or double colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.
make: 1254-004 The error code from the last command is 2.这将在我执行make world时出现。这是./configure的最终输出:
Directories where Objective Caml will be installed:
binaries.................. /usr/local/bin
standard library.......... /usr/local/lib/ocaml
manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking....... -lm -lcurses -lpthread
shared libraries not supported
Configuration for the native-code compiler:
(not supported on this platform)
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray systhreads threads graph dbm
Configuration for the "num" library:
target architecture ...... generic (asm level 0)
Configuration for the "graph" library:
options for compiling .... -I/usr/X11R7/include
options for linking ...... -L/usr/X11R7/lib -lX11
The "labltk" library: not supported
** Objective Caml configuration completed successfully **发布于 2011-07-28 11:25:21
AIX不再是官方支持的平台。有一个OCaml非官方港口3.11.2。
您可以使用GNU修复您的即时生成错误。或者,您可以尝试调整makefile。otherlibs/Makefile.shared使用的是非标准构造?=;将这三行更改为使用=,即CMIFILES = $(CAMLOBJS:.cmo=.cmi)等等。您还需要更改otherlibs/num/Makefile以将CMIFILES的定义移动到include ../Makefile以下,同样地,在otherlibs/dbm/Makefile和otherlibs/str/Makefile中,CLIBNAME的定义将移动到include ../Makefile以下。
我建议在卡米尔-名单上搜索或张贴。这是与仍在AIX上使用Ocaml的其他人联系的最佳地点。
发布于 2011-07-28 11:25:52
你应该把完整的日志(在巴斯托或其他地方),而不是切割出任意的部分!还显示了make --version的输出(GNU应该工作)。
https://unix.stackexchange.com/questions/17547
复制相似问题