为什么让Ruby on Rails在Mac上运行如此困难?在Windows上它很容易,但在我的Mac上,我现在不得不使用它,它只是不想玩球!
我进入项目目录并运行:
rails server
终端说:
You have requested:
sqlite3 >= 0
The bundle currently has sqlite3 locked at 1.3.10.
Try running `bundle update sqlite3`
Run `bundle install` to install missing gems.
所以我运行bundle update sqlite3但是得到:
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
...
An error occurred while installing debugger (1.6.8), and Bundler cannot
continue.
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.
然后我运行gem install debugger -v' 1.6.8'
Building native extensions. This could take a while...
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/Users/me/.rbenv/versions/2.1.5/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
答案 0 :(得分:0)
您没有共享日志,但我建议您检查/安装Xcode命令行工具,您可以这样做:
xcode-select --install
或者打开Xcode并使用GUI安装它们。