Forum: Ruby on Rails upgrade to 1.1RC on ubuntu breezy

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bda18ca8ac44f780eb41892afd22e954?d=identicon&s=25 jack (Guest)
on 2006-03-25 07:52
How do I upgrade my rails to 1.1RC - running Ubuntu breezy and I had
installed rails using apt-get in universe.
6cf8286fcab5843f468d62f5e6fb22de?d=identicon&s=25 Henry Turner (Guest)
on 2006-03-25 10:49
(Received via mailing list)
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
E8d4e155929363bd22a7852494d18c25?d=identicon&s=25 Nicholas H.Tollervey (Guest)
on 2006-03-25 14:00
(Received via mailing list)
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
Bda18ca8ac44f780eb41892afd22e954?d=identicon&s=25 jack (Guest)
on 2006-03-25 17:17
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
55428cbf149e35dd4b65f1d019d04139?d=identicon&s=25 Matthew Palmer (Guest)
on 2006-03-25 20:32
(Received via mailing list)
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
27c57aaa4bda5ac8b0593659573b522f?d=identicon&s=25 Blair Zajac (Guest)
on 2006-03-25 23:44
(Received via mailing list)
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 Moriwaki <beatles at
sgtpepper dot net>

Regards,
Blair

--
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
6372e690497a80453a1d3d120d8b8818?d=identicon&s=25 Jason Stewart (Guest)
on 2006-03-28 20:05
(Received via mailing list)
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
This topic is locked and can not be replied to.