From: Daniel Berger Date: 2007-10-19T00:26:04+09:00 Subject: Re: rocaml 0.6.0: fast, easy Ruby extensions in Objective Caml On Oct 17, 2:21 pm, Mauricio Fernandez wrote: > On Thu, Oct 18, 2007 at 04:48:13AM +0900, Daniel Berger wrote: > > On Oct 17, 1:10 pm, Daniel Berger wrote: > > > On Oct 17, 9:31 am, Mauricio Fernandez wrote: > > > > > rocaml allows you to write Ruby extensions in Objective Caml. > [...] > > > I grabbed the latest and greatest Ocaml tarball and installed it. > > > However, when I try to install rocaml I get this: > > > > sh: camlp5: not found > > > *** extconf.rb failed *** > > > > I have no camlp5 in /usr/local/bin. I have camlp4, however, and the > > > comments in rocaml_extconf.rb suggest that either should suffice. > [...] > > I decided to grab camlp5 (http://pauillac.inria.fr/~ddr/camlp5/) and > > try again. The extconf.rb script succeeds now. However, now the make > > fails: > > > ocamldep.opt rubyOCamlUtil.ml > .depend > > sh: ocamldep.opt: not found > > *** Error code 1 > > make: Fatal error: Command failed for target `.depend' > > > I have ocamldep, but no ocamldep.opt. Where do I go from here? > > You didn't > make opt.opt > (or make world.opt) when you built ocaml-3.10.0, did you? Ok, I did make world.opt and reinstalled. Then I rebuilt camlp5 with "transitional". Now it seems I'm missing some header files: >make ocamldep.opt rubyOCamlUtil.ml > .depend cc -I. -I/usr/local/lib/ruby/1.8/sparc-solaris2.10 -I/usr/local/lib/ ruby/1.8/sparc-solaris2.10 -I. -KPIC -g -c foo_rocaml_wrapper.c "foo_rocaml_wrapper.c", line 14: cannot find include file: "foo_rocaml_wrapper.c", line 15: cannot find include file: "foo_rocaml_wrapper.c", line 16: cannot find include file: "foo_rocaml_wrapper.c", line 17: cannot find include file: "foo_rocaml_wrapper.c", line 18: cannot find include file: ... I don't think OCaml's installation instructions could be any more confusing. What option did I miss? Regards, Dan