繁体   English   中英

尝试安装特定的gem'oily_png(1.2.0)'MAC OS X El Capitan时出错

[英]Getting an error trying to install a particular gem 'oily_png (1.2.0)' MAC OS X El Capitan

我在Mac OS X El Capitan上,尝试运行包安装后出现以下错误: 运行捆绑软件安装后出现终端错误

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

在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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM