Hardware Reference
In-Depth Information
From a terminal, type the following (all on one line) to download the code:
wget http://pypi.python.org/packages/source/s/simplejson/
simplejson-3.3.0.tar.gz
he tar.gz file extension tells you that the file is zipped to save space and is a tar archive. A
tar archive is often used in Linux as it provides a convenient way to package multiple files
and preserve file permissions and other attributes. It is possible to unzip the file and then
untar a file as separate operations, but because so many tar archives are compressed, it is
possible to do it in a single action. To unzip and untar the compressed archive, type the fol-
lowing on the command line:
tar xvf simplejson-3.0.7.tar.gz
As the command executes, it lists the files as they are expanded (unpacked) from the archive.
Change into the newly expanded directory by typing the following in a terminal:
cd simplejson-3.3.7
On Linux, most software that is supplied as source code shares a similar installation process
of extract, build and install. Many Python modules follow this same pattern. Because a mali-
cious user could insert a module that would cause harm, you need to use sudo to provide
enough access privileges to install the module. Type the following to install the package:
python setup.py build
sudo python setup.py install
After the module has installed, return to the parent directory by typing the following:
cd ..
httplib2
Follow the same procedure to install the httplib2 package from http://code.google.com/p/
httplib2. In a terminal, type the following:
wget http://httplib2.googlecode.com/files/httplib2-0.8.tar.gz
tar xvf httplib2-0.8.tar.gz
cd httplib2-0.8
python setup.py build
sudo python setup.py install
cd ..
Search WWH ::




Custom Search