【发布时间】:2014-06-08 03:13:41
【问题描述】:
我正在尝试在 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
谢谢
【问题讨论】:
-
来自您的 linux 发行版的包管理器或 PPA。对于 Windows,有带有安装程序的 msysgit
-
我不知道有任何存储库为 Red Hat 提供了这种新的 Git。过去,我在允许 C 编译器的机器上通过 building an RPM 处理过类似的情况,然后在目标机器上安装该 RPM。
-
也许这个关于ServerFault的答案很有用:serverfault.com/questions/81362/…