Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't install Mercurial. I am getting this error:

---> Computing dependencies for mercurial
Error: 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?

share|improve this question

migrated from Nov 8 '09 at 14:08

This question came from our site for professional and enthusiast programmers.

(I'm not using Mac myself, but I've seen these support requests before...)

Please try one of our binary packages for Mac OS X. Normal users should not be bothered with installing compilers and make just to use Mercurial...

Also, easy_install route is anything but easy unless you have a compiler and the required Python header files installed since easy_install will want to compile the C extensions we use. Better to stick with a binary package, IMHO.

share|improve this answer

It looks like you're trying to install Mercurial via MacPorts. Since MacPorts builds its ports from source (at least mine does, and yours seems to also), you'll also need to install the Mac OS X developer tools. You can do this by finding your Mac OS X install disc and installing Xcode from it.

share|improve this answer

How are you trying to install?

I would suggest going the easy_install route.

$ sudo easy_install -U mercurial

share|improve this answer

Is this compiling from source or installing one of the handy Leopard and Snow Leopard binaries?

Moreover, have you installed the Mac development kit? (Macintoshes, like Windows machines, do not normally come with development software installed.) If so, have you moved anything later?

share|improve this answer

You would have to install the program 'make' from MacPorts. Either that or it can't find it in one of the directories that it lists in path.

You can verify if you have make just by typing 'make -v' in a Terminal.

share|improve this answer
Which will show whether make is in any directory in $PATH. It still could be somewhere else. – David Thornley Nov 6 '09 at 21:22
true.. but then we can at least verify whether make is callable by the build scripts. – Tereno Nov 7 '09 at 4:45

Tereno: I don't have make, how I can install?

David: I don't have snow leopard , I have leopard 10.5.8, I didn't install Mac development kit. From where I can find Mac Development Kit?

share|improve this answer
The development kit came with your computer, assuming you have the original CDs. You can also download it from For MacOSX 10.5.8, you'd want to download the 10.5 version from – David Thornley Nov 6 '09 at 21:47
You should definitely get the development kit from the Apple site as the one on the Leopard CD is older and I think you need a later version for Macports see – Mark Nov 12 '09 at 13:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.