[root@localhost ~]# git --version -bash: git: command not found

2014-06-19 16:50:50 +08:00
 youshen
这要怎么办?
6171 次点击
所在节点    git
22 条回复
jedyu
2014-06-19 17:12:59 +08:00
怎么装的?应该是PATH问题吧
youshen
2014-06-19 17:19:03 +08:00
@jedyu 我也不懂 小白一个 照着教程装的 第三步就卡在这了。
jedyu
2014-06-19 17:21:23 +08:00
@youshen 安装步骤呢?什么系统?
youshen
2014-06-19 17:21:28 +08:00
youshen
2014-06-19 17:21:55 +08:00
@jedyu centos5.0
jedyu
2014-06-19 17:24:46 +08:00
@youshen yum install git有报错吗?
试一下下面这条命令,找一下有没有git:
find / -name git
youshen
2014-06-19 17:27:49 +08:00
@jedyu [root@localhost ~]# find / -name git
find: WARNING: Hard link count is wrong for /sys/devices/virtual/misc: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
jedyu
2014-06-19 17:33:52 +08:00
@youshen 额,试试find /usr -name git
youshen
2014-06-19 17:35:21 +08:00
@jedyu
[root@localhost ~]# find /usr -name git
[root@localhost ~]#
tywtyw2002
2014-06-19 17:36:19 +08:00
估计是是卡pgp证书了。git没撞上。 重新装git
jedyu
2014-06-19 17:39:08 +08:00
重装git
youshen
2014-06-19 17:47:44 +08:00
实在不懂 谢谢楼上两位了。
lu18887
2014-06-19 17:59:22 +08:00
@youshen 你要先会使用centos
youshen
2014-06-19 18:03:48 +08:00
@lu18887 我一点都不会,看这个教程说的那么简单,就买了VPS弄了个centos准备装的,结果不行,现在打算试试http://teddysun.com/339.html 教程。
taobeier
2014-06-19 18:20:04 +08:00
终端执行
yum list git

看看本机是否已经安装成功git

如果提示已经安装的话,执行 which git 看看在哪里

如果提示木有安装的话, yum install git -y 进行安装即可
youshen
2014-06-19 18:36:31 +08:00
@taobeier 谢谢
banbanchs
2014-06-19 18:53:22 +08:00
wget https://github.com/madeye/shadowsocks-libev/archive/v1.4.5.tar.gz

tar xvzf shadowsocks-libev-1.4.5.tar.gz
cd shadowsocks-libev-1.4.5

./configure && make
make install
lu18887
2014-06-19 20:00:50 +08:00
@youshen 先从虚拟机玩起,当然,vps的钱就当学费咯。。你那个网址里的,是Python版的Shadowsocks了,而且偏长,可能会看的云里雾里的。
youshen
2014-06-19 21:06:36 +08:00
@lu18887 嗯 谢谢,看来我还是老老实实的建个VPN吧。
youshen
2014-06-19 21:06:52 +08:00
@banbanchs 谢谢

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/118446

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX