git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
youshen
V2EX  ›  git

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

  •  
  •   youshen · Jun 19, 2014 · 7531 views
    This topic created in 4524 days ago, the information mentioned may be changed or developed.
    这要怎么办?
    22 replies  •  2014-06-20 11:52:36 +08:00
    jedyu
    jedyu
    Jun 19, 2014❤️1
    1
    怎么装的?应该是PATH问题吧
    youshen
    youshen
    OP
    Jun 19, 2014
    2
    @jedyu 我也不懂 小白一个 照着教程装的 第三步就卡在这了。
    jedyu
    jedyu
    Jun 19, 2014
    3
    @youshen 安装步骤呢?什么系统?
    youshen
    youshen
    OP
    Jun 19, 2014
    5
    @jedyu centos5.0
    jedyu
    jedyu
    Jun 19, 2014
    6
    @youshen yum install git有报错吗?
    试一下下面这条命令,找一下有没有git:
    find / -name git
    youshen
    youshen
    OP
    Jun 19, 2014
    7
    @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
    jedyu
    Jun 19, 2014
    8
    @youshen 额,试试find /usr -name git
    youshen
    youshen
    OP
    Jun 19, 2014
    9
    @jedyu
    [root@localhost ~]# find /usr -name git
    [root@localhost ~]#
    tywtyw2002
    tywtyw2002
    Jun 19, 2014 via iPhone
    10
    估计是是卡pgp证书了。git没撞上。 重新装git
    jedyu
    jedyu
    Jun 19, 2014
    11
    重装git
    youshen
    youshen
    OP
    Jun 19, 2014
    12
    实在不懂 谢谢楼上两位了。
    lu18887
    lu18887
    Jun 19, 2014❤️1
    13
    @youshen 你要先会使用centos
    youshen
    youshen
    OP
    Jun 19, 2014
    14
    @lu18887 我一点都不会,看这个教程说的那么简单,就买了VPS弄了个centos准备装的,结果不行,现在打算试试http://teddysun.com/339.html 教程。
    taobeier
    taobeier
    Jun 19, 2014
    15
    终端执行
    yum list git

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

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

    如果提示木有安装的话, yum install git -y 进行安装即可
    youshen
    youshen
    OP
    Jun 19, 2014
    16
    @taobeier 谢谢
    banbanchs
    banbanchs
    Jun 19, 2014
    17
    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
    lu18887
    Jun 19, 2014
    18
    @youshen 先从虚拟机玩起,当然,vps的钱就当学费咯。。你那个网址里的,是Python版的Shadowsocks了,而且偏长,可能会看的云里雾里的。
    youshen
    youshen
    OP
    Jun 19, 2014
    19
    @lu18887 嗯 谢谢,看来我还是老老实实的建个VPN吧。
    youshen
    youshen
    OP
    Jun 19, 2014
    20
    @banbanchs 谢谢
    byelims
    byelims
    Jun 19, 2014
    21
    @youshen 楼上 @banbanchs 正解,不必装 git。昨天入手了一个 VPS,默认系统好像也是 CentOS 5.0,编译时报错,不知你会不会遇到。后来我把系统重装成了 Debian 7,安装就很简单了。
    youshen
    youshen
    OP
    Jun 20, 2014
    22
    @byelims 后来换了CentOS 6.5 可以了 开网页速度还可以 但是打开YouTube很慢,优化了没什么效果,还是换回了windows2003建了个VPN。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:11 · PVG 02:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.