• Installing Mongrel with Ruby 1.9

    Installing mongrel on ruby 1.9 has caused problems for many different people as has been reported on isitruby19.com.

    Running gem install mongrel produces the following error.

    http11.c: In function ‘http_field’:
    http11.c:77: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:77: error: ‘struct RString’ has no member named ‘len’
    http11.c:77: warning: left-hand operand of comma expression has no effect
    http11.c: In function ‘header_done’:
    http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:174: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:176: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:177: error: ‘struct RString’ has no member named ‘len’
    http11.c: In function ‘HttpParser_execute’:
    http11.c:298: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:299: error: ‘struct RString’ has no member named ‘len’
    make: *** [http11.o] Error 1

    To install mongrel after receiving this error, just follow these steps: Read the rest of this entry »

    Share
  • Replace Ruby 1.8.x with version 1.9.x

    We recently replaced ruby 1.8.6 on a Ubuntu 8.04 Server with Ruby 1.9.1. Follow these steps to remove the old ruby from the system, but be warned that it may not be as simple for you.

    First thing was to remove the old ruby1.8. We had installed this from the Ubuntu package installer so removing it was as simple as running:

    sudo apt-get uninstall ruby

    or

    sudo apt-get uninstall ruby1.8

    Read the rest of this entry »

    Share