Unable to install gclient command in ubuntu 14.04

Viewed 3764

I am installing a command called gclient in Ubuntu 14.04. But It is not working and not giving any error message. I clone command from the following repository

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

Then I run the command given below

$ export PATH=`pwd`/depot_tools:"$PATH"

When I run gclient command, it gives the following message

gwl@gwl-B85M-D3H:~/rajendra$ gclient
: No such file or directory

I am not getting what I am doing wrong.

3 Answers

Just open a session of terminal and export the path using this command.

export PATH=/path/to/depot_tools:$PATH

After that the gclient will be able to work only in that session of terminal. Once you closed it then you have to manually set path again when you open terminal.

We can export the desired path while exporting. Sample command to export the depot tools to home folder will look like below.

export PATH="$PATH:${HOME}/depot_tools"
Related