我试图遵循这里提到的步骤:http://wiki.railsmachine.com/InstallingGit
sudo yum --enablerepo=rpmforge install xmlto curl curl-devel
# check for the latest version at http://git.or.cz/
wget http://kernel.org/pub/software/scm/git/git-1.6.6.tar.gz
tar xvzf git-*.tar.gz
cd git-*
make configure
./configure --prefix=/usr --without-tcltk
make all
sudo make install
但是,在输入make all
之后,我会遇到以下问题:
make: Warning: File `config.mak.autogen' has modification time 4e+02 s in the future
SUBDIR perl
make[2]: *** No rule to make target `/usr/lib/perl5/5.8.5/i386-linux-thread-multi/Config.pm', need ed by `perl.mak'. Stop.
make[1]: *** [all] Error 2
make: *** [all] Error 2
发布于 2010-11-26 16:32:44
如果您已经将rpmforge添加为yum源代码,那么为什么不从那里安装git包呢?这是一个比你正在编译的版本更新得多的版本。
发布于 2010-11-27 01:20:26
git tarball包含一个RPM规范文件。也就是说,您可以直接从tarball创建git二进制RPM,只需一个命令:rpmbuild -ta git-1.7.3.2.tar.gz
。
现在,您可以从RPM中进行干净的安装,而不是使用make install
直接写入文件系统。(这有许多优点,例如,如果所有东西都是由RPM安装的,那么您可以始终查询一个文件是从哪个包中得到rpm -qf FILE
的。)
https://serverfault.com/questions/206453
复制相似问题