xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools

简介: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools
  • 在使用 pyenv 安装 Python 版本的时候,报错:
configure: error: C compiler cannot create executables
See `config.log' for more details
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
  • 原因是有模块依赖 Command Line Tools(命令列开发者工具),这个工具可以独立安装,不需要系统中装有 Xcode
  • 简单来讲 Command Line Tools 就是一个小型独立包,为 mac 终端用户提供了许多常用的工具,实用程序和编译器。包括 svn、git、make、GCC、clang、perl、size、strip、strings、libtool、cpp、what ... 以及其他很多能够在 Linux 默认安装中找到的有用的命令。
  • 解决方案
    方案一:安装最新版本的 Command Line Tools
    方案二:更新 Command Line Tools 到最新版本。
    总结:直接执行下面命令,默认安装 Command Line Tools 最新版本
$ xcode-select --install
相关文章
|
6月前
|
安全 Java API
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
网上有很多解决的帖子,我这里只是记录一下方便自己查阅 主要原因是java本身需要证书 1、按导入安全证书的方法解决
798 0
Eclipse 打开marketplace 报PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
|
Ubuntu Unix Linux
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
成功解决ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
2486 0
|
6月前
|
Java 定位技术 Android开发
安装apk显示 requires unavailable shared library com.xxx
安装apk显示 requires unavailable shared library com.xxx
76 0
|
6月前
|
编译器 Linux 开发工具
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools
62 0
|
iOS开发
iOS xcrun: error: active developer path
iOS xcrun: error: active developer path
106 0
|
开发者 iOS开发
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
Xcode运行报错The operation couldn’t be completed. Unable to launch xxx because it has an invalid code...
903 0
|
Shell
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
Detected problems with app native libraries (please consult log for detail): lib.so: text relocation
164 0
|
缓存 开发工具 iOS开发
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Xcode The operation couldn’t be completed. (LaunchServicesError error 0.)问题的解决
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1错误解决办法
129 0