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

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

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

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