我的上一篇博客講了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就好了。
祝大家成功安裝!