/Users/Louis/.rbenv/versions/2.1.5/bin/rails:23:in `load': cannot load such file -- /Users/Louis/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rails-4.1.8/bin/rails (LoadError)
from /Users/Louis/.rbenv/versions/2.1.5/bin/rails:23:in `<main>'
我最近对xcode进行了更新,在安装更新后,我无法再启动新的rails项目。当我输入:
rails new example
它显示上面的错误。我该如何解决这个问题?
编辑:
运行时:
gem install rails
出现以下消息:
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running `xcode-select --install` on
terminal and follow the instructions. If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
version and run it.
按照上面的说明操作后,它似乎解决了问题,并且在我输入时安装了rails。