State of the Breezy

What’s the current state of Rails installation on a fresh Ubuntu Breezy?
I’ve just set up a laptop with a fresh installation, and tried to
install ruby et al, and got nowhere fast. The default ruby is 1.8.3,
and compiling the source for 1.8.4 leaves the rubygems setup.rb breaking
unable to find zlib (and yes, I have checked for zlib1g-dev and
readline). Is there a known good walkthrough somewhere, or am I just
being dense?

Hi,

Breezy works fine. The default Ruby is 1.8.2 not 1.8.3. Install
everything thus:

Make sure you have universe and multiverse enabled and select the rails
package in synaptic. This will install all the correct dependencies.

De-select rails and install the ruby packages.

Grab rubygems and compile it. Install rails (and deps) via gem.

I’ve not had any problems so far using Rails/Ruby with PostgreSQL on my
laptop.

Best of luck,

Nicholas

Nicholas H.Tollervey wrote:

Hi,

Breezy works fine. The default Ruby is 1.8.2 not 1.8.3.
Afraid not…

Install
everything thus:

Make sure you have universe and multiverse enabled and select the rails
package in synaptic. This will install all the correct dependencies.

De-select rails and install the ruby packages.
Following exactly that procedure on a completely fresh install as of
about 3 o’clock yesterday afternoon gives:

alex@pandora:~$ ruby -v
ruby 1.8.3 (2005-06-23) [i486-linux]

Is there a repository with a complete set of 1.8.4 breezy packages that
will get Rails into a known-good state anywhere?

You may also want to avoid ubuntu’s rmagick package as it is broken
because of some incompatibility with imagemagick…

Install ruby, then compile/install rubygems and install the latest rails
and rmagick using rubygems(rmagick requires imagemagick and ruby dev
packages and
of course build-essential(gcc etc…))

HTH

Alex Y. wrote:

Given that I can’t get the first two to work at the same time (I either
get 1.8.3 and rubygems, or 1.8.4 from source and no rubygems), I think
it’s back to Sarge for me…

Strange? what exactly is the prob? ive re-installed Breezy twice and
have
had no troubles setting up rails (apart from rmagick issue)…

bmgz wrote:

You may also want to avoid ubuntu’s rmagick package as it is broken
because of some incompatibility with imagemagick…
I wish I could get that far. Ubuntu’s desktop setup is quite nice, by
default.

Install ruby, then compile/install rubygems and install the latest rails
and rmagick using rubygems(rmagick requires imagemagick and ruby dev
packages and
of course build-essential(gcc etc…))
Given that I can’t get the first two to work at the same time (I either
get 1.8.3 and rubygems, or 1.8.4 from source and no rubygems), I think
it’s back to Sarge for me…

Alex Y. wrote:

Nicholas H.Tollervey wrote:

Hi,

Breezy works fine. The default Ruby is 1.8.2 not 1.8.3.
Afraid not…
Tis! :slight_smile:

APT tells me that the latest version of ruby is 1.8.2-1.

Is APT on your machine looking at the right repos (mine are the default
UK repos)?

Also, checking the Ubuntu launchpad site, the version of ruby for breezy
is marked as 1.8.2 (ref:
1.8.2-9ubuntu1 : ruby1.8 : i386 : Breezy (5.10) : Ubuntu).
I’d check you’ve got your repos set up right or you might have an
additional repos with a later version of ruby available.

Hope this helps,

Nicholas

Alex Y. wrote:

ntollervey wrote:

APT tells me that the latest version of ruby is 1.8.2-1.

Curiouser and curiouser. apt-cache showpkg ruby gives a version of
1.8.2-1, but that’s not what the command line’s telling me. Something
is rotten around here, and I don’t think it’s my lunch.

I’ve found out what’s going on - the ubuntu ruby reports itself as
1.8.3, but the important bits are actually from 1.8.2.

So it looks for the moment like it’s not a problem… I’m just going to
blunder on through until something breaks, I think.

Sorry for the noise, folks - this had me really confused.

ntollervey wrote:

Alex Y. wrote:

Nicholas H.Tollervey wrote:

Hi,

Breezy works fine. The default Ruby is 1.8.2 not 1.8.3.
Afraid not…
Tis! :slight_smile:

APT tells me that the latest version of ruby is 1.8.2-1.
Curiouser and curiouser. apt-cache showpkg ruby gives a version of
1.8.2-1, but that’s not what the command line’s telling me. Something
is rotten around here, and I don’t think it’s my lunch.

Is APT on your machine looking at the right repos (mine are the default
UK repos)?
Yup. All as default. I did nothing except install ubuntu, open
Synaptic, include universe and multiverse, update, select rails,
deselect rails, and apply. Nothing else.

Also, checking the Ubuntu launchpad site, the version of ruby for breezy
is marked as 1.8.2 (ref:
1.8.2-9ubuntu1 : ruby1.8 : i386 : Breezy (5.10) : Ubuntu).
I’d check you’ve got your repos set up right or you might have an
additional repos with a later version of ruby available.
I reckon it must be either universe or multiverse that’s done this…
Not much fun. Especially as there’s no sign of an offending package in
/var/cache/apt/archives. Oh well, time for a hunt. I’ve got enough
configured on the machine now that I may as well try to keep it up.

Alex Y. wrote:

Is there a repository with a complete set of 1.8.4 breezy packages that
will get Rails into a known-good state anywhere?

I still use the 1.8.2-1 that comes with Breezy, but have a nice rubygems
package
that installs all the gems into /var/lib/gems, so a simple ‘dpkg --purge
rubygems’ removes all the gems from the system. This is this, as you
don’t have
files that are not managed by a package.

I have a number of packages available at

http://www.orcaware.com/packages/ubuntu/

Regards,
Blair


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