How do I upgrade my rails to 1.1RC - running Ubuntu breezy and I had installed rails using apt-get in universe. -- Posted via ruby-forum.com.
Maybe it''ll be easier to remove the package and then install via the gems route? The ubuntu repositories will never have edge rails since I believe the point of them is to provide tried and tested packages only. p.s. if youre on lighty make sure you have 1.4.11 installed. As far as I can tell, versions above and below will not work... unless you want to edit the default lighty config. -h On 3/25/06, jack <ngalaxy34@yahoo.com> wrote:> How do I upgrade my rails to 1.1RC - running Ubuntu breezy and I had > installed rails using apt-get in universe. > > -- > Posted via ruby-forum.com. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > lists.rubyonrails.org/mailman/listinfo/rails >
Hi, I''ve just been caught out with this. On any Debian based distro (like ubuntu) always install Ruby via apt, install gems from source and then gem install rake and rails (and so on). The problem with Breezy is that although the Ruby version is 1.8.2 the ruby package reports it being 1.8.3 which Rails won''t play with. As a result, you have only one option: Upgrade to Dapper Drake. This is a very simple change to your /etc/apt/sources.list file (replace all reference to breezy with dapper). apt-get dist-upgrade and apt-get update should do the trick with the following caveat: dapper is still in pre-release so might not work as expected or seem incomplete (the current splash screen when logging into Gnome is a good example). I upgraded last night and everything seems to be working well with 1.1rc1 plus the bugs in Ubuntu''s version of Ruby (like the ruby bindings to imagemagik) should be fixed (I''ve not checked all of them yet). On dapper Ruby is at 1.8.4. The other option might be to check out another distro like Fedora or SuSE (as I did last night) but, to my mind, they''re nowhere near as easy as Debian/Ubuntu to use - hence my reinstall of breezy and upgrade to dapper. Your mileage might vary. Best of luck and have fun! Nicholas On Sat, 2006-03-25 at 07:52 +0100, jack wrote:> How do I upgrade my rails to 1.1RC - running Ubuntu breezy and I had > installed rails using apt-get in universe. >
Yes, the problem is debian in all its variation doesn''t install a series of libraries. I have just installed a rails application on Kubuntu breezy, I did the following (right out of my project notes): ruby-ize debian!!! aptitude install ruby libzlib-ruby rdoc irb untar rubygems, then: cd rubygems-0.8.11 ruby setup.rb all gem install rails --include-dependencies Then everything was normal, I had no need to make any changes in apt-get, or upgrade to a different distribution. cheers, Victor Kane awebfactory.com.ar Message: 2> Date: Sat, 25 Mar 2006 13:00:15 +0000 > From: "Nicholas H.Tollervey" <ntoll@ntoll.org> > Subject: Re: [Rails] upgrade to 1.1RC on ubuntu breezy > To: rails@lists.rubyonrails.org > Message-ID: <1143291615.9493.8.camel@localhost.localdomain> > Content-Type: text/plain > > Hi, > > I''ve just been caught out with this. > > On any Debian based distro (like ubuntu) always install Ruby via apt, > install gems from source and then gem install rake and rails (and so > on). > > The problem with Breezy is that although the Ruby version is 1.8.2 the > ruby package reports it being 1.8.3 which Rails won''t play with. As a > result, you have only one option: > > Upgrade to Dapper Drake. > > This is a very simple change to your /etc/apt/sources.list file (replace > all reference to breezy with dapper). apt-get dist-upgrade and apt-get > update should do the trick with the following caveat: dapper is still in > pre-release so might not work as expected or seem incomplete (the > current splash screen when logging into Gnome is a good example). I > upgraded last night and everything seems to be working well with 1.1rc1 > plus the bugs in Ubuntu''s version of Ruby (like the ruby bindings to > imagemagik) should be fixed (I''ve not checked all of them yet). On > dapper Ruby is at 1.8.4. > > The other option might be to check out another distro like Fedora or > SuSE (as I did last night) but, to my mind, they''re nowhere near as easy > as Debian/Ubuntu to use - hence my reinstall of breezy and upgrade to > dapper. Your mileage might vary. > > Best of luck and have fun! > > Nicholas > >-------------- next part -------------- An HTML attachment was scrubbed... URL: wrath.rubyonrails.org/pipermail/rails/attachments/20060325/93bb28a7/attachment.html
thanks - now I get the procedure (ruby from repository, gems from source, rake and rails from gems). I''ll try to get this on the Ubuntu wiki. And yes, i''m testing dapper today on a 2nd machine since it now supports lighttpd in the repositories - but still afraid to use it on my production laptop. Nicholas H.Tollervey wrote:> Hi, > > I''ve just been caught out with this. > > On any Debian based distro (like ubuntu) always install Ruby via apt, > install gems from source and then gem install rake and rails (and so > on). > > The problem with Breezy is that although the Ruby version is 1.8.2 the > ruby package reports it being 1.8.3 which Rails won''t play with. As a > result, you have only one option: > > Upgrade to Dapper Drake. > > This is a very simple change to your /etc/apt/sources.list file (replace > all reference to breezy with dapper). apt-get dist-upgrade and apt-get > update should do the trick with the following caveat: dapper is still in > pre-release so might not work as expected or seem incomplete (the > current splash screen when logging into Gnome is a good example). I > upgraded last night and everything seems to be working well with 1.1rc1 > plus the bugs in Ubuntu''s version of Ruby (like the ruby bindings to > imagemagik) should be fixed (I''ve not checked all of them yet). On > dapper Ruby is at 1.8.4. > > The other option might be to check out another distro like Fedora or > SuSE (as I did last night) but, to my mind, they''re nowhere near as easy > as Debian/Ubuntu to use - hence my reinstall of breezy and upgrade to > dapper. Your mileage might vary. > > Best of luck and have fun! > > Nicholas-- Posted via ruby-forum.com.
On Sat, Mar 25, 2006 at 09:48:20AM +0000, Henry Turner wrote:> p.s. if youre on lighty make sure you have 1.4.11 installed. As far as > I can tell, versions above and below will not work... unless you want > to edit the default lighty config.I''m still running 1.4.8 on my (Breezy) laptop for development testing, and the default rails lighty config works fine. - Matt
Nicholas H.Tollervey wrote:> Hi, > > I''ve just been caught out with this. > > On any Debian based distro (like ubuntu) always install Ruby via apt, > install gems from source and then gem install rake and rails (and so > on). > > The problem with Breezy is that although the Ruby version is 1.8.2 the > ruby package reports it being 1.8.3 which Rails won''t play with. As a > result, you have only one option: > > Upgrade to Dapper Drake.Until Dapper Drake is released, I have a large number of packages backported to Breezy Badger, including Ruby 1.8.4. You can find them at orcaware.com/packages/ubuntu/breezy Also, there''s a rubygems package there that installs the Ruby gems package, but you still need to install individual gems using the ''gem'' script. The advantage to this is that all the gems are stored in /var/lib/gems/1.8 and if you remove the rubygems package, then all gems are removed. So you still have a dpkg package management system surrounding the gems. This package is based off of work by Daigo Moriwaki <beatles at sgtpepper dot net> Regards, Blair -- Blair Zajac, Ph.D. CTO, OrcaWare Technologies <blair@orcaware.com> Subversion training, consulting and support orcaware.com/svn
On 25/03/06 13:00 +0000, Nicholas H.Tollervey wrote:> Hi, > > I''ve just been caught out with this. > > On any Debian based distro (like ubuntu) always install Ruby via apt, > install gems from source and then gem install rake and rails (and so > on). > > The problem with Breezy is that although the Ruby version is 1.8.2 the > ruby package reports it being 1.8.3 which Rails won''t play with. As a > result, you have only one option: > > Upgrade to Dapper Drake. >Not really. You could always build ruby from source. I don''t like the way Debian breaks ruby into different parts anyway. First remove any ruby stuff you have already installed on breezy, then get checkinstall and build-essential sudo apt-get install checkinstall sudo apt-get install build-essential Then go out and get the source for ruby and rubygems, untar them, run ./configure, make, then sudo checkinstall make install after this yo uwill have the latest ruby and rubygems built from source and tracked in Debian''s package system. Regards, Jason