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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ruby 1.9.3 via RVM on Mac OSX Lion: Success Story

24 点作者 mariusbutuc超过 13 年前

8 条评论

getsat超过 13 年前
I guess rbenv + ruby-build uses GCC by default, because I've never had any issues with this on any machines running 4.2.<p><pre><code> rbenv install 1.9.3-p0 rbenv global 1.9.3-p0 </code></pre> Done.
评论 #3586746 未加载
lloeki超过 13 年前
This only occurs with Xcode 4.2, while 4.1 has no issue. Reason is Apple went LLVM.<p>I encountered the issue previously with rbenv [0]. Even if it builds correctly with clang various tests subsequenty fail, although they appear to pass on ruby trunk.<p>So for now, one should rather install gcc via the installer, which also allows to build older versions of ruby if need be.<p>[0] <a href="https://github.com/sstephenson/ruby-build/pull/87" rel="nofollow">https://github.com/sstephenson/ruby-build/pull/87</a>
评论 #3585958 未加载
blindhippo超过 13 年前
I just recently started learning Rails (purely out of interest).<p>Getting any form of Rails installed was a massive pain in the neck. Between GCC issues and architecture issues involving sqlite3 (for some reason), it must have taken over 12 hours of tinkering before I could even start the rails guide.<p>Nearly gave up on Ruby/Rails many times out of frustration. Glad I stuck it out though.
gigawatt超过 13 年前
It's this kind of thing that makes it extremely difficult to learn programming in your spare time. Getting the dev environment set up for someone who isn't well-versed in the process is almost frustrating enough to make you quit before you even write a line of code. I think that's why I'm enjoying and sticking with the CodeYear project where other efforts have fizzled out.
bcrescimanno超过 13 年前
I was really hoping this was someone talking about making Ruby 1.9.3 compile with llvm-gcc. At home, I'm running ruby compiled with clang and I've noticed the occasional hiccup with some gems. But, unlike the author, I do use software installed with XCode (iOS dev kit) so uninstalling XCode isn't really an option.<p>For what it's worth, there are a ton of recommendations to do this same thing out there--and for many people it's just not a viable option. This isn't a success story so much as it's using a workaround. Not being part of either the Ruby or Apple dev teams, I won't say whose side this is on to fix: only that it <i>needs</i> to be fixed.
评论 #3587158 未加载
评论 #3586556 未加载
jcromartie超过 13 年前
Am I the only person that thinks RVM is a symptom of a serious problem? It should not be this hard to manage a software environment.<p>And by "hard" I don't mean "hard for end-users", although it's quite a lot of hoops to jump through for someone who just wants to get up to speed with the current state of the art. I mean the amount of work that has gone into things like RVM and Bundler and other tools to make developing serious software in Ruby possible.
评论 #3589144 未加载
tomkin超过 13 年前
One issue I always have is the various path env variables (GEM_HOME, etc) that you have to set on a per-directory basis on hosting environments. Right now, I have an alias command in my .zshrc that sets the path based on the current directory, but something tells me there is a better way to handle it.
argarg超过 13 年前
I don't think that blog posts about how one fixed a single environment setup problem is HN worthy material ...