![在 centos 5.4 32 上安装 gitolite setup -pk banruosheng.pub 失败](https://linux22.com/image/1356172/%E5%9C%A8%20centos%205.4%2032%20%E4%B8%8A%E5%AE%89%E8%A3%85%20gitolite%20setup%20-pk%20banruosheng.pub%20%E5%A4%B1%E8%B4%A5.png)
当我在 centos 5.4 上安装 gitolite 时,我发现了下面的错误。如何找到修复它们的方法?
wget http://mirror.esc7.net/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gz
tar -xvzf openssh-5.8p1.tar.gz
cd openssh-5.8p1
./configure --prefix=/usr
make
sudo make install
useradd git -g git
su git
mkdir .ssh
git clone git://github.com/sitaramc/gitolite
mkdir -p $HOME/bin
gitolite/install -to $HOME/bin
vi banruosheng.pub
gitolite setup -pk banruosheng.pub
error:bash: gitolite: command not found
bin/gitolite setup -pk banruosheng.pub
FATAL: errors found but logfile could not be created
FATAL: /home/git/.gitolite/logs/gitolite-2013-03.log: 没有那个文件或目录
FATAL: die 'banruosheng.pub' does not seem to be a valid ssh pubkey file
```
答案1
error:bash: gitolite: command not found
确保它$HOME/bin
位于您的 中$PATH
。
(请参阅“如何将目录添加到我的路径?“)