GIT的预编译二进制文件

时间:2014-04-23 10:34:47

标签: git git-svn

我正在尝试在redhat linux机器上安装git但是得到以下错误,因为C编译器违反了我工作的安全策略。

configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
configure: CHECKS for programs
checking for cc... no
checking for gcc... no
configure: error: in `/home//git-1.9.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

有没有人知道我可以在哪里获得Git 1.9.2的预编译二进制文件?看了网后我找不到任何东西。如果没有如何在没有C编译器的情况下安装git

由于

1 个答案:

答案 0 :(得分:0)

在redHat上,我更喜欢使用http://rpm.pbone.net之类的搜索引擎,在这里您可以:

  • 选择目标体系结构(例如“ RedHat EL 7”)
  • 输入'git-core'

我可以轻松获得相对较新的rpm(Git 2.19 for instance),并且using rpm2io/cpio可以将其提取/“安装”到需要测试的任何位置。