在 Ubuntu 9.10 上安装 Rails 的最佳安装指南是什么?
我全新安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这篇 Slicehost 文章是我所关注的。虽然它适用于 Ubuntu Hardy,但它应该适合你。
This Slicehost article is what I follow. Although it's for Ubuntu Hardy it should work for you.
这将获得 ruby 和 rubygems - 确保您获得所需的版本并相应地更新这些命令。
sudo apt-get install build-essential libssl-dev libreadline-dev -y
This will get ruby and rubygems - make sure you get the versions you want and update these commands accordingly.
sudo apt-get install build-essential libssl-dev libreadline-dev -y
应该为你做这件事(并自动安装依赖项,例如 ruby)。目前 Ruby 1.8.7 已在存储库中。它可能会落后于新的 Ubuntu 版本,但不会太远。
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.
在我看来,社区 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.
感谢大家的帮助和建议。
昨晚我遵循了这个指南: 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