Error installing Mongrel in Mac OS X Leopard

Posted on 2009-06-30
Last Modified: 2013-11-13
I have installed Ruby 1.9.1 in my MacBook PRO. Everything is installing and running correctly, but I cannot install mongrel. I receive the following error:

sh-3.2# gem install mongrel-1.1.5.gem
Building native extensions.  This could take a while...
ERROR:  Error installing mongrel-1.1.5.gem:
      ERROR: Failed to build gem native extension.

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

gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.7.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o http11.o -c http11.c
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:77: warning: statement with 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

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 ideas?


Question by:acilug
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 10

Expert Comment

by:Andrew Doades
ID: 24750218
have you tried running just

gem install mongrel

so it downloads and installs it?


Author Comment

ID: 24751495
Yes, I did. The example here was just a try to see if there was some kind of corruption.
LVL 10

Expert Comment

by:Andrew Doades
ID: 24834176
Sorry for long reply...

This link might help you...


Accepted Solution

acilug earned 0 total points
ID: 24864243
It looks like there is a bug in Mongrel to run in Ruby 1.9.1 in Mac OS X.
I am switching to use Thin, which is another web server for Rails.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't update rails - requires RubyGems version >= 1.3.6 11 3,583
Rails 3 Equivalent 7 354
Java OO Design  - general knowledge 7 494
Problem with systems default Ruby version 2 694
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below:…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question