Hi Vell
Doing a reinstall might well save you a lot of hassle. In my last install I used sudo all the way through (the server is a test server for an eventual production server) and no RVM since I was only going to use Ruby 1.9.2 (like you). I wrote down all the steps during the install and this "recipe" works well enough for me. Note that all apt-get installs use sudo, no doubt there are some places where that was unnecessary - but I couldn't be bothered to find out. The server also has Asterisk installed, you probably don't need that so I've commented out those lines that are Asterisk specific (with ##) but left them in the recipe anyway:
During install, Ubuntu 11.10, following packages selected:
OpenSSH server
LAMP server
$sudo visudo
##added last line:
<my user name> ALL=(ALL) NOPASSWD: ALL
$sudo apt-get update
$sudo apt-get upgrade
##$sudo apt-get install asterisk sox asterisk-mysql asterisk-mp3
$sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
$sudo apt-get install ruby1.9.2
$ruby -v
>ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$gem -v
>1.3.7
$sudo gem update
$sudo env REALLY_GEM_UPDATE_SYSTEM=1 gem update --system
$gem -v
>1.8.12
$sudo apt-get install ruby1.9.1-dev
##see: J-_-L | RubyBuntu -2- Troubleshooting common Ruby ubuntu problems
$sudo gem install rails -v=3.1.0
$rails -v
>Rails 3.1.0
$rake --version
>rake, version 0.9.2
$sudo gem install passenger
$sudo passenger-install-apache2-module
$sudo apt-get install libcurl4-openssl-dev
$sudo apt-get install apache2-prefork-dev
$sudo apt-get install libapr1-dev
$sudo passenger-install-apache2-module
$sudo vim /etc/apache2/apache2.conf
##Added these lines at bottom of file:
LoadModule passenger_module /usr/lib/ruby/gems/1.9.1/gems/passenger3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.11
PassengerRuby /usr/bin/ruby1.9.1
$sudo service apache2 restart
##$sudo gem install adhearsion
##$ahn -v
## >Adhearsion v1.2.3
$sudo apt-get install phpmyadmin
##Install java runtime:
$sudo apt-get install python-software-properties
$sudo add-apt-repository ppa:chris-lea/node.js
$sudo apt-get update
$sudo apt-get install nodejs
##### END install - and everything works fine #####
-----Oprindelig meddelelse-----