ocaml (Objective Caml)

[ 戻る | トップページに戻る ]

概要

ocaml (Objective Caml) とは、ML 言語実装のひとつ。

URL

http://caml.inria.fr/ (Official Site)

インストール環境

Plamo Linux 2.0 (Kernel 2.2.17 + glibc 2.1.2)

必要なもの

Tck/Tk 8.0 日本語版

バージョン

3.00

インストール手順

$ tar xvfz ocaml-3.00.tar.gz 
$ cd ocaml-3.00
$ ./configure -with-pthread
(snip)
tcl.h version 8.0 found.
tk.h found.
Tcl library not found.
Configuration failed, LablTk will not be built.

** Configuration summary **

Directories where Objective Caml will be installed:
        binaries.................. /usr/local/bin
        standard library.......... /usr/local/lib/ocaml
        manual pages.............. /usr/local/man/man1 (with extension .1)
Configuration for the bytecode compiler:
        C compiler used........... gcc
        options for compiling..... -fno-defer-pop -Wall -Wno-unused -D_REENTRANT
        options for linking.......  -lcurses -lm
Configuration for the native-code compiler:
        hardware architecture..... i386
        OS variant................ linux_elf
        C compiler used........... gcc
        options for compiling..... -Wall -Wno-unused -D_REENTRANT
        options for linking.......  -lcurses -lm
        assembler ................ $(AS) 
        preprocessed assembler ... gcc -c -DSYS_$(SYSTEM)
        profiling with gprof ..... supported
Source-level replay debugger: supported
Configuration for the external libraries:
        libraries supported ...... unix str num dynlink bigarray systhreads graph
The "num" library:
        target architecture ...... x86
The "graph" library:
        options for compiling .... -I/usr/X11R6/include
        options for linking ...... -ccopt -L/usr/X11R6/lib -cclib -lX11
The "labltk" library: configuration failed

むう。tk ライブラリが見付からない? -tklibs オプションで指定すると OK 。
$ ./configure -with-pthread -tklibs "-L/usr/lib -ltk8.0jp -ltcl8.0jp"
$ make world
$ make bootstrap
$ make opt
$ make ocamlc.opt
$ make ocamlopt.opt
$ su
# umask 022
# make install
# make clean
# cd emacs
# make install
# exit

[ 戻る | トップページに戻る ]