Solved

Error installing Mongrel in Mac OS X Leopard

Posted on 2009-06-30
4
657 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
customize rails URL 6 502
Record Login Time 8 489
Upgrade Ruby from 1.8.7 to 1.9.2-p320 7 327
Very quick question about Compass :) 1 217
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 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