[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux |
Date: |
Thu, 25 Oct 2007 08:57:34 -0700 |
User-agent: |
Thunderbird 1.5.0.14pre (X11/20071023) |
Simon Alford wrote:
> I have just had and attempt at building and installing the latest GNU radio
> stable release on Gentoo Linux. It has all been pretty easy.
>
> Got the source from SVN.
>
> Emerged all the correct packages.
>
> $ emerge swig fttw cppunit boost alsa-lib sdcc guile wxpython xmlto numpy
>
> Then did the normal build.
>
> $ ./bootstrap
> $ ./configure --exec-path=/usr/
> $ make
> $ make check
> $ make install
>
> Make check passed all tests. (Easy peasy hey ;-)
It would be useful to document your efforts on our Wiki at:
http://gnuradio.org/trac/wiki/GentooInstall
Use account name 'guest', password 'gnuradio'.
> The problem I now have, is when I try running any of the examples or usrp
> .py scripts I get "ImportError: No module named gnuradio".
>
> How do I get python to find the gnuradio module?
I'm not all that familiar with Gentoo, but three things have to happen
post install for USRP applications to work:
* The shared library loader needs to be able to find GNU Radio .so
files. This may be as easy as re-running ldconfig, or you might have to
add something to /etc/ld.so.conf
* Python needs to know about the GNU Radio install. The files will get
put into $prefix/lib/pythonX.X/site-packages/gnuradio, which is
typically already a place Python knows about, but you might have to set
PYTHONPATH to include that directory up to but not including the
'gnuradio' part. ($prefix is typically /usr/local)
* The USRP device file needs to have permissions altered for someone
besides root to be able to write to it. If Gentoo uses udev then there
is a configuration directory under /etc you can drop a file into that
does this (see the UbuntuInstall wiki page as an example). Typically we
create a group called 'usrp', give the device file root.usrp ownership,
and 660 permissions. Then just add users to group 'usrp' as needed.
> Additionally what scripts can I run to check gnuradio is working without a
> USRP attached?
The best method is to run the 'make check' command from the top-level
source directory. This runs through hundreds of unit tests on various
parts of the tree. But you've already done that.
In $prefix/share/gnuradio/examples/* you'll see a number of installed
example programs. Under 'audio' there is dial_tone.py, a simple tone
generator that will test your audio output as well.
More complicated are the 'digital' examples. You can run
'benchmark_loopback.py' without a USRP and it will exercise a lot of the
tree.
Let us know how it works out.
--
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, (continued)
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Hans Glitsch, 2007/10/23
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Eric Blossom, 2007/10/23
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Hans Glitsch, 2007/10/24
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Eric Blossom, 2007/10/24
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Johnathan Corgan, 2007/10/24
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Hans Glitsch, 2007/10/24
- [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux, Simon Alford, 2007/10/25
- Re: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux, George Nychis, 2007/10/25
- RE: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux, Simon Alford, 2007/10/26
- Re: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux, Eric Blossom, 2007/10/26
- Re: [Discuss-gnuradio] Buliding GNU Radio on Gentoo Linux,
Johnathan Corgan <=
- [Discuss-gnuradio] Creating new Messages [was: Re: Buliding GNU Radio on Gentoo Linux], Patrick Strasser, 2007/10/29
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf and unrelated bugs in rx_chain.v, Martin Dvh, 2007/10/25
- Re: [Discuss-gnuradio] found problem with std_4rx_0tx.rbf, Hans Glitsch, 2007/10/24