AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-19112

steveha's questions

Martin Hope
steveha
Asked: 2009-10-09 14:12:56 +0800 CST

如何设置 Gitweb

  • 6

我已经在服务器上设置了 Git,使用 gitosis 来控制提交访问。我想配置我的 Git 系统,以便我们防火墙内的任何人都可以读取 Git 存储库,我也想设置 Gitweb。

我在各种博客上找到了几个 Gitweb 设置教程,但它们在各种细节上有所不同,其中一些已经过时了。我希望这个问题有一个最新的答案。

我的具体设置是 Red Hat Enterprise Linux。我已经成功安装了 Git、gitosis 以及 Gitweb 和 Apache 软件包。但是,我还没有弄清楚如何配置 Apache 以实际授予对 Gitweb 的访问权限。

如何设置我的服务器以允许对 Git 进行只读访问,并允许 Gitweb 工作?

apache-2.2
  • 2 个回答
  • 25751 Views
Martin Hope
steveha
Asked: 2009-09-02 17:10:09 +0800 CST

在 RHEL 5 中,yum 找不到包(python-devel)

  • 2

在工作中,我需要在一台特定的服务器上使用 Red Hat Enterprise Linux (RHEL) 版本 5。我在 Linux 方面经验丰富,但在 RHEL 方面经验不多(在 Debian 和 Ubuntu 方面更多)。

我想安装gitosis,但是gitosis的EPEL包依赖于python-setuptools;而 python-setuptools 又依赖于 python-devel。

yum 找不到 python-devel。

EPEL 中似乎不存在 python-devel。这让我相信它可能直接在 RHEL 5 中得到支持;也许 EPEL 不提供它是因为它是 RHEL 的一部分?

检查 pbone.net 上的 RPM 搜索,我确实发现 Centos 有一个 python-devel 包,这再次让我认为 python-devel 应该由 RHEL 提供。

服务器上的 yum.conf 文件有一个 [main] 条目,其中包含“distroverpkg=redhat-release”行。目录“yum.repos.d”有这些存储库文件: epel.repo epel-testing.repo rhel-debuginfo.repo

python-devel 应该在“redhat-release”存储库中吗?我应该在我的 yum 配置中包含其他一些官方 RHEL 存储库吗?

谢谢你的帮助。


附加信息:这是命令的输出yum repolist all:


# yum repolist all
Loaded plugins: rhnplugin, security
repo id                repo name                                  status
epel                   Extra Packages for Enterprise Linux 5 - i3 enabled: 3,423
epel-debuginfo         Extra Packages for Enterprise Linux 5 - i3 disabled
epel-source            Extra Packages for Enterprise Linux 5 - i3 disabled
epel-testing           Extra Packages for Enterprise Linux 5 - Te disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 5 - Te disabled
epel-testing-source    Extra Packages for Enterprise Linux 5 - Te disabled
rhel-debuginfo         Red Hat Enterprise Linux 5Client - i386 -  disabled
rhel-i386-client-5     Red Hat Enterprise Linux Desktop (v. 5 for enabled: 5,025
repolist: 8,448

有趣的是,这台计算机似乎没有 rhel-i386-server-5 作为 repo。算不算python-devel服务器包?谁能告诉我如何启用服务器回购?

我寻找了一些设置来启用它,我能找到的只是文件/etc/yum/pluginconf.d/rhnplugin.conf,其中包含:


[main]
enabled = 1
gpgcheck = 1

[rhel-i386-server-5]
enabled = 1

编辑以添加其他信息:


# yum install gitosis
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gitosis.noarch 0:0.2-6.20080825git.el5 set to be updated
--> Processing Dependency: python-setuptools for package: gitosis
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6c7-1.el5 set to be updated
--> Processing Dependency: python-devel for package: python-setuptools
--> Finished Dependency Resolution
python-setuptools-0.6c7-1.el5.noarch from epel has depsolving problems
  --> Missing Dependency: python-devel is needed by package python-setuptools-0.6c7-1.el5.noarch (epel)
Error: Missing Dependency: python-devel is needed by package python-setuptools-0.6c7-1.el5.noarch (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

由于它被要求,输出yum search python | grep -i devel:


# yum search python | grep -i devel
TurboGears.noarch : Back-to-front web development in Python
kobo.noarch : Python modules for tools development
nettle-devel.i386 : Development headers for a low-level cryptographic library
postgresql-python.i386 : Development module for Python code to access a
python-cherrypy.noarch : A pythonic, object-oriented web development framework
python-tools.i386 : A collection of development tools included with Python.
python-tunepimp.i386 : Python bindings for developing programs that will use
wxPython-devel.i386 : Development files for wxPython add-on modules

yum
  • 2 个回答
  • 13109 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve