Results 1 to 7 of 7

Thread: installing mongrel

  1. #1
    Join Date
    Oct 2008
    Beans
    212
    Distro
    Ubuntu 10.04 Lucid Lynx

    installing mongrel

    when i do sudo gem install mongrel i get the following:
    Building native extensions. This could take a while...
    ERROR: Error installing mongrel:
    ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
    checking for main() in -lc... yes
    creating Makefile

    make
    gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -o http11_parser.o -c http11_parser.c
    gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -o http11.o -c http11.c
    http11.c: In function ‘http_field’:
    http11.c:70: warning: format not a string literal and no format arguments
    http11.c:71: warning: format not a string literal and no format arguments
    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 ‘request_uri’:
    http11.c:102: warning: format not a string literal and no format arguments
    http11.c: In function ‘fragment’:
    http11.c:113: warning: format not a string literal and no format arguments
    http11.c: In function ‘request_path’:
    http11.c:124: warning: format not a string literal and no format arguments
    http11.c: In function ‘query_string’:
    http11.c:135: warning: format not a string literal and no format arguments
    http11.c: In function ‘header_done’:
    http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
    http11.c:172: error: ‘struct RString’ has no member named ‘ptr’
    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’
    http11.c:307: warning: format not a string literal and no format arguments
    make: *** [http11.o] Error 1


    Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5 for inspection.
    Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11/gem_make.out
    any idea?
    Try Dropbox today - the ultimate online storage tool! Follow me on Twitter @ http://twitter.com/fcuk112.

  2. #2
    Join Date
    May 2007
    Location
    Zagreb, Croatia
    Beans
    10
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: installing mongrel

    fcuk112: have you found solution? I see it's 2 months old topic, and it's still not fixed... :S

  3. #3
    Join Date
    Dec 2009
    Beans
    50

    Re: installing mongrel

    I got exactly the same error after upgrading to Ruby 1.9.1. First I believed that it was because of the Rails 3.0 beta version. But now I think it's a mongrel problem... Do you ?
    I'm on Ubuntu 9.10 (installed inside Windows XP Pro), ruby 1.9.1., rails 3.0 beta.
    Before upgrading to ruby 1.9.1 from 1.8.7 everything worked fine all gems (including mongrel) were installed without problems and the RoR environment was OK.

  4. #4
    Join Date
    Dec 2009
    Beans
    50

    Re: installing mongrel

    I'va found some info here:

    http://blog.phusion.nl/2009/02/02/ge...-for-ruby-191/

    I haven't tried it yet. Hope it helps you.

  5. #5
    Join Date
    Dec 2009
    Beans
    50

    Re: installing mongrel

    I got it working.

    You should install mongrel gem as follows:

    gem install mongrel --source http://gems.rubyinstaller.org

  6. #6
    Join Date
    Jan 2010
    Beans
    5

    Re: installing mongrel

    Lavix,
    Wow, great man!!!

    After I added the source, now it is working like a charm...!!! What a simple and effective solution..

    u saved my day!

  7. #7
    Join Date
    May 2008
    Beans
    1

    Re: installing mongrel

    I don't remember where I saw this, but I used:

    Code:
    sudo gem install mongrel --pre
    This worked beautifully on Lucid, although be forewarned it is pre-release code.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •