Solved

Error installing Mongrel in Mac OS X Leopard

Posted on 2009-06-30
4
653 Views
Last Modified: 2013-11-13
Hi,
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

make
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
sh-3.2#

Any ideas?

Thanks,

GA
0
Comment
Question by:acilug
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

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

gem install mongrel

so it downloads and installs it?

Andrew
0
 

Author Comment

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

Expert Comment

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

This link might help you...

http://www.stuartellis.eu/articles/mac-setup/

Andrew
0
 

Accepted Solution

by:
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.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now