升级之后,由于 xcode 的版本不够,所以所有 rails 里面需要 native 编译的东西,装不上了。 通过 rails s 启动 web 服务器的时候,反映变得非常慢,而且,经常会被锁住。只能通过 ctrl-c 退出。
做gem update 的时候,出现了这样一个错误。
Error loading RubyGems plugin "/Users/lukfan/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-bundler-0.3.0/lib/rubygems_plugin.rb": cannot load such file -- rubygems_bundler/rubygems_bundler_installer (LoadError)
#5 楼 @lukefan 感觉是 bundle 的版本太老了,当前通过 RVM 安装的 Bundler 的版本是 1.1.5 安装 XCode 4.4 有没有问题?没有问题的话在 XCode4.4 里面将 Command Line Tools 装好以后,升级一下 RVM,然后安装 Ruby 1.9.3-p194 吧。
rvm implode
就可以把 rvm 连同 ruby 一起卸载调,然后
curl -L https://get.rvm.io | bash -s stable --ruby
就可以一键将 RVM,Ruby1.9.3p194 连同 Bundler 一起装好。
唉,Mountain Lion 下各种问题。 用 HomeBrew 吧,openssl 问题解决不了; 用 MacPorts 吧,mysql2 安装出错…… 烦死了。
#17 楼 @xiaolai #16 楼 @southwolf 我直接从未遇到过这个问题,我的 ruby-1.9.3p194 是通过 RVM 装的,而且我也没有用 brew 装过 OpenSSL。