DebianInstall
Version 4 (Johnathan Corgan, 10/23/2007 01:29 am)
| 1 | 1 | == Installing GNU Radio == |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 4 | Johnathan Corgan | 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. |
| 4 | 4 | Johnathan Corgan | |
| 5 | 4 | Johnathan Corgan | 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. |
| 6 | 4 | Johnathan Corgan | |
| 7 | 4 | Johnathan Corgan | === Using Official GNU Radio 3.0.2 Packages ('''Not Recommended''') === |
| 8 | 4 | Johnathan Corgan | |
| 9 | 3 | 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. |
|
| 10 | 1 | ||
| 11 | 1 | If you like to use ''aptitude'', open a terminal (for example Press Alt+F2, enter xterm) and use following commands: |
|
| 12 | 1 | {{{ |
|
| 13 | 1 | aptitude install gnuradio-examples |
|
| 14 | 1 | aptitude install usrp usrp-firmware |
|
| 15 | 1 | }}} |
|
| 16 | 1 | If you like to install with a text-graphical interface, just start aptitude: |
|
| 17 | 1 | {{{ |
|
| 18 | 1 | aptitude |
|
| 19 | 1 | }}} |
|
| 20 | 1 | ||
| 21 | 1 | === Notes === |
|
| 22 | 3 | '''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'': |
|
| 23 | 1 | {{{ |
|
| 24 | 1 | deb http://ftp.at.debian.org/debian/ etch main non-free contrib |
|
| 25 | 1 | }}} |
|
| 26 | 3 | You can edit this file with your preferred editor, ''nano'' can be found on virtually every Debian system and is easy to use. |
|
| 27 | 1 | ||
| 28 | 1 | == Building from source == |
|
| 29 | 1 | ||
| 30 | 1 | To build from source you need certain packages. A basic development set can be install with the package ''build-essential'': |
|
| 31 | 1 | {{{ |
|
| 32 | 1 | aptitude install build-essential |
|
| 33 | 1 | }}} |
|
| 34 | 1 | Moreover you need the build-dependencies of GNU Radio and maybe the USRP. Debian helps you: '''apt-get'''. |
|
| 35 | 1 | ||
| 36 | 3 | '''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>'' |
|
| 37 | 1 | ||
| 38 | 1 | To install the packages needed to build GNU Radio/USRP, use following command(s): |
|
| 39 | 1 | {{{ |
|
| 40 | 1 | apt-get build-dep gnuradio |
|
| 41 | 1 | apt-get build-dep usrp |
|
| 42 | 1 | }}} |
|
| 43 | 1 | ||
| 44 | 1 | === Getting the source === |
|
| 45 | 1 | After installing the basic build-dependencies, you need the fresh source and build it. Have a look at the [wiki:BuildGuide Build Guide]. |
|
| 46 | 1 | ||
| 47 | 1 | === Resolving missing dependencies === |
|
| 48 | 3 | 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. |
|
| 49 | 3 | ||
| 50 | 3 | 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/]. |