在 Ubuntu 9.10 上安装 Rails 的最佳安装指南是什么?

发布于 2024-08-18 21:17:08 字数 190 浏览 6 评论 0原文

我全新安装了 Ubuntu 9.10。我想安装 Ruby 1.8、RubyGems 和 Rails。 尝试获取或更新 RubyGems 时,安装通常会失败。抱歉缺乏细节,我在很多方面都陷入困境。

在 Ubuntu 9.10 上安装 Ruby、RubyGems 和 Rails 的最好的、保证有效的安装指南\博客文章\教程是什么?

谢谢

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

顾忌 2024-08-25 21:17:08

这篇 Slicehost 文章是我所关注的。虽然它适用于 Ubuntu Hardy,但它应该适合你。

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

落花浅忆 2024-08-25 21:17:08

这将获得 ruby​​ 和 ruby​​gems - 确保您获得所需的版本并相应地更新这些命令。

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 

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 
意中人 2024-08-25 21:17:08
sudo apt-get install rails

应该为你做这件事(并自动安装依赖项,例如 ruby​​)。目前 Ruby 1.8.7 已在存储库中。它可能会落后于新的 Ubuntu 版本,但不会太远。

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.

萌能量女王 2024-08-25 21:17:08

在我看来,社区 Ubuntu 文档 是最好的指南。

它涵盖了不同类型的 Web 服务器,并尽可能使用 Ubuntu 的 apt-get。请注意,最好从源代码安装 RubyGems,而不是使用 apt-get。

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.

鹿! 2024-08-25 21:17:08

感谢大家的帮助和建议。

昨晚我遵循了这个指南: http ://www.hackido.com/2009/11/install-ruby-on-rails-on-ubuntu-karmic.html

我成功安装了rails。安装 Rails 后我就不再执行这些步骤,因此我无法保证教程的其余部分,但它确实帮助我在 Ubuntu 9.10 上安装 Rails。

谢谢

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文