Forum: Rails deployment Ubuntu 10.04 on EC2

Posted by John Small (johnsmall)
on 2010-08-29 17:34
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 Small
Posted by John Small (johnsmall)
on 2010-09-05 15:44
John Small 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 Small

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 Small
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.