From: Daniel Berger Date: 2007-10-18T05:17:02+09:00 Subject: Re: rocaml 0.6.0: fast, easy Ruby extensions in Objective Caml On Oct 17, 2:04 pm, Mauricio Fernandez wrote: > On Thu, Oct 18, 2007 at 04:10:55AM +0900, 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. > > > What should I do? > > I see you solved this by installing camlp5, but I'd still like to fix the > camlp* selection code. What does camlp4 -v return for you? > > $ camlp4 -v > Camlp4 version 3.10.0 Same for me. > camlp4 in 3.10.0 is incompatible with 3.09.2's (OTOH camlp5 *is* backwards > compatible). > > The code that detects camlp5 is > > have_camlp5 = ! `camlp5 -v 2>&1`["version"].empty? > > For some reason it didn't work properly but I can't see why. Any idea? If camlp5 isn't found, you'll end up with nil. Changing 'empty?' to 'nil?' should do the trick, although people will still see a "sh: camlp5: not found" echoed to stdout, which may be confusing. Any ideas on the make failure? Regards, Dan