InstallingGR

= From Binaries =

The recommended way to install GNU Radio on most platforms is using already available binary packages. For some platforms there are no binaries provided by available package managers or the GNU Radio project. In these cases please contact maintainer of the package manager or the GNU Radio project to find a sensible way to provide binaries for your platform.

In addition to using binaries, GNU Radio can be installed:


 * 1) From source (for those who want full control)
 * 2) Using PyBOMBS (for those who want it built from source and/or installed to a specific directory using a script)

Linux
Most distributions contain a package named  or similar in their standard repositories. For most use cases it is enough to install this package and start developing.

The development of GNU Radio is can be fast-paced, and binaries provided by your distribution may be outdated. '''Do check if the version you're installing is up to date! Sometimes old versions are not updated in the packaging systems.''' If you find a bug in a older GNU Radio version, please check if the bug still exists in the newer version of GNU Radio before filing it.

If the version shipped in your distribution is outdated please contact the corresponding maintainer to update it in the packaging system.

Examples of how to install GNU Radio in various Linux distributions (click each one for more installation details):

On other distributions, simply use the appropriate package management command to install the  package and add it to this list. If you need newer versions or have a different platform please contact the package maintainer of your distribution or raise your issue on the mailing list.

Ubuntu PPA Installation
For Ubuntu, the latest builds (both released and pulled from master branch) are maintained as PPAs on launchpad. Be sure to uninstall gnuradio first.

To access the latest released version, add the gnuradio/gnuradio-releases ppa (removing other gnuradio ppas if already configured)

$ sudo add-apt-repository ppa:gnuradio/gnuradio-releases

To access the latest from the master branch, add the gnuradio/gnuradio-master ppa (removing other gnuradio ppas if already configured)

$ sudo add-apt-repository ppa:gnuradio/gnuradio-master

To access the 3.7 released version (legacy), add the gnuradio/gnuradio-releases-3.7 ppa (removing other gnuradio ppas if already configured)

$ sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7

Then, update the apt sources, and install gnuradio $ sudo apt-get update $ sudo apt install gnuradio

Fedora COPR Installation
Packages are available for Fedora 29,30,31 hosted under COPR:

https://copr.fedorainfracloud.org/coprs/gnuradio/

1. Add the repository:

-- For the latest released version: $ sudo dnf copr enable gnuradio/gnuradio-releases -- For the latest pull from git master: $ sudo dnf copr enable gnuradio/gnuradio-master

2. Install GNU Radio $ sudo dnf install gnuradio

Windows
Binary installers are now available for 3.8.0.0, download them here.

If you need to install GNU Radio from source refer to the Windows install guide.

Note: We do not officially support Windows. We do our best to provide installation instructions and work out build bugs on Windows when they are reported and patches received. As new versions of GNU Radio, its dependencies, and Windows itself come out, however, keeping all of them working together is beyond the scope of what the project currently supports. User updates to the above wiki installation instructions are very welcome.

Mac OS X
Refer to the Mac OS X install guide page.

= From Source =

Binary installation should be sufficient for most users, and certainly for anyone who is new to GNU Radio. However, if you have special requirements, want the latest version, or the binary packages are not working for you, you may want to install GNU Radio from source.

To install system wide
It doesn't matter which directory you start in; it can be home, ~/Downloads, etc.; but gnuradio will become a sub-directory of that starting point. When you start, if you get the following error message:
 * # change `maint-3.8` if you want to use a different version; see releases
 * # see other options below
 * Note: if your computer has multiple cores, you can use the -j option for 'make' to speed compilation, e.g.  but specify one less than the total so the system does not appear to 'freeze'.
 * # see other options below
 * Note: if your computer has multiple cores, you can use the -j option for 'make' to speed compilation, e.g.  but specify one less than the total so the system does not appear to 'freeze'.
 * # see other options below
 * Note: if your computer has multiple cores, you can use the -j option for 'make' to speed compilation, e.g.  but specify one less than the total so the system does not appear to 'freeze'.



then put the following in your  or   file and restart your terminal. For ALL 32-bit systems and ALL Debian / Ubuntu (and derivative) systems, use: export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3/site-packages:$PYTHONPATH For other 64-bit systems, use: export PYTHONPATH=/usr/local/lib64/python3/site-packages:$PYTHONPATH

Common cmake flags
For a list of additional cmake flags, as well as minimum versions of dependencies, see
 * This enables (or disables for =OFF) the GNU Radio component named XXX. You might not need all of them, and this way, you can compile quicker.
 * Install your stuff to XXX.
 * This causes gcc to add debug symbols to all binaries. Useful for debugging (otherwise, it decreases efficiency!)
 * This selects the Python version and executable to be used during build time and will determine which Python libraries will be used for building the Python bindings.

= Using PyBOMBS =

PyBOMBS is good at building GNU Radio, UHD, and various Out of Tree (OOT) modules from source and then installing into a specified user directory rather than in the system files. PyBOMBS detects the user's Operating System and loads all of the prerequisites in the first stage of the build.

The PyBOMBS documentation is in the PyBOMBS README.

= OK, it's installed, what now? =

If the installation worked without any trouble, you're ready to use GNU Radio! If you have no idea how to do that, the best place to start is with the Tutorials.