InstallingGR

Version 12 (Martin Braun, 06/28/2012 07:32 am)

1 4 Martin Braun
h1. Installing GNU Radio
2 1
3 1
{{toc}}
4 1
5 1
h2. Ways to install GNU Radio
6 1
7 8 Ben Hilburn
There are two ways to install GNU Radio: either by using pre-compiled binary packages, or manually compiling it from source. Most Linux distributions provide binary packages through their regular repositories, and this is generally the easiest and fastest way to get a running system.
8 1
9 8 Ben Hilburn
The development of GNU Radio is extremely fast-paced, however, and binaries provided by your favourite distribution are most likely outdated.
10 1
11 8 Ben Hilburn
If you want any of the following:
12 2 Martin Braun
* ...the most up-to-date code
13 2 Martin Braun
* ...to closely follow the development of GNU Radio
14 2 Martin Braun
* ...to modify GNU Radio yourself.
15 1
16 11 Martin Braun
... you will most likely want to install GNU Radio from source (see the next section). For Fedora and Ubuntu users, there is a script which does all the heavy lifting. For other distributions, you will have to run through the install process manually.
17 2 Martin Braun
18 2 Martin Braun
h2. Using the build-gnuradio script
19 2 Martin Braun
20 11 Martin Braun
The "@build-gnuradio@":http://www.sbrac.org/files/build-gnuradio is an install script for recent Fedora and Ubuntu systems provided by Marcus Leech. For most users, this is the recommended way.
21 1
22 12 Martin Braun
For the impatient: open a terminal window, move to the directory you would like the source files to be stored (e.g. 'cd src/') and run this command:
23 1
24 1
<pre>
25 12 Martin Braun
$ wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio
26 1
</pre>
27 1
28 12 Martin Braun
This downloads the installer (@build-gnuradio@) and makes it executable. It then downloads and installs all dependencies, downloads both UHD and GNU Radio from git (which means it will automatically install the latest version from the 'main' branch), runs the make process and installs it on your system. In most cases, simply running the script will do all you need to get a running GNU Radio system built from source. Also, you still have all the source code lying on your hard disk and therefore available for future modifications. It combines the flexibility of installing from source with the ease of using binaries and is recommended for most users of Ubuntu and Fedora.
29 10 Dimitrios Symeonidis
30 10 Dimitrios Symeonidis
Thanks to Marcus Leech for putting this together and hosting it.
31 11 Martin Braun
32 11 Martin Braun
h2. Using pre-compiled binaries
33 11 Martin Braun
34 11 Martin Braun
*NOTE: These are very old, and we are no longer putting new version into the standard repositories for apt-get and yum installation. We will be adding our own support for this in the near future. Meanwhile, please follow the instructions for building from source or using the build-gnuradio script (see next two sections).*
35 11 Martin Braun
36 11 Martin Braun
Pre-compiled binaries come packaged with your distribution. On Ubuntu, installing GNU Radio from binaries is as easy as calling
37 11 Martin Braun
<pre>
38 11 Martin Braun
$ apt-get install gnuradio
39 11 Martin Braun
</pre>
40 11 Martin Braun
41 11 Martin Braun
On Fedora, run
42 11 Martin Braun
<pre>
43 11 Martin Braun
$ yum install gnuradio
44 11 Martin Braun
</pre>
45 2 Martin Braun
46 2 Martin Braun
47 1
h2. Installing manually from source
48 1
49 8 Ben Hilburn
If you choose this route, you have slightly more work to do. First, you need to [[Download|download]] the code. You can get the code as a tarball or check it out from the git repository.
50 1
51 2 Martin Braun
To build GNU Radio, refer to the [[BuildGuide|build guide]].
52 2 Martin Braun
53 7 Martin Braun
If you want to be able to use USRP devices, you need to install "UHD":http://code.ettus.com/redmine/ettus/projects/uhd/wiki *before* installing GNU Radio.
54 7 Martin Braun
55 2 Martin Braun
56 1
h2. Windows users
57 1
58 2 Martin Braun
Currently, there are no up-to-date binaries available for Windows. You will need to install GNU Radio from source. For this, refer to the [[WindowsInstall|windows install guide]].
59 1
60 2 Martin Braun
61 1
h2. OK, it's installed, what now?
62 2 Martin Braun
63 2 Martin Braun
If the installation worked without any trouble, you're ready to use GNU Radio. If you have no idea how to do that, read the [[HowToUse|page on how to use GNU Radio]]. You probably want to connect some [[Hardware]] to your computer to try and receive or transmit stuff. If you or your group would like to get a professional jump start on using GNU Radio and the USRP, "Corgan Enterprises LLC":http://corganenterprises.com offers a 3-day, hands-on "training class":http://corganenterprises.com/wiki/GNU_Radio_Training, to be held at your own location.