On Jan 19, 2009, at 07:47 AM, Han Holl wrote:

I want to install a gem, but it doesn't build on my platform.
I fix the C-source, and submit a patch to the owner.

But I want to go on, and not wait for the maintainer to apply my patch.
How can I rebuild the gem, and install.

I tried to untar the original gem, untar data.tar.gz, drop in my .c file, and tar it up again, but this doesn't work. I get an error message the some directory already exists. I rm -rf'ed everything in the gem directory tree
that belonged to this gem, but still the same error.

Is there a way to do this ?

$ gem install thegem # => it fails and gives you a path to gem_make.out
$ cd /to/the/path
$ patch < /path/to/your/patch
$ make # or whatever is appropriate for `gem spec thegem | grep -A2 extension`
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to