开发者

What is the best Installation Guide for installing Rails on Ubuntu 9.10? [closed]

开发者 https://www.devze.com 2022-12-18 16:22 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_开发知识库 Closed 10 years ago.

I have a clean install of Ubuntu 9.10. I want to install Ruby 1.8, RubyGems and Rails. The install usually fails when trying to get or update RubyGems. Sorry for the lack of details, I have gotten stuck on a number of fronts.

What is the best, guaranteed to work, installation guide\blog post\tutorial for installing Ruby, RubyGems and Rails on Ubuntu 9.10?

THANKS


This Slicehost article is what I follow. Although it's for Ubuntu Hardy it should work for you.


This will get ruby and rubygems - make sure you get the versions you want and update these commands accordingly.

apt-get update
apt-get upgrade -y

sudo apt-get install build-essential libssl-dev libreadline-dev -y

sudo apt-get install wget

wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz

tar xzf ruby-1.8.7.tar.gz

cd ruby-1.8.7-p287
./configure --prefix=/usr/local

make && sudo make install


wget http://rubyforge.org/frs/download.php/43985/rubygems-1.3.4.tgz

tar xzf rubygems-1.3.4.tgz
cd rubygems-1.3.4
sudo ruby setup.rb
ruby-v
gem-v

For rails, sudo gem install rails 


sudo apt-get install rails

Should do it for you (and automatically install dependencies such as ruby). Currently Ruby 1.8.7 is in the repos. It can get a bit behind coming up to a new Ubuntu release, but not too far.


The Community Ubuntu Documentation is in my opinion the best guide.

It covers different type of web servers and make use of Ubuntu's apt-get where possible. Just note that it's probably still best to install RubyGems from source instead of using apt-get.


Thank you all for the help and advice.

Last night I followed this guide: http://www.hackido.com/2009/11/install-ruby-on-rails-on-ubuntu-karmic.html

I managed to install rails. I stopped following the steps after rails was installed so I cannot vouch for the rest of the tutorial, but it did help me to install Rails on Ubuntu 9.10.

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消