InstallingGR

Version 11 (Martin Braun, 05/23/2012 03:34 pm)

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 1
It 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.
23 1
24 1
Download the script from http://www.sbrac.org/files/build-gnuradio. Save it wherever you want the GNU Radio source code to be copied to (or copy it somewhere into your $PATH). You might have to give it executable permissions by running
25 1
<pre>
26 1
$ chmod a+x build-gnuradio
27 1
</pre>
28 1
29 1
Then, simply call the script by
30 1
<pre>
31 1
$ ./build-gnuradio
32 1
</pre>
33 1
34 10 Dimitrios Symeonidis
That's it!
35 10 Dimitrios Symeonidis
36 10 Dimitrios Symeonidis
Thanks to Marcus Leech for putting this together and hosting it.
37 11 Martin Braun
38 11 Martin Braun
h2. Using pre-compiled binaries
39 11 Martin Braun
40 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).*
41 11 Martin Braun
42 11 Martin Braun
Pre-compiled binaries come packaged with your distribution. On Ubuntu, installing GNU Radio from binaries is as easy as calling
43 11 Martin Braun
<pre>
44 11 Martin Braun
$ apt-get install gnuradio
45 11 Martin Braun
</pre>
46 11 Martin Braun
47 11 Martin Braun
On Fedora, run
48 11 Martin Braun
<pre>
49 11 Martin Braun
$ yum install gnuradio
50 11 Martin Braun
</pre>
51 2 Martin Braun
52 2 Martin Braun
53 1
h2. Installing manually from source
54 1
55 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.
56 1
57 2 Martin Braun
To build GNU Radio, refer to the [[BuildGuide|build guide]].
58 2 Martin Braun
59 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.
60 7 Martin Braun
61 2 Martin Braun
62 1
h2. Windows users
63 1
64 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]].
65 1
66 2 Martin Braun
67 1
h2. OK, it's installed, what now?
68 2 Martin Braun
69 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.