# How to install gnuradio with pybombs

**URL:** <https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884>\
**Category:** GNU Radio\
**Created:** [September 4, 2014, 9:43am UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884 "2014-09-04T09:43:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 4, 2014, 9:43am UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/1 "2014-09-04T09:43:44Z")

</div>

Hi everyone,

I’m very new to gnuradio, & i’m trying to follow instructions from  
[http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart).

On the page it is stated that, Upon running the first install command  
you  
will be prompted for a few simple preferences such as

- which install prefix to use
- cmake debug flags to use
- how to try to satisfy dependencies (typically “rpm,src” for  
fedora/centos/RHEL and “deb,src” for debian/ubuntu or just “src” to  
ignore  
the system package manager)

Can anyone please explain what should we do during the process above?  
Sorry  
for this very basic question.

Thanks

Sammy

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 4, 2014, 11:24am UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/2 "2014-09-04T11:24:20Z")

</div>

Sammy,

don’t hesitate asking basic questions (as long as they’re not answered  
directly on the web site 😃 ).

See comments inline:

On 09/04/2014 09:42 AM, sammy zada wrote:

> Hi everyone,
> 
> I’m very new to gnuradio, & i’m trying to follow instructions from  
> [http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart).
> 
> On the page it is stated that, Upon running the first install command  
> you will be prompted for a few simple preferences such as
> 
> - which install prefix to use

This is where you install stuff. The typical system-wide directory is  
/usr/local on Linux, but we recommend you don’t do that but rather  
install into a user-writable dir, such as ~/target.  
If unsure, you can use the default.

> - cmake debug flags to use

If unsure, use the default.

> - how to try to satisfy dependencies (typically “rpm,src” for  
> fedora/centos/RHEL and “deb,src” for debian/ubuntu or just “src” to  
> ignore the system package manager)

If a package is missing, where do we get it from? Say we’re missing  
Boost, we need to install it before we can proceed. pybombs can use the  
package manager of your system, or compile from src.  
deb,src is a good setting for Debian/Ubuntu, because it tries to use the  
standard package installer if possible, but can always fall back on to  
the source build, which should always work.

If unsure, leave the default.

Hope this helps.

M

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 4, 2014, 12:01pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/3 "2014-09-04T12:01:27Z")

</div>

Hi Martin,

Thanks for your explanation. I’ve try to run the instructions on the  
website, i build the new directory ~/gnuradio, and run the following  
commands under the ~/gnuradio directory:

openbts@openbts:~/gnuradio$ git clone git://github.com/pybombs/pybombs  
Cloning into ‘pybombs’…  
remote: Counting objects: 907, done.  
remote: Total 907 (delta 0), reused 0 (delta 0)  
Receiving objects: 100% (907/907), 717.55 KiB | 220 KiB/s, done.  
Resolving deltas: 100% (513/513), done.  
openbts@openbts:~/gnuradio$ cd pybombs/  
openbts@openbts:~/gnuradio/pybombs$ sudo ./pybombs install gnuradio  
Initializing config file…  
Username for GIT access  
gituser [root]:

what should i filled in the gituser [root]:…???

Thanks for the explanations.

sammy

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 4, 2014, 12:06pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/4 "2014-09-04T12:06:56Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi Sammy!

Just use the default , which is the value in the brackets , by  
hitting enter.

Greetings,  
Marcus

On 04.09.2014 11:59, sammy zada wrote:

> KiB/s, done. Resolving deltas: 100% (513/513), done.
> 
> > > fedora/centos/RHEL and “deb,src” for debian/ubuntu or just  
> > > If unsure, leave the default.
> > 
> > mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> > [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1

iQEcBAEBAgAGBQJUCDlpAAoJEAFxB7BbsDrL+ZcH/23GJxy28XRG2/B1Q7ZLEAB4  
3SNc8QjiqG8zcDU8VWB4Z+wd6WjYH+CdjBoaCw3OroSnFSrET9+ptotaJ/PATSFL  
TE/6FZUfD0PMvMSSccAqdSQE4Gbq9mw2bhpqIjtLbhsZ68D+huioWcbTmc9xSwsh  
v/O3bBeIAIo87Mdqmd27wBaLgS5RWYebSJ531ayicE8S3GLkYP3UBeeXzVHf5MPJ  
Xmv0skcdBMJLGkhQ4QoWmUHIm17vtYweqyKJY8XXpzIrOms/qve57dtLf7kB79B5  
GzndfINW3+i+6BqkGFycOAmwwAGBI3mRFeTDZ4mnu6bffh+bWo93HbNMf20Xg7A=  
=TYAw  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 4, 2014, 1:30pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/5 "2014-09-04T13:30:28Z")

