TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ubuntu, Ruby, RVM, Rails, and You

78 点作者 vijaydev超过 14 年前

8 条评论

aberkowitz超过 14 年前
&#62; Under no circumstance should you install Ruby, Rubygems or any Ruby-related packages from apt-get<p>I really wish the RoR book I was reading had told me that before I spent multiple hours trying to properly setup Rails.
评论 #2039346 未加载
评论 #2039150 未加载
Sapient超过 14 年前
This is a good start for setting up rails on your development box, but when it comes to deploying it to a clean server, just following these instructions will give you a headache fast.<p>This tutorial, and some others on this guys blog helped me do just that. <a href="http://kris.me.uk/2010/08/30/rails3-hosting-all-in-one.html" rel="nofollow">http://kris.me.uk/2010/08/30/rails3-hosting-all-in-one.html</a>
评论 #2039787 未加载
评论 #2039537 未加载
mark_l_watson超过 14 年前
Really good advice about not installing Ruby using apt-get. I forgot and did this a few weeks ago and dropped back to building from source.
viraptor超过 14 年前
It's surprising that with all that talk about how bad packaged ruby is, not many seem to be pushing for automation to fix this. CPAN situation is very similar to gems (apart from the speed of changes in the interpreters). Some perl modules are missing, some outdated, but `dh-make-perl --cpan Module::You::Want` brings you all you need almost every single time. There seems to be an old dh-make-ruby (dead ~2006), dh-make-gem seems to be in the works (early 0.3.0 version available).<p>Even upstream doesn't seem to be interested that much. On the download page, there's:<p>For example, on Debian or Ubuntu apt-get provides an easy and elegant solution: % sudo apt-get install ruby1.9.1-full<p>It definitely is confusing / silly to the outside observer... There's rvm - how hard is it to automate package building reusing it's elements? If it's not - why isn't it done? If it is - why all the packages hate, instead of pressuring upstream to improve the situation?
eccp超过 14 年前
Actually, this is one of the long lasting issues with RoR: most people want to try it on a recent version, but Linux distros try to package <i></i>stable<i></i> releases instead. You shouldn't blame the distros for not having the absolute bleeding edge version.<p>If really need the absolute latest version of Rails go on, have a separate install compiled from source, but there's no need to be rude with the packagers. I'm trying to learn Rails 3 and I found that JRuby works really fine with Rails 3, and using Warbler gives me nices WAR files to deploy on Tomcat, and I don't mess my default Ruby install.
评论 #2039536 未加载
评论 #2039202 未加载
评论 #2039472 未加载
评论 #2039544 未加载
minouye超过 14 年前
I also found the following tutorial invaluable for setting up rails on 10.04 (via RailsTutorial.org)<p><a href="http://toranbillups.com/blog/archive/2010/09/01/How-to-install-Rails-3.0-and-Ruby-1.9.2-on-Ubuntu" rel="nofollow">http://toranbillups.com/blog/archive/2010/09/01/How-to-insta...</a>
rohitarondekar超过 14 年前
Absolutely agree. Whenever you google for installing ruby on Ubuntu you get the package version. Also Linode's guides use the packages. RVM offers a nearly effortless solution to manage your rubies - and more importantly manage gemsets which is an awesome feature.<p>Although I had to install more dependencies to get everything to work. I don't remember exactly what problems I had without some of the dependencies, but I had compiled them here: <a href="http://rohitarondekar.com/articles/installing-rails3-beta3-on-ubuntu-using-rvm" rel="nofollow">http://rohitarondekar.com/articles/installing-rails3-beta3-o...</a>
skillachie超过 14 年前
I just did this setup a few days ago, only problem is rvm did not work with root, still uses default ruby, however i suspect i need to configure the PATH<p>In addition I used Passenger as well