Re: [Gems-users] Problem when compiling ruby


Date: Wed, 5 Jan 2011 14:04:49 +0530
From: Kirtika Ruchandani <kirtibr@xxxxxxxxx>
Subject: Re: [Gems-users] Problem when compiling ruby
On Wed, Jan 5, 2011 at 1:58 PM, Tianyi Wang <tiawang@xxxxxxx> wrote:
> Hi, guys
>
> I know this is old question, I have gone through most of the threads but still can't figure it out.
>
> I got problem when compiling ruby.
>
> No rule to make target 'simics/api.h', needed by 'x86-linux/generated/MOSI_SMP_bcast/obj/attrparse.o'. Stop.
>

NOTE: This could be the WRONG way to go about things, but it worked
for me. I have faced this same problem in building several projects
before and I read at one place that its just the make tool being
stupid. So introducing an auxilliary *empty* rule in the Makefile
works.
I had the same problem and when I did an ls, the headers were indeed
there at the location where make was trying to find it.
I added these two lines to the Makefile -

*.h:
     ;
(the second line is a tab followed by a semi-colon to indicate an empty rule).

I guess someone will get back with the right solution, but meanwhile
you could check if it allows you to build and run gems. It worked for
me.

Cheers,
Kirtika

--
Kirtika Ruchandani
Fourth Year Dual-degree Student,
Dept. of Comp. Sci & Engg,
IIT Madras
[← Prev in Thread] Current Thread [Next in Thread→]