Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build [closed]

Tags:

python

macos

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.

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

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

like image 272
Satish Nair Avatar asked Mar 28 '12 09:03

Satish Nair


People also ask

How do I open Xcode command line tools on a Mac?

Start Xcode on the Mac. Choose Preferences from the Xcode menu. In the General window, click the Locations tab. On the Location window, check that the Command Line Tools option shows the Xcode version (with which the Command Line Tools were installed).

What is Apple Xcode command line tools?

The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the /Library/Developer/CommandLineTools directory.

How do I know if Xcode is installed on my Mac?

We'll use Finder to find out if XCode is installed. In Finder, select the Go pull-down menu, and select Applications. Or just use the short-cut key Command-Shift-A while Finder is active. This should open a new Finder window, showing all the Applications installed on your machine.


2 Answers

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.

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.

Run this from the Terminal:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
like image 101
Abizern Avatar answered Oct 13 '22 22:10

Abizern


Don't forget what I forgot: After installing Xcode 4.3, the Command Line Tools must be installed. This is done from the Downloads section of Xcode's preferences!!!

like image 30
Madeline Avatar answered Oct 13 '22 22:10

Madeline