7

I need install git (v 2.0) on slackware 14. I experience an error during

$ make install prefix=/usr/local

run in the source root:

LINK git-http-fetch
CC http-push.o
  http-push.c:17:19: fatal error: expat.h: No such file or directory
  #include <expat.h>
                  ^
  compilation terminated.
  make: *** [http-push.o] Error 1

What is missing for the compilation to proceed?

Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
henfj
  • 71
  • 1
  • 2

2 Answers2

12

I also faced same problem today.
My environment is Scientific Linux (2.6.32-431.17.1el6.x86_64).

Though I already have package:
expat.x86_64

the following package was also necessary to do "make":
expat-devel.x86_64

Therefore, I did

# yum install expat-devel

Though the environment is different, I hope this information will help you.

Vy Do
  • 46,709
  • 59
  • 215
  • 313
eng27
  • 906
  • 2
  • 8
  • 19
4

You are missing the libexpat1-dev library (Xml parsing c library)

If you can install it first (maybe with slapt-get), then you can go on with the compilation of git.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250