gitweb 当前版本在 ubuntu 12.04 LTS 上失败

标签 git ubuntu

在 ubuntu 12.04 LTS 上,我尝试安装 gitweb(在 2012-06-05 上): 我这样做了:

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

wf@capri:/sonstiges/pub/2012$ scp git-b811d5a.tar.gz wf@jolo:/tmp
git-b811d5a.tar.gz                            100%   77KB  76.5KB/s   00:00   
root@jolo:/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

复制原件

root@jolo:/usr/local/src/git-b811d5a# cp /usr/lib/cgi-bin/gitweb.cgi /tmp

开始制作

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

制作失败:

root@jolo:/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.

需要做什么才能使 make 工作?

最佳答案

这是我在 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

root@jolo:/usr/local/src/git# chmod +x GIT-VERSION--GEN 
root@jolo:/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

关于gitweb 当前版本在 ubuntu 12.04 LTS 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12961631/

相关文章:

node.js - 安装 Node/运行 npm install 的问题

ubuntu - 无法在 Postfix 上切换到 Let's Encrypt 证书,邮件客户端仍在使用旧证书 - Ubuntu 服务器

Docker CE 安装错误 - Ubuntu 16.04 ppc64le (IBM Power)

git - 列出 git repo 中的标签,按它们在图表中的显示方式排序

git - 如何在没有服务器的情况下使用 tortoise git(本地单用户)

c++ - 用于单用户开发的 Git merge/ rebase 策略

git - 撤消脏工作树上的 git stash pop

linux - Bash 脚本 - 管理服务器导航

python - 如何重置Ubuntu的默认python?

linux - 如何为 buildbot 用户设置 SSH key