if you want to use the Python extension for libbcm2835, the correct procedure is like this:
first go and install the C library from this link and according to the instruction explained:
http://www.airspayce.com/mikem/bcm2835/
tar zxvf bcm2835-1.xx.tar.gz
cd bcm2835-1.xx
(run as root i.e su root)
./configure
make
sudo make check
sudo make install
second go to:
https://pypi.python.org/pypi/PyBCM2835/0.1.0
download the package:
https://pypi.python.org/packages/7b/d4/ ... 1.0.tar.gz (it may change while you are downloading so just downlaod the available version)
and according to the same site instruction take the following steps one by one:
tar xvfz bcm2835-1.22.tar.gz cd bcm2835-1.22/src
make libbcm2835.a gcc -shared bcm2835.o -o libbcm2835.so
sudo cp libbcm2835.so /usr/local/lib/
sudo cp bcm2835.h /usr/local/include/