Version hell...I have the latest version of gems installed and gems -v proves this, but somewhere an old copy is hanging about - how do I get rid of this old version? This is driving me nuts! I seem to be getting conflicted installations of gems: For example $ ruby script/generate model product Rails requires RubyGems >= 1.3.2 (you have 1.2.0). Please `gem update --system` and try again. brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem update --system ERROR: While executing gem ... (RuntimeError) gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v 1.3.5 -- 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.
On Thu, Jul 29, 2010 at 12:46 PM, Dis Tec <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Version hell...I have the latest version of gems installed and gems -v > proves this, but somewhere an old copy is hanging about - how do I get > rid of this old version? This is driving me nuts! > > > > I seem to be getting conflicted installations of gems: > > For example > > $ ruby script/generate model product > Rails requires RubyGems >= 1.3.2 (you have 1.2.0). Please `gem update > --system` and try again. > > brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem update --system > ERROR: While executing gem ... (RuntimeError) > gem update --system is disabled on Debian. RubyGems can be updated > using the official Debian repositories by aptitude or apt-get. > > > > > brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v > 1.3.5The weird thing is gem -v showing 1.3.5 However, you can try this on a Debian(-like) environment: sudo gem install rubygems-update #( 1.3.7 should be the latest version) sudo update_rubygems #if this doesn''t work, try finding the right executable file in your gems path. That would update your rubygems version. Hope it helps. -- Leonardo Mateo. There''s no place like ~ -- 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.
You installed Rubygems using apt-get which is... a very bad idea! You should NEVER do this :D. Just install rubygems using the source. Nicolas Blanco http://www.nicolasblanco.fr http://twitter.com/slainer68 Dis Tec wrote:> Version hell...I have the latest version of gems installed and gems -v > proves this, but somewhere an old copy is hanging about - how do I get > rid of this old version? This is driving me nuts! > > > > I seem to be getting conflicted installations of gems: > > For example > > $ ruby script/generate model product > Rails requires RubyGems >= 1.3.2 (you have 1.2.0). Please `gem update > --system` and try again. > > brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem update --system > ERROR: While executing gem ... (RuntimeError) > gem update --system is disabled on Debian. RubyGems can be updated > using the official Debian repositories by aptitude or apt-get. > > > > > brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v > 1.3.5-- 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.
Did you install anything by mistake in ~/.gem ? -- 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.
Fernando Perez wrote:> Did you install anything by mistake in ~/.gem ?yep - that is all deleted now. -- 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.
Thanks - I have now update the version.That seems to have done the trick! Thanks! Leonardo Mateo wrote:> On Thu, Jul 29, 2010 at 12:46 PM, Dis Tec <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> $ ruby script/generate model product >> >> brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v >> 1.3.5 > The weird thing is gem -v showing 1.3.5 > However, you can try this on a Debian(-like) environment: > sudo gem install rubygems-update #( 1.3.7 should be the latest version) > sudo update_rubygems #if this doesn''t work, try finding the right > executable file in your gems path. > > That would update your rubygems version. > > Hope it helps. > > > > -- > Leonardo Mateo. > There''s no place like ~-- 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.
Now need to get MySQL installed. I am having the following trouble installing sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/bin/mysql_config extconf.rb:10:in `require'': no such file to load -- mkmf (LoadError) from extconf.rb:10 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out Any ideas? Dis Tec wrote:> Thanks - I have now update the version.That seems to have done the > trick! > > Thanks! > > Leonardo Mateo wrote: >> On Thu, Jul 29, 2010 at 12:46 PM, Dis Tec <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> $ ruby script/generate model product >>> >>> brett@ubuntu:~/RoR/Apps/OpenBenefit/depot$ gem -v >>> 1.3.5 >> The weird thing is gem -v showing 1.3.5 >> However, you can try this on a Debian(-like) environment: >> sudo gem install rubygems-update #( 1.3.7 should be the latest version) >> sudo update_rubygems #if this doesn''t work, try finding the right >> executable file in your gems path. >> >> That would update your rubygems version. >> >> Hope it helps. >> >> >> >> -- >> Leonardo Mateo. >> There''s no place like ~-- 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.
mysql_config exists and mysql is up and running! No idea why this sometimes works and sometimes breaks. Before I managed this fine. Now its not working and I cannot re-install the mysql gems! -- 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.
On Jul 29, 5:16 pm, Dis Tec <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> mysql_config exists and mysql is up and running! No idea why this > sometimes works and sometimes breaks. Before I managed this fine. Now > its not working and I cannot re-install the mysql gems! >it''s saying that you''re missing mkmf, which is part of the ruby standard library. Looks like this is part of the ruby-dev package on debian/ubuntu machines. Fred -- 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.