I fixed all my issues and am up and running.

Here's what I did to fix them all...

First, I had to uninstall my old ruby and gems..

In my case I had to do sudo gem uninstall --install-dir 
"/path/to/directory" NameOfGem to uninstall all of mine because gem 
uninstall could not find them.  I did that first by just doing a locate 
(name of gem) to see which directory it was in.

I uninstalled all the gems and then I uninstalled Ruby using the 
following:

sudo apt-get remove rubygems ruby irb ri rdoc ruby1.8-dev

.. that solved the uninstall issues.

Installing Ruby 1.9.1 and Rails

I created a checklist of everything I did when installing ruby and rails 
from source in case someone else has the same issues I did.  Here's the 
instructions.

Prep Tools and Libraries
1. Download latest 1.9.1 source and place in Directory/src.
2. Go to terminal and type the following:
3. TYPE sudo apt-get install build-essential wget libreadline5-dev 
libncurses5-dev zlib1g-dev libsqlite3-dev libssl-dev

Installing Ruby Source
1. Go to src directory on desktop via terminal.
2. Type ls to see name of package.
3. Type tar xvzf (name of package)
4. Type rm *.gz (to remove the .gz src file)
5. Type cd ruby(tab) to finish dir typing
6. Type autoconf (to check if autoconf is there)
7. Type sudo apt-get install autoconf (to install autoconf)
8. Type autoconf
9. Type ./configure --prefix=/usr --enable-pthread
10. Type make
11. Type sudo make install

Check Versions
1. Type ruby -v (should be latest version)
2. Type gem -v (should be latest version)
3. Type sudo gem update (everything should be up to date)
4. Type irb (to access IRB)
5. Type RUBY_VERSION (should show latest version)

Install Rails and other gems
1. Type sudo gem install rails sqlite3-ruby rubygems-update test-unit 
capistrano rspec
2. Type rails -v (to check rails version)
3. Type rails testapp
4. Type cd testapp
5. Type script/server
6. Open Browser
7. Type http://localhost:3000

Everything should be running fine.  In my case I'm up and running.  As a 
new user to linux I had to research several sites to find all the 
information.

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to