警告:Xcode的命令行工具似乎未安装;大多数端口可能无法建立 [英] Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build

查看:90
本文介绍了警告:Xcode的命令行工具似乎未安装;大多数端口可能无法建立的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在新的Mac上实际安装biopython. Python 2.7已安装在其中.我发现要安装biopython可以与macports一起安装.现在要安装macport,我需要xcode,但是在运行Xcode之后,我安装了成功安装的macports.然后尝试使用以下命令安装biopython: 须藤端口安装py27-biopython 但是最终出现了这样的警告: 警告:Xcode的命令行工具似乎未安装;大多数端口可能无法建立.

I was trying to actually Install biopython on my new mac. Python 2.7 is already installed in it. To install biopython I found is good to install with macports. Now to install macports I need xcode but after running Xcode I installed macports which successfully installed. Then tried to install biopython using this command: sudo port install py27-biopython But ended up in a warning like this: Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.

警告:请参见 http://guide.macports.org/chunked/installing.xcode .html 欲获得更多信息. ---> py27-biopython的计算依赖项错误:无法执行端口:无法读取"build.cmd":无法在路径中找到"make": '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin'或位于 它的MacPorts配置时间位置,您将其移动了吗?报告一个 错误,请参见 http://guide.macports.org/#project.tickets

Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information. ---> Computing dependencies for py27-biopythonError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? To report a bug, see http://guide.macports.org/#project.tickets

我是Mac OS的新手,应该怎么做

What should I be doing as I am very new to mac os

推荐答案

您可以从Mac App Store免费下载Xcode.在其中(在首选项|下载中),您可以下载并安装命令行工具.

You can get Xcode from the Mac App Store as a free download. From within that (in the preferences | downloads) you can download and install the command line tools.

您可能还需要告诉命令行工具使用Xcode应用程序捆绑包中的版本,而不要使用基于新软件包的安装中没有的/Developer中的版本.

You might also need to tell the command line tools to use the versions within the Xcode app bundle rather than those in /Developer which aren't there with the new package based install.

从终端运行此命令

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

这篇关于警告:Xcode的命令行工具似乎未安装;大多数端口可能无法建立的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