How to install gnuradio with pybombs

Hi everyone,

I’m very new to gnuradio, & i’m trying to follow instructions from
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

Sammy,

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

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.

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

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

-----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 [email protected]
Discuss-gnuradio Info Page

_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page

-----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-----

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: [email protected]
Web: http://ettus.com

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

Tom

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?
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

On Fri, Sep 5, 2014 at 12:34 AM, sammy zada [email protected]
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

On Wed, Sep 10, 2014 at 11:04 PM, sammy zada [email protected]
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

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

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

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. 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