Upgrade to 1.1RC on ubuntu breezy

How do I upgrade my rails to 1.1RC - running Ubuntu breezy and I had
installed rails using apt-get in universe.

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

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

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

On Sat, Mar 25, 2006 at 09:48:20AM +0000, Henry T. 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:

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

http://www.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 M.

Regards,
Blair


Blair Z., Ph.D.
CTO, OrcaWare Technologies
[email protected]
Subversion training, consulting and support
http://www.orcaware.com/svn/

On 25/03/06 13:00 +0000, Nicholas H.Tollervey wrote:

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