</div>

You do not need to put sudo before ‘./pybombs install gnuradio’ as it  
can  
install everything as the local user.

Mike

–  
Mike J. M0MIK BSc MIET  
Ettus R. Technical Support  
Email: removed\_email\_address@domain.invalid  
Web: [http://ettus.com](http://ettus.com)

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 4, 2014, 3:54pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/6 "2014-09-04T15:54:58Z")

</div>

Taking Martin and Marcus’ responses here, I’ve added a bit to the  
QuickStart guide to briefly explain the options a bit more. See the  
bottom  
of the page:

[http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart)

Tom

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 5, 2014, 6:35am UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/7 "2014-09-05T06:35:21Z")

</div>

Hi everyone,

Thanx for the detail explanation, i have followed some of your advice on  
the email above. I use default for the option, these is the results:  
…  
Run VOLK Profile to choose fastest kernels[Y]/N?  
Submit anonymous VOLK performance statistics to [stats.gnuradio.org](http://stats.gnuradio.org)?  
Y/[N]?  
please wait … running volk profile, this will take several minutes…  
shellexec\_long: volk\_profile  
Traceback (most recent call last):  
File “./pybombs”, line 132, in   
pybombs\_ops.install(p, not opts.force);  
File “/home/openbts/gnuradio/pybombs/mod\_pybombs/pybombs\_ops.py”, line  
122, in install  
run\_volk\_profile();  
File “/home/openbts/gnuradio/pybombs/mod\_pybombs/pybombs\_ops.py”, line  
82, in run\_volk\_profile  
perf = shellexec\_getout(“volk\_profile”);  
File “/home/openbts/gnuradio/pybombs/mod\_pybombs/sysutils.py”, line  
306,  
in shellexec\_getout  
raise e;  
OSError: [Errno 2] No such file or directory

Can you guys give me clue to solve this problem, thanx for the answers  
and  
your patience.

Regards,  
Sammy

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 5, 2014, 3:14pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/8 "2014-09-05T15:14:36Z")

</div>

On Fri, Sep 5, 2014 at 12:34 AM, sammy zada [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> File “./pybombs”, line 132, in   
> OSError: [Errno 2] No such file or directory
> 
> Can you guys give me clue to solve this problem, thanx for the answers and  
> your patience.
> 
> Regards,  
> Sammy

Luckily, that’s just some stuff that happens at the end once GNU Radio  
is  
installed. So you should have a fully installed GNU Radio system. Why  
that’s happening now, I don’t understand. What OS are you using?

Also, you should be able to run volk\_profile yourself. Can you do that  
from  
a command line and see if it works properly on its own?

Tom

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 11, 2014, 3:36pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/9 "2014-09-11T15:36:59Z")

</div>

On Wed, Sep 10, 2014 at 11:04 PM, sammy zada [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I also cannot run other function like uhd\_fft:  
> octoclock\_firmware\_burner uhd\_rx\_cfile  
> gr\_filter\_design gr\_psd\_plot\_f iceboxadmin  
> uhd\_cal\_rx\_iq\_balance volk-config-info  
> I guess there is something went wrong here. Could anyone give clue…???  
> Any help would be very appreciated.
> 
> Thanks
> 
> Sammy

See this page:

[http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart)

Specifically, follow the instructions for running “./pybombs env” and  
then  
sourcing the resulting file. I looks like you just don’t have the  
library  
and binary paths set up properly.

Tom

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 11, 2014, 5:05am UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/10 "2014-09-11T05:05:37Z")

</div>

Hi Tom,

