我的上一篇博客讲了gnuradio的安装,当初虽说是安装成功了,但是现在想想,当初的成果只是个备胎呀~~~
首先我想说,想要了解学习gnuradio的同学,最权威的资料还是gnuradio的官网,里面的资料是最全面的,且是最新的。希望大家如果出现问题,在官网上来找解答。链接:http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR 。
还有一点就是安装就要安装最新的版本,因为gnuradio的更新是非常快的。安装过老的版本,往往会出现很多问题。
脚本安装是最简单的方法,官网上的权威说法是:
Using the build-gnuradio script
The build-gnuradio
is an install script for recent Fedora and Ubuntu systems provided by Marcus Leech.
The build-gnuradio
script has a number of options that we can use to install different versions of GNU Radio. Just running build-gnuradio
with no additional options, it fetches/builds the latest released version from the 3.7 series.
Passing the flag -m
will fetch and build master/HEAD.
Passing the flag -o
will fetch and build the latest in the old 3.6 series.
For the impatient: open a terminal window, move to the directory you would like the source files to be stored (e.g. 'cd src/'), remove old build-gnuradio file, and run this command:
$ wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio
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 'master' branch), runs the make process, and installs it on your system (a lot of this is done silently, so if there's a lot to do for the script, don't be surprised if it doesn't say anything for a while). In most cases, simply running the script will do all you need to get a running GNU Radio system built from source. Also, you will 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.
Thanks to Marcus Leech for putting this together and hosting it.
意思很简单,就是在终端直接输入wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio
过程是很长,而且与网速有关,大家要耐心等待。其中几步需要大家操作一下,就是输入y就好了。
祝大家成功安装!