2012-10-18 36 views
1

在Ubuntu 12.04 LTS我试图安装的GitWeb(上2012-06-05): 我这样做:的GitWeb当前版本做出的Ubuntu 12.04失败LTS

下载快照/sonstiges/pub/2012/git-b811d5a.tar.gz和解压

原来

[email protected]:/usr/local/src/git-b811d5a# cp /usr/lib/cgi-bin/gitweb.cgi /tmp 

开始

[email protected]:/sonstiges/pub/2012$ scp git-b811d5a.tar.gz [email protected]:/tmp 
git-b811d5a.tar.gz       100% 77KB 76.5KB/s 00:00 
[email protected]:/usr/local/src# tar xvfz /tmp/git-b811d5a.tar.gz 
git-b811d5a/ 
git-b811d5a/INSTALL 
git-b811d5a/Makefile 
git-b811d5a/README 
git-b811d5a/gitweb.perl 
git-b811d5a/static/ 
git-b811d5a/static/git-favicon.png 
git-b811d5a/static/git-logo.png 
git-b811d5a/static/gitweb.css 
git-b811d5a/static/gitweb.js 

化妆副本让

make prefix=/usr gitweb       
make gitwebdir=/usr/lib/cgi-bin install-gitweb 

化妆失败:

[email protected]:/usr/local/src/git-b811d5a# make prefix=/usr gitweb 
    SUBDIR ../ 
make[1]: *** No rule to make target `GIT-VERSION-FILE'. Stop. 
make: *** No rule to make target `gitweb'. Stop. 

需要怎么做才能得到使工作?

回答

1

这是我在2012-06做:

modify directory structure as in 
http://git.kernel.org/?p=git/git.git 

get GIT-VERSION--GEN from 
http://git.kernel.org/?p=git/git.git;a=blob_plain;f=GIT-VERSION-GEN;h=955b02b48032db91d80d8009da28e1d15099c56c;hb=f623ca1cae600e97cb0b38131fdd33e4fb669cf8 

[email protected]:/usr/local/src/git# chmod +x GIT-VERSION--GEN 
[email protected]:/usr/local/src/git# ./GIT-VERSION--GEN 

这里是我在2014-05做:

sudo git clone git://git.kernel.org/pub/scm/git/git.git 
cd git 
sudo curl -O http://git.kernel.org/?p=git/git.git;a=blob_plain;f=GIT-VERSION-GEN;h=955b02b48032db91d80d8009da28e1d15099c56c;hb=f623ca1cae600e97cb0b38131fdd33e4fb669cf8 
sudo chmod +x GIT-VERSION-GEN 
sudo ./GIT-VERSION-GEN 
sudo make prefix=/usr gitweb 
sudo make gitwebdir=/usr/lib/cgi-bin install-gitweb 
+0

修改目录结构中 HTTP://饭桶。 kernel.org/?p=git​​/git.git意味着什么?我遇到同样的问题 –

+0

嘿,我面临同样的问题。你能否详细解释一下。 –

+0

查看2014-05指令 - 刚刚测试了一分钟 –