Erwin
2010-Jun-17 21:42 UTC
cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
error in make ... yves$ sudo gem install mongrel Building native extensions. This could take a while... ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /Users/yves/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make gcc -I. -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/yves/.rvm/rubies/ruby-1.9.2- preview3/include/ruby-1.9.1/ruby/backward -I/Users/yves/.rvm/rubies/ ruby-1.9.2-preview3/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE - D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused- parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno- missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno- common -pipe -o http11.o -c http11.c http11.c: In function ‘http_field’: http11.c:70: warning: format not a string literal and no format arguments http11.c:71: warning: format not a string literal and no format arguments http11.c:77: error: ‘struct RString’ has no member named ‘ptr’ http11.c:77: error: ‘struct RString’ has no member named ‘len’ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Fernando Brito
2010-Jun-18 14:50 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
Looking at your error "gcc -I. -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" Do you see that there are 2 ruby versions there? RVM suggests you to always install gems without "sudo" (or if you installed your first one with sudo, keep doing that forever). Try to play around using: ruby -v sudo ruby -v gem list sudo gem list And Rails dev-core said that you should not use ruby 1.9.1 with Rails 3.0beta because of seg fault errors. 1.9.2 works just great. -- Fernando Brito On Thu, Jun 17, 2010 at 6:42 PM, Erwin <yves_dufour-ee4meeAH724@public.gmane.org> wrote:> error in make ... > > > yves$ sudo gem install mongrel > Building native extensions. This could take a while... > ERROR: Error installing mongrel: > ERROR: Failed to build gem native extension. > > /Users/yves/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb > checking for main() in -lc... yes > creating Makefile > > make > gcc -I. -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ > ruby-1.9.1/x86_64-darwin10.4.0 -I/Users/yves/.rvm/rubies/ruby-1.9.2- > preview3/include/ruby-1.9.1/ruby/backward -I/Users/yves/.rvm/rubies/ > ruby-1.9.2-preview3/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE - > D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused- > parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno- > missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno- > common -pipe -o http11.o -c http11.c > http11.c: In function ‘http_field’: > http11.c:70: warning: format not a string literal and no format > arguments > http11.c:71: warning: format not a string literal and no format > arguments > http11.c:77: error: ‘struct RString’ has no member named ‘ptr’ > http11.c:77: error: ‘struct RString’ has no member named ‘len’ > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Anthony Green
2010-Jun-20 07:53 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
I''m having the same issue and installed gems without user sudo. Fernando Brito wrote:> Looking at your error > "gcc -I. > -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" > > Do you see that there are 2 ruby versions there? > RVM suggests you to always install gems without "sudo" (or if you > installed > your first one with sudo, keep doing that forever).-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Anthony Green
2010-Jun-20 09:17 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
Anthony Green wrote:> I''m having the same issue and installed gems without user sudo. > > Fernando Brito wrote: >> Looking at your error >> "gcc -I. >> -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" >> >> Do you see that there are 2 ruby versions there? >> RVM suggests you to always install gems without "sudo" (or if you >> installed >> your first one with sudo, keep doing that forever).After doing some further testing with RVM installs of 1.8.7 will let you install mongrel, whereas installs 1.9.1 and 1.9.2 won''t. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Anthony Green
2010-Jun-20 09:22 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
More digging and the answer is to install monrel pre-release gem install mongrel --pre Anthony Green wrote:> Anthony Green wrote: >> I''m having the same issue and installed gems without user sudo. >> >> Fernando Brito wrote: >>> Looking at your error >>> "gcc -I. >>> -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" >>> >>> Do you see that there are 2 ruby versions there? >>> RVM suggests you to always install gems without "sudo" (or if you >>> installed >>> your first one with sudo, keep doing that forever). > > After doing some further testing with RVM installs of 1.8.7 will let you > install mongrel, whereas installs 1.9.1 and 1.9.2 won''t.-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Syed Aslam
2010-Jul-01 10:53 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
I had problem even though I had installed mongrel --pre. In Gemfile you need to specifically point mongrel to use "1.2.0.pre2" or else it will try to use the old version, even if you remove it from the cache. On Jun 20, 2:22 pm, Anthony Green <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> More digging and the answer is to install monrel pre-release > > gem install mongrel --pre > > > > Anthony Green wrote: > > Anthony Green wrote: > >> I''m having the same issue and installed gems without user sudo. > > >> Fernando Brito wrote: > >>> Looking at your error > >>> "gcc -I. > >>> -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" > > >>> Do you see that there are 2 ruby versions there? > >>> RVM suggests you to always install gems without "sudo" (or if you > >>> installed > >>> your first one with sudo, keep doing that forever). > > > After doing some further testing with RVM installs of 1.8.7 will let you > > install mongrel, whereas installs 1.9.1 and 1.9.2 won''t. > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Syed Aslam
2010-Jul-01 10:54 UTC
Re: cannot install Mongrel gem w ruby-1.9.2-preview3 [ x86_64 ] and Rails 3.0.0.beta4 [OS X 10.6.4]
I had problem even though I had installed mongrel --pre. In Gemfile you need to specifically point mongrel to use "1.2.0.pre2" or else it will try to use the old version, even if you remove it from the cache. On Jun 20, 2:22 pm, Anthony Green <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> More digging and the answer is to install monrel pre-release > > gem install mongrel --pre > > > > Anthony Green wrote: > > Anthony Green wrote: > >> I''m having the same issue and installed gems without user sudo. > > >> Fernando Brito wrote: > >>> Looking at your error > >>> "gcc -I. > >>> -I/Users/yves/.rvm/rubies/ruby-1.9.2-preview3/include/ruby-1.9.1/x86_64-darwin10.4.0" > > >>> Do you see that there are 2 ruby versions there? > >>> RVM suggests you to always install gems without "sudo" (or if you > >>> installed > >>> your first one with sudo, keep doing that forever). > > > After doing some further testing with RVM installs of 1.8.7 will let you > > install mongrel, whereas installs 1.9.1 and 1.9.2 won''t. > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.