preprocessing ruby gems in ruby1.9

Discussion in 'Ruby' started by botp, Apr 30, 2009.

  1. botp

    botp Guest

    i notice that almost all pre 1.9 gems wont compile in ruby1.9 because
    of the ff error (or something like it),

    : error: =91struct RArray=92 has no member named =91len=92
    : error: =91struct RArray=92 has no member named =91ptr=92
    ....

    the typical solution i do is outlined here
    http://frozenplague.net/2009/01/ruby-191-rubygems-rails/#gem_solution,
    and it works 100% on my case (glad hasn't failed yet).

    can this solution be handled by the rubygem preprocessor? maybe,
    signal a flag of some sort, or do a best-effort processing of some
    sort ?...

    kind regards -botp
     
    botp, Apr 30, 2009
    #1
    1. Advertising

  2. botp

    Eric Hodel Guest

    On Apr 29, 2009, at 17:03, botp wrote:

    > i notice that almost all pre 1.9 gems wont compile in ruby1.9 because
    > of the ff error (or something like it),
    >
    > : error: =91struct RArray=92 has no member named =91len=92
    > : error: =91struct RArray=92 has no member named =91ptr=92
    > ....
    >
    > the typical solution i do is outlined here
    > http://frozenplague.net/2009/01/ruby-191-rubygems-rails/#gem_solution,
    > and it works 100% on my case (glad hasn't failed yet).
    >
    > can this solution be handled by the rubygem preprocessor? maybe,
    > signal a flag of some sort, or do a best-effort processing of some
    > sort ?...


    You could probably write a RubyGems plugin to do it using the =20
    pre_install hook.=
     
    Eric Hodel, Apr 30, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Evan B.
    Replies:
    0
    Views:
    114
    Evan B.
    Oct 27, 2008
  2. Iñaki Baz Castillo
    Replies:
    14
    Views:
    267
    Iñaki Baz Castillo
    Apr 5, 2009
  3. Philip Ross
    Replies:
    3
    Views:
    184
    Phil Ross
    Apr 16, 2009
  4. Abhishek Singh

    Problem in ruby1.9 gems

    Abhishek Singh, Sep 2, 2009, in forum: Ruby
    Replies:
    3
    Views:
    118
    Axel Etzold
    Sep 2, 2009
  5. Iñaki Baz Castillo
    Replies:
    7
    Views:
    705
    Rick DeNatale
    Dec 3, 2009
Loading...

Share This Page