OS X Snow Leopard 中的 Ruby on Rails - 我安装了哪些版本?
我一直在尝试让 Ruby on Rails 在我的 Snow Leopard 64 位 MacBook Pro 上运行。我按照《使用 Rails 进行敏捷 Web 开发》中的说明进行操作,一切似乎都安装得很好(并允许我创建演示站点),但我遇到了与 sqlite3
相关的错误当尝试在我的简单演示网站上启动 Web 服务器时(请参阅 这个问题 了解我收到的错误的详细信息)。我怀疑在某些时候我设法安装了错误的软件包版本或架构(我正在使用MacPorts),从而导致了问题。
注意:我不会重新问之前的问题,我想知道的是有没有办法可以准确确定每个 ruby 包的版本我已经安装了,它们是为什么架构构建的?
我(愚蠢地)忘记了我输入的 sudo port install
行,所以我不确定当前是什么我的系统尝试诊断如何修复它。
我想要一个类似以下内容的列表:
Ruby v.1.9.2 - 64bit
Rails v 2.1 - 32bit
... etc.
或者,我可以做一些事情(除了重新安装 OS X 和 XCode)以从系统中删除 Ruby 的所有痕迹并重新开始吗?
如果您对如何修复我遇到的 sqlite3
错误有建议,请回答上面链接的问题,而不是这里。
I've been trying to get Ruby on Rails working on my Snow Leopard 64-bit MacBook Pro. I followed the instructions in Agile Web Development with Rails and everything seemed to install fine (and allows me to create a demo site), but I got an error to do with sqlite3
when trying to start the web server on my simple demo site (see this question for details of the error I get). I suspect at some point I've managed to install the wrong version or achitecture of a package (I'm using MacPorts) which is causing the problems.
Note: I'm not re-asking that previous question, what I want to know is Is there a way I can determine exactly which versions of each ruby package I have installed, and for what architecture they were built?
I've (foolishly) lost track of the sudo port install
lines I've typed so I'm not sure what's currently on my system to try to diagnose how to fix it.
I'd like a list of something like:
Ruby v.1.9.2 - 64bit
Rails v 2.1 - 32bit
... etc.
Alternatively can I do something (short of reinstalling OS X and XCode) to remove all traces of Ruby from my system and start again?
If you have advice on how to fix the sqlite3
error I'm getting, please answer on the question linked to above, not here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装的 sudo port list
将显示您已安装的端口我也会考虑安装 RVM (http://rvm.beginrescueend.com/)(因为它允许您将所有红宝石分开)。并可以轻松地完全删除 ruby 及其所有 gems/等等。
您是从 ports 安装 ruby 还是使用系统 ruby?
ruby -v
或which ruby
显示什么?sudo port list installed
will show you what ports you have installedI would look at installing RVM (http://rvm.beginrescueend.com/) as well (as it allows you to keep all the rubies separate). and makes it easy to totally remove a ruby and all its gems/etc..
Did you install ruby from ports or are you using the system ruby?
What does
ruby -v
orwhich ruby
show ?