LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2198|回复: 15

如何安装gitweb?(解决ok)

[复制链接]
发表于 2009-6-9 15:59:46 | 显示全部楼层 |阅读模式
再原始的系统里没有这个包,google后找到gentoo-x86-portage/www-apps/gitweb并把它解压到我的本地目录,安装emerge gitweb 时候提示:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "www-apps/gitweb" have been masked.
!!! One of the following masked packages is required to complete your request:
- www-apps/gitweb-1.5.4.2 (masked by: ~x86 keyword)
- www-apps/gitweb-1.5.2 (masked by: ~x86 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

没有成功,不知道到底如何安装?
 楼主| 发表于 2009-6-10 11:43:48 | 显示全部楼层
没有人用git来管理代码吗
回复 支持 反对

使用道具 举报

发表于 2009-6-10 12:35:10 | 显示全部楼层
  1. sudo ACCEPT_KEYWORDS="~x86" emerge =www-apps/gitweb-1.5.4.2
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-6-10 12:36:39 | 显示全部楼层


* www-apps/cgit [1]
     Available versions:  (~)9999
     Homepage:            http://hjemli.net/git/cgit/about/
     Description:         a fast web-interface for git repositories
回复 支持 反对

使用道具 举报

发表于 2009-6-10 13:36:37 | 显示全部楼层
gitweb包含在git里
http://www.gentoo-cn.org/gitweb
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-11 22:31:28 | 显示全部楼层
sudo ACCEPT_KEYWORDS="~x86" emerge =www-apps/gitweb-1.5.4.2
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-apps/gitweb-1.5.4.2
* git-1.5.4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                [ ok ]
* checking ebuild checksums ;-) ...                                                                                  [ ok ]
* checking auxfile checksums ;-) ...                                                                                 [ ok ]
* checking miscfile checksums ;-) ...                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking git-1.5.4.2.tar.bz2 to /var/tmp/portage/www-apps/gitweb-1.5.4.2/work
>>> Source unpacked in /var/tmp/portage/www-apps/gitweb-1.5.4.2/work
>>> Compiling source in /var/tmp/portage/www-apps/gitweb-1.5.4.2/work/git-1.5.4.2/gitweb ...
make -j8 -C .. prefix=/usr gitweb/gitweb.cgi
make: Entering directory `/var/tmp/portage/www-apps/gitweb-1.5.4.2/work/git-1.5.4.2'
GIT_VERSION = 1.5.4.2
make: Leaving directory `/var/tmp/portage/www-apps/gitweb-1.5.4.2/work/git-1.5.4.2'
make: Entering directory `/var/tmp/portage/www-apps/gitweb-1.5.4.2/work/git-1.5.4.2'
    GEN gitweb/gitweb.cgi
make: Leaving directory `/var/tmp/portage/www-apps/gitweb-1.5.4.2/work/git-1.5.4.2'
>>> Source compiled.
>>> Test phase [not enabled]: www-apps/gitweb-1.5.4.2

>>> Install gitweb-1.5.4.2 into /var/tmp/portage/www-apps/gitweb-1.5.4.2/image/ category www-apps
* (info) /usr/portage/www-apps/gitweb/files/postinstall-en.txt (lang: en)
>>> Completed installing gitweb-1.5.4.2 into /var/tmp/portage/www-apps/gitweb-1.5.4.2/image/


>>> Installing (1 of 1) www-apps/gitweb-1.5.4.2
* Removing gitweb-1.5.4.2 from /var/www/localhost/htdocs/gitweb
*   Installed by root on 2009-06-11 22:22:25
*   Config files owned by 0:0
!empty /var/www/localhost/cgi-bin
!empty /var/www/localhost/error
!empty /var/www/localhost/icons
* Invalid line "" removed from the database file!
* Remove whatever is listed above by hand

* vhosts USE flag not set - auto-installing using webapp-config
* This is an installation
* gitweb-1.5.4.2 is not installed - using install mode
* Running /usr/sbin/webapp-config -I -h localhost -u root -d /gitweb gitweb 1.5.4.2
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed

=================================================================
POST-INSTALL INSTRUCTIONS
=================================================================

Before using gitweb please consider reading
the included Gentoo specific README.gentoo file.

=================================================================

* Install completed - success

* Running /usr/sbin/webapp-cleaner -p -C gitweb
* Nothing to clean

* Messages for package www-apps/gitweb-1.5.4.2:

* (info) /usr/portage/www-apps/gitweb/files/postinstall-en.txt (lang: en)
* vhosts USE flag not set - auto-installing using webapp-config
* This is an installation
* gitweb-1.5.4.2 is not installed - using install mode
* Running /usr/sbin/webapp-config -I -h localhost -u root -d /gitweb gitweb 1.5.4.2
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

* IMPORTANT: 5 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

没有成功安装,不知道如何解决?
回复 支持 反对

使用道具 举报

发表于 2009-6-11 22:35:38 | 显示全部楼层
你没看到我的回复么
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-11 23:13:43 | 显示全部楼层
Post by zhllg;1996747
你没看到我的回复么


你的意思是说不用装gitweb,只要git有就包含了是吗?
回复 支持 反对

使用道具 举报

发表于 2009-6-11 23:42:29 | 显示全部楼层
你需要先emerge --sync
现在的portage tree里已经没有gitweb了
回复 支持 反对

使用道具 举报

发表于 2009-6-12 16:44:06 | 显示全部楼层
老大的话一定要听~~
按照做了肯定不会有坏处,不做倒是可能是你的损失
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表