Hatena::ブログ(Diary)

wrap your troubles in dreams このページをアンテナに追加 RSSフィード

2009-10-24

snow leopard(OS X 10.6.1)のmacports1.8.1でomakeがインストールできなかったのでがんばったまとめ。

ocaml 3.11.1

omake 0.9.8.5-3

sudo port install omake

とすると

[takashyx@macbook] % sudo port install omake
Password:
--->  Computing dependencies for omake
--->  Fetching ocaml
--->  Attempting to fetch ocaml-3.11.1.tar.bz2 from http://distfiles.macports.org/ocaml
--->  Verifying checksum(s) for ocaml
--->  Extracting ocaml
--->  Applying patches to ocaml
--->  Configuring ocaml
--->  Building ocaml
^[--->  Installing ocaml @3.11.1_2t
--->  Activating ocaml @3.11.1_2
--->  Cleaning ocaml
--->  Fetching omake
--->  Attempting to fetch omake-0.9.8.5-3.tar.gz from http://distfiles.macports.org/omake
--->  Verifying checksum(s) for omake
--->  Extracting omake
--->  Applying patches to omake
--->  Configuring omake
--->  Building omake
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_omake/work/omake-0.9.8.5" && /usr/bin/make -j2 all " returned error 2
Command output: --- Checking if ocamldep understands -modules... (yes)
--- Checking for hevea... (FAILED - no hevea found)
--- Checking for date... (found /bin/date)
*** omake: finished reading OMakefiles (3.37 sec)
*** omake: warning: stdout is not a tty, disabling the progress bar
   (use --progress to override).
*** omake: saved .omakedb
*** omake: saved .omakedb
- build src/clib clib.a
+ ar cq clib.a lm_heap.o lm_channel.o lm_printf.o lm_ctype.o lm_uname_ext.o lm_unix_cutil.o lm_compat_win32.o readline.o omake_shell_sys.o fam_win32.o fam_kqueue.o fam_inotify.o lm_notify.o lm_termsize.o lm_terminfo.o lm_fs_case_sensitive.o
ranlib: file: clib.a(fam_win32.o) has no symbols
ranlib: file: clib.a(fam_inotify.o) has no symbols
- build src/clib clib.a
+ ranlib clib.a
/usr/bin/ranlib: file: clib.a(fam_win32.o) has no symbols
/usr/bin/ranlib: file: clib.a(fam_inotify.o) has no symbols
- build src/main omake.opt
+ ocamlopt.opt -warn-error A -w Aez -I . -I ../libmojave -I ../util -I ../magic -I ../ast -I ../ir -I ../env -I ../exec -I ../eval -I ../shell -I ../build -I ../builtin -o omake.opt unix.cmxa ../libmojave/lm.cmxa ../util/util.cmxa ../magic/magic.cmxa ../ast/ast.cmxa ../ir/ir.cmxa ../env/env.cmxa ../exec/exec.cmxa ../eval/eval.cmxa ../shell/shell.cmxa ../build/build.cmxa ../builtin/builtin.cmxa omake_shell.cmx omake_main.cmx ../clib/clib.a -cclib -lncurses -cclib -lreadline
Undefined symbols:
  "_caml_sync", referenced from:
      _camlOmake_exec__28 in exec.a(omake_exec.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking
*** omake: 1154/1159 targets are up to date
*** omake: failed (40.85 sec, 229/229 scans, 337/496 rules, 775/2155 digests)
*** omake: targets were not rebuilt because of errors:
   src/main/omake.opt
make: *** [all] Error 2


インストール出来ない。

http://ocaml-nagoya.g.hatena.ne.jp/mzp/20090705/omake

等を参考に、

sudo port patch omake

これでソースダウンロードされるので

 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_omake/work/omake-0.9.8.5/src/exec/omake_exec.ml

編集

(* *)

でsyncをコメントアウトする

(* external sync : unit -> unit = "caml_sync" *)

その後

sudo port install omake

で無事インストール

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証