How to install the GNU radio on Ubuntu

Source: Internet
Author: User
Tags date redmine

First of all, I have to say that installing the GNU radio on Ubuntu is really not a simple thing for beginners. I did not know from the beginning of a little to the last familiarity, understanding, the successful installation of the GNU Radio spent about 3 days a full time. Now share what you have learned in this process and hope it will help.

There are generally two ways to install the GNU radio: 1. Automatic installation via script file; 2. Download the appropriate version file yourself, compile and install yourself. The first method belongs to the automatic installation, can not let us specifically understand the installation process, not conducive to future learning. And this method is often not easy to succeed, need to wait for a long time, affected by a number of factors. I have tried this method myself and it is difficult to succeed. Therefore, I do not recommend here. I will describe the second method in detail below.

In addition, on the installation of Ubuntu system you can refer to my previous essay "Install Ubuntu on Windows System", the contents of which are more detailed.

And it's also important to choose the right GNU Radio version of your Ubuntu system version, and the different versions of the GNU Radio download link are: Http://gnuradio.org/redmine/projects/gnuradio/files. I installed the system for Ubuntu12.04 LTS, the GNU Radio version, which was first recommended for download in many tutorials on the web, is GNU radio-3.4.2.tar.gz. The result is that the installation was unsuccessful, and in which case the error was made, and I will explain it in the following installation steps. I later replaced the GNU Radio version of 3.5.1, which was successfully installed in the same way.

First you need to configure the installation environment for your system. The method is simple, just open the terminal and enter a section of code corresponding to your system. Specific code can refer to: Http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall. For example, I installed Ubuntu 12.04, so my code is:

sudo apt-get-y install git-core autoconf automake libtool g++ Python-dev swig \

Pkg-config libboost1.48-all-dev libfftw3-dev Libcppunit-dev libgsl0-dev \

Libusb-dev SDCC libsdl1.2-dev python-wxgtk2.8 python-numpy \

Python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \

Libqt4-opengl-dev Libqwt5-qt4-dev Libfontconfig1-dev Libxrender-dev (the above process, if it is the first time, will take a long time, please wait patiently.) Sometimes because of the speed, some components can not be one-time installation success, need to be prompted to further install! )

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

Installing the GNU Radio recommends installing the UHD driver first, otherwise the error will be in the next installation. The reference site is: Http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki/UHD_Linux. My step is: first in the terminal input

sudo apt-get install python libboost-all-dev Libusb-1.0-0-dev then enter at the end:

sudo bash-c ' echo ' deb http://files.ettus.com/binaries/uhd_stable/repo/uhd/ubuntu/' Lsb_release-cs ' Lsb_release-cs ' Main ">/etc/apt/sources.list.d/ettus.list"

sudo apt-get update

sudo apt-get install-t ' Lsb_release-cs ' UHD (generally after the first paragraph of code input, the terminal will automatically run, but often the error. For example, you will appear:

Libboost-all-dev: Dependent: Libboost-dev But it will not be installed

Dependencies: Libboost-date-time-dev But it will not be installed

Dependencies: Libboost-filesystem-dev But it will not be installed

Dependencies: Libboost-graph-dev But it will not be installed

..................................................................

..................................................................

At this point, you need to enter sudo apt-get install Libboost-dev in the terminal according to the specific prompts,

sudo apt-get install Libboost-date-time-dev,...... The hint is not installed all installed, you can. This step is sometimes to install more than 10 components, you need patience to operate. )

Manually unzip the GNU radio source code to the home folder, open the terminal (ctrl+alt+t) and enter the main folder in the GNU Radio directory you just unzipped, for example, I am entering the gnuradio-3.5.1 directory. Execute sequentially:./configure, make, make check, and sudo make install command. Normally, errors such as Gcell, Gr-gcell, gr-shd, Gr-comedi, etc. occur when the./configure command is complete. Mistakes of course the less the better, if the second part is not successfully completed, there will be GR-UHD errors. In general, gr-shd errors can be ignored, Gcell, Gr-gcell sometimes appear, sometimes will not appear, can also be ignored, generally do not affect the next installation. For Gr-comedi errors, you can resolve them by typing in the terminal: sudo apt-get install libcomedi0 Libcomedi-dev. There is a lot of information on the web that is input sudo apt-get install libcomedi0, I verify that this way can not be successful.

Make this step may also have an error. I have been the error, on the internet to find a lot of methods, can not be resolved, and finally the GNU Radio version of their download from 3.4.2 replaced 3.5.1, after a retry, successfully installed. That's why I started by saying that choosing the right version is so important.

After the above command is lost, if all goes well, you can enter the Gnuradio-companion test for successful installation at the terminal. You will typically jump out of the GNU Radio Operation window to prove that you have successfully installed it. Sometimes it will jump out of the dialog box: "Cannot import gnuradio." Are your Pythonpath and Ld_library_path set correctly? ", you can execute the following command:

Export path= $PATH:/usr/local/bin

Export Ld_library_path= $LD _library_path:/usr/local/lib

Export Pkg_config_path= $PKG _config_path:/usr/local/lib/pkgconfig

Export pythonpath= $PYTHONPATH:/usr/local/lib/python2.6/site-packages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.