我有一个OS X 10.8.2的macbook pro.XCode已安装.我知道它出现在Applications目录中.在/ usr/bin中还有xcodebuild和xcode-select文件我需要知道是否安装了命令行工具.有命令吗?我该怎么做才能看到是否安装了XCode CLT,如果是,则查找安装的版本?
我刚刚从OS X 10.11"El Capitan"升级到10.12:"Sierra",当我尝试访问终端内的git命令时,我收到以下错误:
xcrun:错误:无效的活动开发人员路径
(/ Library/Developer/CommandLineTools),缺少xcrun:
/库/开发商/ CommandLineTools在/ usr/bin中/ xcrun
如果有人有解决方案,请帮助我.
当我输入git init时,我遇到了这个错误,试图推送到git.
xcrun:错误:无效的活动开发人员路径
(/ Library/Developer/CommandLineTools),缺少xcrun:/ Library/Developer/CommandLineTools/usr/bin/xcrun
我尝试了以下解决方案.
xcode-select —install,
sudo xcode-select -switch,
sudo xcode-select —install,
brew doctor,
brew update,
brew upgrade,
brew cleanup
Run Code Online (Sandbox Code Playgroud) 我今天升级到MacOS Sierra并像往常一样转到我的仓库,但没有一个git命令工作,实际上我的机器无法识别我安装了git.救命?
我发现这篇文章,但似乎有点精心.
今天我决定学习并开始用 Rust 编码,因为它是一种非常有前途的语言。但是,我尝试在 rust 中编译并运行一个简单的 Hello world 程序,但由于某种原因出现此错误。有人能告诉我出了什么问题吗?
这是我的防锈代码:
fn main(){
println!("Hi");
}
Run Code Online (Sandbox Code Playgroud)
这是错误消息:
错误:与
cc失败:退出代码:1 | = 注意:“cc”“-m64”“-L”“/Users/moo7md/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib”“test.test. 7rcbfp3g-cgu.0.rcgu.o" "test.test.7rcbfp3g-cgu.1.rcgu.o" "test.test.7rcbfp3g-cgu.2.rcgu.o" "test.test.7rcbfp3g-cgu.3 .rcgu.o" "test.test.7rcbfp3g-cgu.4.rcgu.o" "test.test.7rcbfp3g-cgu.5.rcgu.o" "-o" "test" "test.5fi6c8ty3hqyycqf.rcgu.o " "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/moo7md/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users /moo7md/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-a5984f6fc2a4870f.rlib"
安装json(1.8.1)时发生错误,Bundler无法继续.gem install json -v '1.8.1'在捆绑之前确保成功.xcrun:错误:无效的活动开发人员路径(/ Library/Developer/CommandLineTools),缺少xcrun:/ Library/Developer/CommandLineTools/usr/bin/xcrun
make failed,退出代码1
我知道这已经发布但我已经尝试了捆绑更新,捆绑安装并将gem文件放在我的gem文件和bundle install中,但其他答案都没有效果.
想法?
我刚刚更新到 High Sierra,现在无法构建任何 GoLang 应用程序。我收到以下错误:
> # command-line-arguments
/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Run Code Online (Sandbox Code Playgroud)
我努力了
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
和
xcode-select --reset
Run Code Online (Sandbox Code Playgroud)
但都没有效果,有其他人遇到过吗?
这与xcode-select 活动开发人员目录错误非常相似,但这些解决方案都不适合我。
$ sudo xcode-select --reset
$ sudo xcodebuild -license accept
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
$ sudo xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Run Code Online (Sandbox Code Playgroud)
我的机器上什至没有 xcode。