I am trying to install the pg
gem in OSX Yosemite beta. It's giving me an error You have to install development tools first.
So I try xcode-select --install
and it tells me they are already installed:
我正在尝试在OSX Yosemite beta中安装pg gem。它给了我一个错误你必须先安装开发工具。所以我尝试xcode-select --install,它告诉我它们已经安装:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
xcode-select:错误:已安装命令行工具,使用“软件更新”安装更新
Anyone have any idea what's up? Is it because I'm using RVM?
任何人都知道怎么了?是因为我正在使用RVM吗?
2 个解决方案
#1
3
Perhaps this problem has to do with a recent update of XCode. After a XCode update you need to do the following steps:
也许这个问题与最近的XCode更新有关。更新XCode后,您需要执行以下步骤:
- Open Xcode and accept the license agreement
- 打开Xcode并接受许可协议
- Reinstall the Command Line Tools.
- 重新安装命令行工具。
The second step seems to depend on your OS versions. If xcode-select --install
does not work try to start the Install Command Line Developer Tools
app in /System/Library/CoreServices
.
第二步似乎取决于您的操作系统版本。如果xcode-select --install不起作用,请尝试在/ System / Library / CoreServices中启动Install Command Line Developer Tools应用程序。
After reinstalling the Command Line Tools try to rerun bundle install
.
重新安装命令行工具后,尝试重新运行bundle install。
#2
0
I was having similar issues, you can accept Xcode terms from terminal.
我有类似的问题,你可以从终端接受Xcode术语。
I believe the command is:
我相信命令是:
sudo xcrun cc
And follow on screen directions.
并按照屏幕说明进行操作。
#1
3
Perhaps this problem has to do with a recent update of XCode. After a XCode update you need to do the following steps:
也许这个问题与最近的XCode更新有关。更新XCode后,您需要执行以下步骤:
- Open Xcode and accept the license agreement
- 打开Xcode并接受许可协议
- Reinstall the Command Line Tools.
- 重新安装命令行工具。
The second step seems to depend on your OS versions. If xcode-select --install
does not work try to start the Install Command Line Developer Tools
app in /System/Library/CoreServices
.
第二步似乎取决于您的操作系统版本。如果xcode-select --install不起作用,请尝试在/ System / Library / CoreServices中启动Install Command Line Developer Tools应用程序。
After reinstalling the Command Line Tools try to rerun bundle install
.
重新安装命令行工具后,尝试重新运行bundle install。
#2
0
I was having similar issues, you can accept Xcode terms from terminal.
我有类似的问题,你可以从终端接受Xcode术语。
I believe the command is:
我相信命令是:
sudo xcrun cc
And follow on screen directions.
并按照屏幕说明进行操作。