bashmacosterminalzshgclient

ZSH: command not found


I want to execute command gclient. I have already included its location in PATH. But I cannot directly execute it by command. Can someone tell me why?

~
❯ echo $PATH
/User/merle/depot_tools:/Users/merle/.nvm/versions/node/v11.10.0/bin:/usr/local/opt/mysql@5.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands

~
❯ ls depot_tools | grep gclient
README.gclient.md
annotated_gclient.py
gclient
gclient-new-workdir.py
gclient.bat
gclient.py
gclient_completion.sh
gclient_eval.py
gclient_paths.py
gclient_scm.py
gclient_utils.py

~
❯ gclient
zsh: command not found: gclient

~
❯ cd depot_tools

~/depot_tools master
❯ ./gclient
Usage: gclient.py <command> [options]

Meta checkout dependency manager for Git.

Commands are:.......

Solution

  • Take another look at your path:

    export PATH=/User/merle/depot_tools:/Users/merle/...
    

    Does your system contain just 1 User or multiple Users???

    It should read:

    export PATH=/Users/merle/depot_tools:/Users/merle/...