Where is GR installed in Ubuntu?

I installed GR and USRP software from the binaries using the
instructions found at:

http://gnuradio.org/trac/wiki/DebianPackages

As near as I can tell, it finished successfully. For instance, if I
rerun

$ sudo apt-get install gnuradio usrp

It says that both are the newest versions.

But where did it get installed? I can’t find it anywhere.

Any help from anyone would be appreciated. Below is an exchange with
David that may give a clue for someone else.

Thanks.

David Tisza wrote:

William L. Bahn írta:

When I try the following, I get that neither command is found.

$> sudo updatedb
$> locate gnuradio | less

what do you mean they’re not found?
This is what happens:

wbahn@wbahn:/$ sudo updatedb
[sudo] password for wbahn:
sudo: updatedb: command not found
wbahn@wbahn:/$ locate gnuradio | less

I get a cleared screen with (END) in the upper left corner and I can’t
scroll at all. After hitting ‘q’ I’m back to the above with the next
line being:

bash: locate: command not found

Hello,
William L. Bahn írta:

$> locate gnuradio | less
scroll at all. After hitting ‘q’ I’m back to the above with the next
line being:

bash: locate: command not found
As I said in my original message:

if they are not installed to your system, I mean locate, then try
running the synaptic package manager and find the package locate
(more info: findutils - Summary [Savannah] )
This happens because neither the locate nor the updatedb command is not
installed to your system (they are in one package)
The “locate” is not connected to gnuradio at all, but rather a useful
tool in linux systems. If you read the link above, and I’m sure you did,
it is clear to you that the “updatedb” makes a hash database of your
files in your system where are they etc, and the command “locate” uses
the database made by the “updatedb” to find patterns in filenames. So
the command
“$> sudo updatedb” creates or refreshes the database (you need to run it
with admin privileges)
and the command “$>locate gnuradio” finds all filenames which contains
the term gnuradio.
I’m pretty sure that you know what a pipe is and the “cleared screen
with (END) in the upper left corner” is made by the program less,
because it did not receive anything from the command “locate gnuradio”
so it displays an empty string.

So this suggestion was just only to help you find your gnuradio files on
your system, it is not connected to gnuradio by any means.

W: Failed to fetch
http://gnuradio.org/ubuntu/dists/stable/main/binary-i386/

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


David Tisza

William L. Bahn wrote am 2009-05-07 09:21:

$ sudo apt-get install gnuradio usrp

But where did it get installed? I can’t find it anywhere.

If you have apt-get, you have dpkg too.

dpkg -L gnuradio

Patrick

ps: Always repeat information from the subject in the body. This makes
reading, replying and quoting much easier.

Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telematik, Techn. University Graz, Austria

Do be so sure that someone that has virtually no experience with Linux
and, more specifically, less than a couple of hours experience with
Ubuntu, knows what “less” is.

I downloaded the findutils tar.gz file and extracted it. While trying to
run ./configure it gave an error that the C compiler cannot create
executables. I’ve looked over the log file and I’m not sure, but I think
that either gcc isn’t installed of else it can’t find it.

Is there really no one in the entire Gnu Radio community that has any
idea where apt-get tries to put the gnuradio and usrp trees in Ubuntu
8.04?

How on earth is anyone supposed to get started when, as near as I can
tell, no place on the Wiki tells someone what to do after adding their
username to the usrp group?

You had asked for the relevant lines from the source.list file. Here are
the lines I added:

deb http://gnuradio.org/ubuntu stable main contrib
deb-src http://gnuradio.org/ubuntu stable main

I had thought the fact that this is causing apt-get to go looking in
directories that don’t exist on the gnuradio.org site would spark a
little bit of interest, but apparently not.

On Fri, 2009-05-08 at 17:47 +0200, Patrick S. wrote:

dpkg -L gnuradio

Not to complicate things, but this won’t work as expected. There are
many binary packages for Ubuntu, and the ‘gnuradio’ package is simply a
meta-package that depends on the others, for ease of installation. So
the above won’t show any real files.

The primary difference in installation location between a source install
and a binary install is in the ‘prefix’.

Source installations, unless told differently, are all rooted
at /usr/local, and the various files go into subdirectories there:

/usr/local/bin/*
/usr/local/lib/*
/usr/local/lib/python2.x/site-packages/gnuradio/*
/usr/local/include/*
/usr/local/share/gnuradio/examples/*
/usr/local/doc/gnuradio/*
/usr/local/share/usrp/*

The /usr/local hierarchy is for files that are not maintained by the
system packaging library.

When installing GNU Radio in Ubuntu from binary packages, the standard
system installation locations are used, which are all rooted at /usr,
as:

/usr/bin/*
/usr/lib/*
/usr/lib/python2.x/site-packages/gnuradio/*
/usr/include/*
/usr/share/gnuradio/examples/*
/usr/doc/gnuradio/*
/usr/share/usrp/*

This is all per the Filesystem Hierarchy Standard (FHS) and the
Debian/Ubuntu packaging policy.

The most common things a user might look for after an install of either
type are the example scripts and the utilities like usrp_fft.py.

The example scripts are installed into the locations noted above, while
the utility scripts are installed into the bin directory. Since the bin
directory is on the user’s PATH, he or she doesn’t have to actually go
to those directories to run them; instead, they can just invoke them
from whatever directory they happen to be in.

Hope this clears things up.

Johnathan

William,

If you are looking for the example scripts, they are found in:

/usr/share/gnuradio/examples/*

Johnathan

THANK YOU!!!

I wasn’t so much looking for the example scripts – I was looking for
anything.

Unless I really missed something on the Wiki, shouldn’t there be
something there telling people where the top of the gnuradio tree is
placed (in this case, /usr/share, though I suppose that might vary from
distro to distro). Otherwise the new user is left hanging having no idea
where to find the software they just installed. Perhaps people that are
experienced linux users would just simply know that this is where stuff
like this gets installed to, but there are lots of us that have no
reason to know to look there.

Again - thank you very much.

If I can get this little Dell netbook talking to the USRP, I think I
will have some data that will be at least of passing interest to some of
the folks here when I get finished with a week long exercise I’m heading
out to.

I did not use apt-get to install GnuRadio instead I just downloaded and
built the source files.

svn co http://gnuradio.org/svn/gnuradio/trunk gnuradio

This will create a directory called gnuradio in the directory that you
are
in when you ran that command.

If you do not have svn, use the following command to install it

sudo apt-get install subversion

I followed the rest of the instructions here
http://gnuradio.org/trac/wiki/BuildGuide

and also here http://gnuradio.org/trac/wiki/UbuntuInstall

Just post more questions if you have them!

This definitely helps - and I think it would be something very useful
to add to the Wiki in the Build Guide or Getting Started pages.

Thanks.

Quoting Johnathan C. [email protected]:

fyi you could also do a
dpkg -L gnuradio
to find every file a package provides

dave