尝试安装特定的宝石时遇到错误' oily_png(1.2.0)' MAC OS X El Capitan

时间:2015-10-22 23:56:07

标签: ruby-on-rails ruby rubygems osx-elcapitan

我在Mac OS X El Capitan上,在尝试运行捆绑安装后,我收到以下错误: Terminal Error after running bundle install

有人可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

在Mac上随时升级Xcode或操作系统时,似乎有可能删除命令行工具。

 xcode-select --install 

在终端窗口中,将安装工具,这也可以在xcode应用程序内完成。

[~] xcode-select -h
Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).

Options:
  -h, --help                  print this help message and exit
  -p, --print-path            print the path of the active developer directory
  -s <path>, --switch <path>  set the path for the active developer directory
  --install                   open a dialog for installation of the command line developer tools
  -v, --version               print the xcode-select version
  -r, --reset                 reset to the default command line tools path

如果您安装了多套工具(例如测试版),-s, --switch标志也有助于将其指向您想要使用的工具(或者如果指向的版本已删除)