Reputation: 2752
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?
Upvotes: 0
Views: 338
Reputation: 11837
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?
Upvotes: 2
Reputation: 13042
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)
Upvotes: 3
Reputation: 19040
Is there any reason why you're trying to build from source instead of using the packaged installer ?
Upvotes: 1