Error installing Mongrel in Mac OS X Leopard

Posted on 2009-06-30
Medium Priority
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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

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: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month14 days, 7 hours left to enroll

770 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