Solved

Error installing Mongrel in Mac OS X Leopard

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing a Server-Side Scripting Language - Criterion 5 5 293
Ruby problem with blocks 5 313
Create an application - what tools to use? 4 612
TextArea Parameter 1 216
I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

19 Experts available now in Live!

Get 1:1 Help Now