Ubuntu 10.04 on EC2

Having setup a standard phusion-passenger stack on an earlier version of
Ubuntu on EC2 I’m having mysterious problems setting things up on the
Canononical 10.04 release. It seems that it wants to install everything
via apt-get install, rather than gem install, which of course means that
it’s getting ancient versions because the debian packages aren’t kept up
to date. If I try the normal gem install route then I can see things OK
when I gem list --local but things aren’t available on the command line
which I expect to be available. Most importantly I can’t type
passenger-install-apache2-module because gem install passenger hasn’t
installed things properly.

I’m mystified. Earlier versions were completely simple to set up but
this is turning into a right pain.

Anyone have any experience of this?

John S.

John S. wrote:

Having setup a standard phusion-passenger stack on an earlier version of
Ubuntu on EC2 I’m having mysterious problems setting things up on the
Canononical 10.04 release. It seems that it wants to install everything
via apt-get install, rather than gem install, which of course means that
it’s getting ancient versions because the debian packages aren’t kept up
to date. If I try the normal gem install route then I can see things OK
when I gem list --local but things aren’t available on the command line
which I expect to be available. Most importantly I can’t type
passenger-install-apache2-module because gem install passenger hasn’t
installed things properly.

I’m mystified. Earlier versions were completely simple to set up but
this is turning into a right pain.

Anyone have any experience of this?

John S.

Ok, I’ve sorted this one out. Basically you have to install the latest
version of gem yourself, because the Ubuntu repositories don’t seem to
have things set up correctly. So if you run into this problem don’t use
apt-get to set up gem, go to http://rubygems.org and install it from
there.

John S.