0

I'm fairly new to rails. This may be a dumb question, but I can't seem to find a solution. Any suggestion is greatly appreciated.

I've just cloned a repository and I'm running "bundle install". I initially received a general error message regarding "rb-fsevent"when I ran "bundle install". I then just tried to install "rb-fsevent" individually, but received the following error message: (unfortunately I don't have enough reputation to post images...)


An error occurred while installing rb-fsevent (0.4.3.1), and Bundler cannot continue. Make sure that gem install rb-fsevent -v '0.4.3.1' succeeds before bundling. dhcp-50-74:sample_app SJ$ gem install rb-fsevent -v '0.4.3.1' Building native extensions. This could take a while... ERROR: Error installing rb-fsevent: ERROR: Failed to build gem native extension.

/Users/SJ/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb

creating Makefile extconf.rb:21:in `': Only Darwin systems greater than 8 (Mac OS X 10.5+) are supported (RuntimeError)

extconf failed, exit code 1


The error message seems to suggest my Mac system is not 10.5+, however, I'm using a MacbookPro running Mavericks OS X 10.9.2.

4

1 回答 1

2

首先,在这里阅读 fsevents以了解它的实际作用。

您尝试安装的 gem 取决于本机 OSX 库,您似乎无法构建它们。尝试为 OSX 安装命令行工具并再次安装 gem。

这是一个关于如何安装命令行工具的好教程:

更新

这是作为一个问题提出的,解决方法是卸载以前的版本并安装 0.9 版。

宝石安装 'rb-fsevent' -v '0.9'

或更新 Gemfile 中的 gem 依赖项:

宝石'rb-fsevent','> = 0.9'

于 2014-03-17T22:02:40.137 回答