Command Line Tool For Mac

Mac OS X Mavericks made installation of Xcode Command Line Tools much simpler. Alternatives The OSX GCC Installer is an open source project to provide the GCC compiler and related tools. The Blog How to: Fix Java Command-Line Tool Pop-Up on Mac OS Truong Nguyen August 29, 2017 How-To After upgrading to a newer version of Mac OS X (Yosemite 10.10 and El Capitan 10.11) or macOS (Sierra 10.12 and High Sierra 10.13), you may end up getting an annoying new pop-up message whenever you start your computer.

Active1 year, 10 months ago

I installed CMake literally two days ago with no problems through the GUI and selecting 'Install Command Line Tools'. I just got a brand new Macbook and trying to install CMake again but the option has changed to 'How to Install Command Line Tools' and just crashes the app when clicked

Is there a reason it has changed? Is there another way to install the command line tools?

RyanOfCourseRyanOfCourse
4611 gold badge5 silver badges15 bronze badges
Command Line Tool For Mac

2 Answers

As of version 3.9.4, the 'How to Install Command Line Tools' says:

One may add CMake to the PATH:

PATH='/Applications/CMake.app/Contents/bin':'$PATH'

Or, to install symlinks to '/usr/local/bin', run:

sudo '/Applications/CMake.app/Contents/bin/cmake-gui' --install

Or, to install symlinks to another directory, run:

sudo '/Applications/CMake.app/Contents/bin/cmake-gui' --install=/path/to/bin

The middle option worked perfectly for what I needed: installing an older version of Swift using swiftenv.

Tool
leanneleanne

Looks like CMake 3.3.0 is broken in that respect...

Anyone finding themselves in the same situation should do what I've just done and revert to 3.2.3 and then the 'Install Command Line Tools' is back in business

RyanOfCourseRyanOfCourse
4611 gold badge5 silver badges15 bronze badges

Install Command Line Tools Mac

Not the answer you're looking for? Browse other questions tagged macosterminalcmake or ask your own question.