Compiling software
Sometimes, you’ll find you need software that isn’t in the repository, and
so you can’t get it using
apt-get
. In this case, you’ll need to compile it.
Different projects package their source code
in different ways, but usually, the following
will work. Get the source code from the
project’s website, and unzip it. Usually,
the filename will end in .tar.gz or .tgz. If
this is the case, you can unzip it with:
tar zxvf <filename>
If the filename ends in .tar.bzip2, you need
to replace
zxvf
with
xjf
. This should
now create a new directory which you
need to
cd
into. Hopefully, there’ll be a
file called
INSTALL
, which you can read
with
less INSTALL
This should tell you
how to continue with the installation.
Usually (but not always), it will say:
./configure
make
sudo make install
The first line will check you have all the
necessary dependencies on your system.
If it fails, you need to make sure you have
the relevant -dev packages installed.
If that all works, you should have the
software installed and ready to run.
■
The Pi Store is an app store
for your Raspberry Pi.
Raspberry Pi store
The Raspberry Pi store allows
users to rate the software, so you
can see how useful other people
have found it. It also includes
some non-free software. However,
it doesn’t have anywhere near
the range that is available
through
apt-get
or
Synaptic
.
19
Raspberry Pi User Guide.indd 19
08/07/2014 14:44