Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Nov 8 '09 at 14:08

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

add comment

6 Answers

(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
add comment

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
add comment

How are you trying to install?

I would suggest going the easy_install route.

$ sudo easy_install -U mercurial

http://mercurial.selenic.com/wiki/Download#Using_easy_install

share|improve this answer
add comment

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
add comment

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
add comment

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
1  
The development kit came with your computer, assuming you have the original CDs. You can also download it from apple.com. For MacOSX 10.5.8, you'd want to download the 10.5 version from mercurial.selenic.com/downloads. –  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 developer.apple.com/technology/xcode.html –  Mark Nov 12 '09 at 13:30
add comment

Your Answer

 
discard

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