vote up 0 vote down star

I can't install mercurial. I am getting this error -

 --->  Computing dependencies for mercurial<br>
 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?
flag

migrated from stackoverflow.com

6 Answers

vote up 3 vote down

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.

link|flag
vote up 2 vote down

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

link|flag
vote up 1 vote down

(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.

link|flag
vote up 0 vote down

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.

link|flag
Which will show whether make is in any directory in $PATH. It still could be somewhere else. – David Thornley Nov 6 at 21:22
true.. but then we can at least verify whether make is callable by the build scripts. – Tereno Nov 7 at 4:45
vote up 0 vote down

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?

link|flag
vote up 0 vote down

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?

link|flag
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 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 at 13:30

Your Answer

Get an OpenID
or
never shown

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