在 CentOS 5.5 上安装 Gitolite 时出现问题

发布于 2024-10-05 13:52:08 字数 1180 浏览 0 评论 0原文

我希望有人能够指出我哪里出错了。我正在尝试使用 Git,并尝试在我的 CentOS 5.5 开发服务器上安装 Gitolite。

我一直在遵循此处找到的指南: http://www.atomcloud.co.uk/blog/creating-your-own-git-repository-server-with-gitolite/ 一直很好,直到安装 Gitolite 为止。

该指南建议运行的命令是:

cd $HOME
git clone git://github.com/sitaramc/gitolite gitolite-source
cd gitolite-source
mkdir -p /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks
src/gl-system-install /usr/local/bin /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks

包括 mkdir 行在内的所有内容都很好。但是,当运行命令

src/gl-system-install /usr/local/bin /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks

时,似乎什么也没有发生。我更改为 src 并尝试在前面没有 src/ 的情况下运行该命令,并收到以下错误:

cp: cannot stat `src/*': No such file or directory
cp src/* to usr/local/bin failed

下面它建议使用 /usr/local/bin/gl-system-install 但是在运行时它会返回同样的错误。

我尝试在 Google 上搜索答案,发现 Gitolite 的 GitHub 页面上也列出了同一批命令,但我看不到任何对这种性质的错误的引用。

显然我遗漏了一些东西或者我的测试服务器配置错误。当涉及到 Linux 命令行时,我是一个非常初学者,所以任何有关这方面的帮助将不胜感激。

标记

Am hoping someone might be able to point out where I'm going wrong. I'm experimenting with Git and am trying to install Gitolite on my CentOS 5.5 development server.

I have been following a guide found here: http://www.atomcloud.co.uk/blog/creating-your-own-git-repository-server-with-gitolite/ which has been fine until it gets to the point of installing Gitolite.

The commands that the guide advises to run are:

cd $HOME
git clone git://github.com/sitaramc/gitolite gitolite-source
cd gitolite-source
mkdir -p /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks
src/gl-system-install /usr/local/bin /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks

Everything up to and including the mkdir line are fine. However when running the command

src/gl-system-install /usr/local/bin /usr/local/share/gitolite/conf /usr/local/share/gitolite/hooks

nothing seems to happen. I changed to src and tried running the command there without the src/ in front of it and I get the following error:

cp: cannot stat `src/*': No such file or directory
cp src/* to usr/local/bin failed

Beneath it advises the usage as being /usr/local/bin/gl-system-install however when running that it returns the same error.

I've tried Googling about for an answer and have found that the same batch of commands are also listed on the GitHub page for Gitolite, but I cannot see any reference to an error of this nature.

Obviously something I'm missing or a misconfiguration with my test server. I'm very much a beginner when it comes to the Linux command line so any help with this would be much appreciated.

Mark

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-10-12 13:52:08

要调试此问题,我将从 src/ 文件夹开始并运行 ls 以确保该目录中的文件存在。您收到的错误消息表明 src 目录中不存在文件,尽管这可能更多是路径问题。

/usr/local/src 通常由 root 用户拥有,您的用户帐户(非 root 用户)无权写入该目录。另一件要尝试的事情是运行 sudo ./home//gitolite-source/src/gl-system-install 您的用户帐户名在哪里。这需要您可能必须从系统管理员那里获得 sudo 权限。

在此列出所有新的错误消息。祝你好运!

To debug this, I'd start at the src/ folder and run ls to make sure files in that directory exist. The error message you're getting suggests that no files exist inside the src directory although it is probably more of a path problem.

/usr/local/src is usually owned by root and your user account (not root) won't have access to write to that directory. Another thing to try is to run sudo ./home/<youruser>/gitolite-source/src/gl-system-install Where is your user account name. This requires sudo privileges you might have to get from your sysadmin.

List any new error messages out here. Good luck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文