« Previous - Version 5/17 (diff) - Next » - Current version
Martin Dvh, 07/15/2008 01:45 am
added link for installing wxgtk-2.8 on debian-etch from repository


Installing GNU Radio

The official Debian package repository has GNU Radio 3.0.2 available, though this is rather obsolete. More recent packages for the 3.1 stable release series will be available soon to [wiki:DebianPackages install GNU Radio on Debian] etch systems without the need to do a source compile and installation.

In the meantime, it is recommended that you [wiki:BuildGuide complete a source build] from the 3.1 stable series either through downloading a [wiki:Release3.1Branch] tarball or using Subversion to check out the software from our subversion repository.

=== Using Official GNU Radio 3.0.2 Packages ('''Not Recommended''') ===

Installing GNU Radio in Debian is straight forward. You just need the package ''gnuradio-examples'' for the software part, and ''usrp'' and ''usrp-firmware'' if you like to use an USRP. From Debian 4.0 (Etch) on, '''aptitude''' is the prefered package management program. You can use the graphical tools '''synaptic''' and '''packagesearch''' as well.

If you like to use ''aptitude'', open a terminal (for example Press Alt+F2, enter xterm) and use following commands: {{{
aptitude install gnuradio-examples
aptitude install usrp usrp-firmware
}}}
If you like to install with a text-graphical interface, just start aptitude: {{{
aptitude
}}}

=== Notes ===
'''usrp-firmware''' is built with non-free software, with the result that the package is in the ''contrib'' part of the repository. Make sure your ''/etc/apt/sources.list'' has a line with the keyword ''contrib'': {{{
deb http://ftp.at.debian.org/debian/ etch main non-free contrib
}}}
You can edit this file with your preferred editor, ''nano'' can be found on virtually every Debian system and is easy to use.

Building from source

To build from source you need certain packages. A basic development set can be install with the package ''build-essential'': {{{
aptitude install build-essential
}}}
Moreover you need the build-dependencies of GNU Radio and maybe the USRP. Debian helps you: '''apt-get'''.

'''Note:''' Debian has one source package for gnuradio named ''gnuradio'' which builds to many binary packages. To get the name of a source package for a binary package, have a look at ''apt-cache showsrc <packagename>''

To install the packages needed to build GNU Radio/USRP, use following command(s): {{{
apt-get build-dep gnuradio
apt-get build-dep usrp
}}}

=== Getting the source ===
After installing the basic build-dependencies, you need the fresh source and build it. Have a look at the [wiki:BuildGuide Build Guide].

=== Resolving missing dependencies ===
In the first place you should have a look at the README file for the current dependencies. ''dpkg -l |grep <packagename>'' is your friend to see your current installed versions.

If you get errors about missing programs/libraries or wrong versions, use the package management system like described above. To find the name of a package that provides a certain file use the [http://www.debian.org/distrib/packages.en.html#search_contents Debian package search page]. To get old versions of packages have a look at [http://snapshot.debian.net/].

If you want to build a recent svn snapshot of gnuradio you need wxgtk version 2.8 or later.
Debian Etch only has wxgtk version 2.6 which is not recent enough.
But you can install more recent wxgtk versions from the wxwidgets debian and ubuntu repository.

See [http://wiki.wxpython.org/InstallingOnUbuntuOrDebian Installing wxgtk-2.8 on debian etch]