Daniel Berger
10/17/2007 8:17:00 PM
On Oct 17, 2:04 pm, Mauricio Fernandez <m...@acm.org> wrote:
> On Thu, Oct 18, 2007 at 04:10:55AM +0900, Daniel Berger wrote:
>
> > On Oct 17, 9:31 am, Mauricio Fernandez <m...@acm.org> wrote:
> > > rocaml allows you to write Ruby extensions in Objective Caml.
>
> > <snip>
>
> > 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