Skip to content

How To Install GoogleCL

matt wilkie edited this page Aug 1, 2017 · 3 revisions

Please note that we haven't tried all of these methods, and there may be a package/port in your distribution's package manager that we're not aware of. If something seems amiss, ask around on the mailing list, or file an issue in the tracker.

Dependencies

Python 2.5 or 2.6

gdata

While we've made efforts to be backwards compatible all the way back to gdata 1.2.4, there are a few things that will not work. If you're having trouble, see the troubleshooting guide.

All systems

From source

Fortunately, installing GoogleCL is super easy, because it's all Python. Download the latest .tar.gz, unpack it, and run setup.py to install it system wide or just run it from the src/ directory. -- Note: as of February 2, 2012, docs are broken with the .tar.gz versions of GoogleCL. If you need docs support, checkout GoogleCL from svn.

tar xvf googlecl-x.x.x.tar.gz
cd googlecl-x.x.x

then

sudo python setup.py install --record=files.txt (creates a list of files installed and saves it in files.txt)

OR don't install it and just use it this way:

cd src/
./google

PyPi (The Cheeseshop)

There are a few ways to access the cheeseshop:

easy_install: easy_install googlecl
pip: pip install googlecl
PyPM: pypm install googlecl

GNU/Linux

Debian and company (e.g. Ubuntu)

Installation should be very simple. Grab the .deb file from the Downloads section, cd to your downloads directory, and run

sudo dpkg -i googlecl*.deb Note: We've heard of problems from Hardy users and Debian Lenny (unless you've enabled backports).

python-gdata version Note that most versions of Ubuntu only come standard with gdata 1.2.4, so you may see a message like:

"Editing documents is not supported for gdata-python-client < 2.0" If you need to use tasks unsupported by gdata-1.2, you'll need to manually install a newer version of the gdata and gdata python libraries.

Mac

Someone on reddit says that it's available via macports:

sudo port install googlecl

If it's not there, run sudo port selfupdate, then try again.

bodo.tasche reports that Brew has removed the googlecl package because it is part of pip. To install pip and then googlecl, use

brew install pip
pip install googlecl

Windows

0.9.8 and up

The zip file available in the Downloads section contains an executable called "google" that you can run from inside that folder. Running it will bring up the interactive shell prompt (> ) where you can enter commands such as docs list or blogger post "Hello World!"

If it crashes, does nothing, or says "MCVCR71.dll not found" you may need a DLL from Microsoft installed via this tool.

0.9.7 and earlier

Isaac Truett wrote up a HOWTO on his blog: http://publicint.blogspot.com/2010/06/setup-googlecl-on-winxp.html

FreeBSD

There is a FreeBSD port available under net/googlecl