0

I get an error message when I type in the command make when I am in the current git directory, how do I fix this issue?

This is what I type in and receive:

cd git-1.7.5.4

git-1.7.5.4$ make

~bash: make: command not found.

How do I alleviate this issue so I can run the make commands for git and curl?

2
  • @yoda git does not use Autotools. It actually uses a handwritten Makefile and a config.mak. Commented Jun 14, 2011 at 0:40
  • @monadic: Yes, I overlooked the fact that he doesn't have make installed. XCode was probably the first thing I installed when I bought my mac, so I forgot that make doesn't come with OS X by default. Commented Jun 14, 2011 at 0:42

3 Answers 3

3

You need to install Make. Most likely you do not have your operating system's toolchain installed. I believe for Mac OS X you need to install XCode, but there may be another way.

Git-specific note: You need to set your config.mak options. Notably, you should have NO_TCLTK=YesPlease if you don't have Tcl/Tk. Some other options may be necessary. Also if you don't have libcurl headers, use NO_CURL=YesPlease (WARNING: You won't be able to use http or https servers). If you do not have openssl headers, use NO_OPENSSL=YesPlease. And so on. Look in Makefile for more details.

According to the Makefile, since you are using Darwin, you need

NEEDS_CRYPTO_WITH_SSL=YesPlease
NEEDS_SSL_WITH_CRYPTO=YesPlease
NEEDS_LIBICONV=YesPlease

If you plan on using the test suite, NO_SVN_TESTS=YesPlease can speed up time to do so.

Consider enabling BLK_SHA1=YesPlease if applicable to Mac OS X. (not sure on this one)

Sign up to request clarification or add additional context in comments.

6 Comments

Deleted my answer since you've covered it in more detail.
@yoda Okay. I think I covered all the corner cases in config.mak. In can be quite tricky. I wonder why OS X doesn't give you a toolchain by default. That's quite annoying.
Is there a reason specific reason why I should download XCode? I am new to development on the mac platform. What are its advantages?
@demondeac11 Don't ask me. I use Linux for development and believe its strictly superior, but I'm biased. Apparently you can strip down your XCode install to get just the bare minimum. MacPorts also seems to be an option for a toolchain.
@demondeac11 the XCode installer contains most of the development tools you normally need. This includes GNU make, among others
|
2

Did you install XCode?

On a side note, why are you compile it yourself instead of using the precompiled binaries or installing from a package manager such as Homebrew?

3 Comments

No I have not installed XCode, I am new to the Mac platform and I didn't know that I needed an extra $5 app to start developing rails projects. What are the benefits of XCode?
@demondeac11 You only need Xcode if you want to compile source. Git is available as a binary package install from Google as mentioned by @superfell.
You can get XCode version 3.x for free from the Apple developer website developer.apple.com. The XCode installer is bundled with development tools that you will most likely need when developing on a Mac platform. Even if you don't use the IDE itself, you'll want to install XCode just to setup the development toolchain.
1

Is there any reason why you're trying to build from source instead of using the packaged installer ?

1 Comment

I am going through the rails installation guides, and am trying to follow the steps provided by Michael Hartl. I used the package installer but was running into some issues trying to get git to work correctly so I decided to do it from source like he does

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.