Thanks for the answers, and sorry for the late response. I’m using  
Ubuntu  
12.04 Server, and i’ve already try to run volk\_profile as you told me.  
Here  
is the result:

openbts@openbts:~/gnuradio/target/bin$ ./volk\_profile  
./volk\_profile: error while loading shared libraries: libvolk.so.0.0.0:  
cannot open shared object file: No such file or directory

I also cannot run other function like uhd\_fft:

openbts@openbts:~/gnuradio/target/bin$ ./uhd\_fft  
Traceback (most recent call last):  
File “./uhd\_fft”, line 24, in   
from gnuradio import gr, gru  
ImportError: No module named gnuradio

This is the list of my ~/gnuradio/target/bin directory:  
openbts@openbts:~/gnuradio/target/bin$ ls  
dumpdb gr\_plot\_psd\_c gr\_time\_plot\_f  
octoclock\_firmware\_burner uhd\_rx\_cfile  
glacier2router gr\_plot\_psd\_f gr\_time\_plot\_i  
slice2cpp uhd\_rx\_nogui  
gnuradio-companion gr\_plot\_qt gr\_time\_plot\_s  
slice2cs uhd\_siggen  
gnuradio-config-info gr\_plot\_short gr\_time\_raster\_b  
slice2freeze uhd\_siggen\_gui  
grcc gr\_psd\_plot\_b gr\_time\_raster\_f  
slice2freezej uhd\_usrp\_probe  
gr\_constellation\_plot gr\_psd\_plot\_c icebox  
slice2html usrp2\_card\_burner  
gr\_filter\_design gr\_psd\_plot\_f iceboxadmin  
slice2java usrp\_flex  
gr\_modtool gr\_psd\_plot\_i iceca  
slice2php usrp\_flex\_all  
gr\_plot\_char gr\_psd\_plot\_s icegridadmin  
slice2py usrp\_flex\_band  
gr\_plot\_const gr\_read\_file\_metadata icegridnode  
slice2rb usrp\_n2xx\_simple\_net\_burner  
gr\_plot\_fft gr\_spectrogram\_plot\_b icegridregistry  
transformdb usrp\_x3xx\_fpga\_burner  
gr\_plot\_fft\_c gr\_spectrogram\_plot\_c icepatch2calc  
uhd\_cal\_rx\_iq\_balance volk-config-info  
gr\_plot\_fft\_f gr\_spectrogram\_plot\_f icepatch2client  
uhd\_cal\_tx\_dc\_offset volk\_modtool  
gr\_plot\_float gr\_spectrogram\_plot\_i icepatch2server  
uhd\_cal\_tx\_iq\_balance volk\_profile  
gr\_plot\_int gr\_spectrogram\_plot\_s icestormadmin uhd\_fft  
gr\_plot\_iq gr\_time\_plot\_b icestormmigrate  
uhd\_find\_devices  
gr\_plot\_psd gr\_time\_plot\_c nirio\_programmer  
uhd\_images\_downloader

I guess there is something went wrong here. Could anyone give clue…???  
Any help would be very appreciated.

Thanks

Sammy

---

<div class="post-metadata">

**Author:** ![sammy\_zada](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@sammy\_zada](https://www.ruby-forum.com/u/sammy_zada)\
**Post date:** [September 15, 2014, 12:37pm UTC](https://www.ruby-forum.com/t/how-to-install-gnuradio-with-pybombs/231884/11 "2014-09-15T12:37:01Z")

</div>

Hi Tom,

Thanks a lot for the clue & the answers, i finally rebuild my system  
using  
Ubuntu Desktop 12.04 & run all the instructions on the  
[http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](http://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart). And result  
no  
errors at the end of the commands.

I finally able to run ./gnuradio-companion & other interesting features  
of  
gnuradio normally.  
My last question (hopefully), regarding build and run gnuradio using  
pybombs, that i had to run ./pybombs env & source $prefix/setup\_env.sh  
manually each time i want to run gnuradio features under  
~/gnuradio/target/bin directory. Is it normal behavior or we can make it  
run automatically (./pybombs env & source $prefix/setup\_env.sh)?

Thanks a lot for the answers.

Sammy
