InstallingGR
Version 13 (Martin Braun, 06/28/2012 07:36 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 | 13 | Martin Braun | There are two ways to install GNU Radio: either by using pre-compiled binary packages, or manually compiling it from source. The development of GNU Radio is extremely fast-paced, however, and binaries provided by your favourite distribution are most likely outdated. |
| 8 | 1 | ||
| 9 | 8 | Ben Hilburn | If you want any of the following: |
| 10 | 2 | Martin Braun | * ...the most up-to-date code |
| 11 | 2 | Martin Braun | * ...to closely follow the development of GNU Radio |
| 12 | 2 | Martin Braun | * ...to modify GNU Radio yourself. |
| 13 | 1 | ||
| 14 | 1 | ... 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. |
|
| 15 | 1 | ||
| 16 | 13 | Martin Braun | Note that if you do use pre-compiled binaries (e.g. through 'apt-get install gnuradio'), you will probably *not* get the most current version, and GNU Radio is changing a lot at the moment. So don't expect any help on the mailing list! |
| 17 | 13 | Martin Braun | |
| 18 | 2 | Martin Braun | h2. Using the build-gnuradio script |
| 19 | 2 | Martin Braun | |
| 20 | 1 | 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 | 12 | Martin Braun | |
| 22 | 1 | 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 | <pre> |
|
| 24 | 12 | Martin Braun | $ wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio |
| 25 | 1 | </pre> |
|
| 26 | 1 | ||
| 27 | 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. |
| 28 | 10 | Dimitrios Symeonidis | |
| 29 | 10 | Dimitrios Symeonidis | Thanks to Marcus Leech for putting this together and hosting it. |
| 30 | 11 | Martin Braun | |
| 31 | 11 | Martin Braun | h2. Using pre-compiled binaries |
| 32 | 11 | Martin Braun | |
| 33 | 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).* |
| 34 | 11 | Martin Braun | |
| 35 | 11 | Martin Braun | Pre-compiled binaries come packaged with your distribution. On Ubuntu, installing GNU Radio from binaries is as easy as calling |
| 36 | 11 | Martin Braun | <pre> |
| 37 | 11 | Martin Braun | $ apt-get install gnuradio |
| 38 | 11 | Martin Braun | </pre> |
| 39 | 11 | Martin Braun | |
| 40 | 11 | Martin Braun | On Fedora, run |
| 41 | 11 | Martin Braun | <pre> |
| 42 | 11 | Martin Braun | $ yum install gnuradio |
| 43 | 11 | Martin Braun | </pre> |
| 44 | 2 | Martin Braun | |
| 45 | 2 | Martin Braun | |
| 46 | 1 | h2. Installing manually from source |
|
| 47 | 1 | ||
| 48 | 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. |
| 49 | 1 | ||
| 50 | 2 | Martin Braun | To build GNU Radio, refer to the [[BuildGuide|build guide]]. |
| 51 | 2 | Martin Braun | |
| 52 | 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. |
| 53 | 7 | Martin Braun | |
| 54 | 2 | Martin Braun | |
| 55 | 1 | h2. Windows users |
|
| 56 | 1 | ||
| 57 | 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]]. |
| 58 | 1 | ||
| 59 | 2 | Martin Braun | |
| 60 | 1 | h2. OK, it's installed, what now? |
|
| 61 | 2 | Martin Braun | |
| 62 | 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. |