Installing the pg gem on Debian Squeeze

Posted by & filed under Ruby on Rails.

Read more on "Installing the pg gem on Debian Squeeze" »

So once I figured out my problems with installing Rails 3 on Debian Squeeze I ran into trouble installing the pg gem.

Again after trial and error I found that all I needed to install was the libpq-dev package.

apt-get install libpq-dev

gem install pg

Installing Ruby 1.9.2 and Rails 3 on Debian Squeeze

Posted by & filed under Ruby on Rails.

Read more on "Installing Ruby 1.9.2 and Rails 3 on Debian Squeeze" »

This wasn’t as easy as I thought it would be, but after a little experimentation I got it running.

apt-get install ruby1.9.2

This will say that it is installing 1.9.1 but if you run ruby -v it will say 1.9.2

Then to install rubygems download and extract and then run

ruby setup.rb

To install rails run

gem install rails