脚本安装uhd+gnuradio 下载本文

我是在ubuntu14.04LTS上面安装的

1. 在http://www.sbrac.org/files/build-gnuradio上面下载脚本

然后用终端再ubuntu主文件下面新建一个脚本,命令如下 $ gedit build-gnuradio.sh把刚才复制的脚本粘贴保存 最好在主文件夹下面,不容易出错 2. 修改权限

$ chmod 775 build-gnuradio.sh 3. 运行脚本开始安装 $ ./build-gnuradio.sh

4.执行脚本过程

$ ./build-gnuradio.sh

This script will install Gnu Radio from current GIT sources

You will require Internet access from the computer on which this script runs. You will also require SUDO access. You will require approximately 500MB of free disk space to perform the build.

This script will, as a side-effect, remove any existing Gnu Radio

installation that was installed from your Linux distribution packages. It must do this to prevent problems due to interference between

alinux-distribution-installed Gnu Radio/UHD and one installed from GIT source.

The whole process may take up to two hours to complete, depending on the capabilities of your system.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

NOTE: if you run into problems while running this script, you can re-run it with the --verbose option to produce lots of diagnostic output to help debug problems.

This script has been written to anticipate some of the more common problems one might encounter building ANY large, complex software package. But it is not pefect, and there are certainly some situations it could encounter that it cannot deal with gracefully. Altering the system configuration from something reasonably standard, removing parts of the filesystem, moving system libraries around arbitrarily, etc, it likely cannot cope with. It is just a script. It isn't intuitive or artificially

intelligent. It tries to make life a little easier for you, but at the end of the day if it runs into trouble, a certain amount of knowledge on your part about system configuration and idiosyncrasies will inevitably be necessary.

Proceed?y【输入y之后回车】

Starting all functions at: 2016年 04月 30日星期六 23:01:31 CST SUDO privileges are required

Do you have SUDO privileges?y【输入y之后回车】 Continuing with script

[sudo] password for hells: 【输入密码】 Installing prerequisites.

====> THIS MAY TAKE QUITE SOME TIME <=====【开始检查包】 Checking for package libfontconfig1-dev Checking for package libxrender-dev Checking for package libpulse-dev Checking for package swig Checking for package g++

Checking for package automake Checking for package autoconf Checking for package libtool

Checking for package python-dev Checking for package libfftw3-dev Checking for package libcppunit-dev Checking for package libboost-all-dev Checking for package libusb-dev

Checking for package libusb-1.0-0-dev Checking for package fort77

Checking for package libsdl1.2-dev Checking for package python-wxgtk2.8 Checking for package git-core Checking for package libqt4-dev Checking for package python-numpy Checking for package ccache

Checking for package python-opengl Checking for package libgsl0-dev

Checking for package python-cheetah Checking for package python-mako Checking for package python-lxml Checking for package doxygen Checking for package qt4-default Checking for package qt4-dev-tools Checking for package libusb-1.0-0-dev Checking for package libqwt5-qt4-dev

Checking for package libqwtplot3d-qt4-dev Checking for package pyqt4-dev-tools Checking for package python-qwt5-qt4 Checking for package cmake Checking for package git-core Checking for package wget Checking for package libxi-dev

Checking for package python-docutils Checking for package gtk2-engines-pixbuf Checking for package r-base-dev Checking for package python-tk Checking for package liborc-0.4-0

Checking for package liborc-0.4-dev Checking for package libasound2-dev Checking for package python-gtk2 Checking for package libzmq1 Checking for package libzmq1-dev

Failed to find package 'libzmq1-dev' in known package repositories SOME THINGS MAY NOT BUILD AS A RESULT Checking for package libzmq Checking for package libzmq-dev

Checking for package python-requests Checking for package libncurses5 Checking for package libncurses5-dev

Done checking packages【此处时间会长一点,等……】 Done

This script will fetch Gnu Radio version 3.7/maint from the repositories, along with compatible extras.

Is this OK?y【输入y回车】

Fetching various packages (Gnu Radio, UHD, gr-osmosdr, gr-iqbal, etc) via the Internet

=======> THIS MAY TAKE QUITE SOME TIME <=========

Fetching Gnu Radio via GIT...Done【开始git程序包,根据网速,时间不一样,但一般会很长】 Fetching UHD via GIT...Fetching rtl-sdr (rtl-sdr, gr-osmosdr, gr-iqbal, hackrf, bladeRF and airspy) via GIT Done

Starting function uhd_build at: 2016年 04月 30日星期六 23:58:08 CST Building UHD...【开始安装UHD,时间有点长……】

=============> THIS WILL TAKE SOME TIME <=============

Done building/installing UHD

Done function uhd_build at: 2016年 05月 01日星期日 00:17:53 CST Starting function firmware at: 2016年 05月 01日星期日 00:17:53 CST Images destination: /usr/local/share/uhd/images Downloading images from: http://files.ettus.com/binaries/images/uhd-images_003.010.git-197-g053111dc.zip

Downloading images to: /tmp/tmpMlLS_l/uhd-images_003.010.git-197-g053111dc.zip 52600 kB / 52600 kB (100%)

Images successfully installed to: /usr/local/share/uhd/images

Done function firmware at: 2016年 05月 01日星期日 00:27:21 CST

Starting function gnuradio_build at: 2016年 05月 01日星期日 00:27:21 CST /usr/local/lib already in ld.so.conf.d Doing ldconfig...

一直等到再次输入密码