[Ironruby-core] Error installing json with igem
suppakilla at gmail.com
Sun Jul 25 04:18:28 EDT 2010
On Sat, Jul 24, 2010 at 14:34, Aaron Clauson <lists at ruby-forum.com> wrote:
> I get an error stating "ERROR: Failed to build gem native extension."
As Shay has already pointed out, you get this error when the gem that
you are trying to install depends on some native code.
> Is there something I can do to workaround the problem?
You can install json_pure which is the pure-Ruby variant of the C
extension and works pretty well with IronRuby (it's just slower...
well, way slower when parsing big json strings).
Alternatively you can try my port  to IronRuby of the json/ext
library. The port is pretty much complete and it is compatible with
json 1.1. It passes the whole test suite except for one assertion
defined in test_json_unicode.rb . Right now I'm in the middle of a
complete revamp of the source code after a few months of hiatus
(fixing sloppy code here and there and getting rid of awful nasty
hacks needed to work around a few bugs in IronRuby pre-1.0), then I
will bump the compatibility to json 1.4.
More information about the Ironruby-core