Uhd installer(build-gnuradio) got stuck

Hi,

I am trying to install uhd on one of my ubuntu lucid using the script
build-gnuradio I downloaded from website
http://code.ettus.com/redmine/ettus/projects/uhd/wiki
It started fine but got stuck at:
*Continuing with script
Installing pre-prequisites…
*I left it like this for about an hour assuming that it is doing
something
at the background but nothing happened.
Is there anything I need to do before using this script? Please suggest.

Thanks,
Abhi.

---------- Forwarded message ----------
From: Abhishek G. [email protected]
Date: Tue, Jul 12, 2011 at 2:26 PM
Subject: [Fwd: uhd installer(build-gnuradio) got stuck…]
To:
Cc: daniel Marlow [email protected], Prachi Parihar <
[email protected]>, Vinod Gupta [email protected]

**

-------- Original Message -------- Subject: uhd
installer(build-gnuradio)
got stuck… Date: Tue, 12 Jul 2011 13:53:29 -0400 From: Abhishek G.
[email protected] [email protected] To:
[email protected][email protected]

Hi,

I am trying to install uhd on one of my ubuntu lucid using the script
build-gnuradio I downloaded from website
http://code.ettus.com/redmine/ettus/projects/uhd/wiki
It started fine but got stuck at:
*Continuing with script
Installing pre-prequisites…
*I left it like this for about an hour assuming that it is doing
something
at the background but nothing happened.
Is there anything I need to do before using this script? Please suggest.

Thanks,
Abhi.

Hi,

I am trying to install uhd on one of my ubuntu lucid using the script
build-gnuradio I downloaded from website
http://code.ettus.com/redmine/ettus/projects/uhd/wiki

It started fine but got stuck at:

Continuing with script

Installing pre-prequisites…

Hi, I had the same problem last week. I assume you used the script from
http://www.sbrac.org/files/build-gnuradio.

If you open the script and study a little bit, you can find that your
installation is stuck at this particular point:


It’s a Ubuntu system

elif [ -f /etc/lsb-release ]
then
SYSTYPE=Ubuntu
sudo apt-get purge ‘gnuradio-’ >/dev/null 2>&1
sudo apt-get purge 'libgruel-
’ >/dev/null 2>&1
sudo apt-get purge ‘libgruel*’ >/dev/null 2>&1
sudo apt-get purge ‘libgruel0*’ >/dev/null 2>&1
sudo apt-get purge ‘libgnuradio*’ >/dev/null 2>&1
sudo apt-get purge ‘python-gnuradio*’ >/dev/null
2>&1----------------

This is around line 160. You can see that the outputs and errors from
the processes of “purging” these components is directed towards

/dev/null.
This means that even if you get any error or you get promted by
installer about anything, you do not see it. It is quite nice property
when everything goes as expected.

My solution - Install these components separately without >/dev/null
2>&1. You write in the terminal:

$ sudo apt-get purge ‘gnuradio-*’

Now you get all the results printed on the screen, and you can
understand what went wrong. Do this for each component of these six
written above.
After it is done successfully, try again with the script from the
beginning, and everything should function and install properly.

I left it like this for about an hour assuming that it is doing
something at the background but nothing happened.

Is there anything I need to do before using this script? Please suggest.

Thanks,

Abhi.

I also left mine over night, but the bash is stuck and it does not help.

P.S. I also got a message " make of UHD failed", so I went into the
script and tried to run some steps before the message alone in the
terminal, and I found out that I had to reinstall cmake. After I did
this, I started the script again, and it worked!

If you get any more problems, just try to study the script and you will
find it out.

Cheers

Nemanja

Hi Nemanja,
I already have gnuradio installed on my machine. I was actually trying
to install uhd with that script. Since that script didn’t work for me, I
followed these steps to install uhd written in the script:
git clone git://code.ettus.com/ettus/uhd.git >/dev/null 2>&1
cd uhd/host
mkdir build
cd build
cmake …/ >cmake.log 2>&1
make clean >/dev/null 2>&1
make >make.log 2>&1
make install >UHD_install.log 2>&1
ldconfig

After installation, when we tried importing uhd in python, we get this
message:
>>> from gnuradio import uhd
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name uhd

So I thought I may have missed something while installing uhd and so I
tried installing it with the script.
Do I need to install any other module?
Thanks,
Abhi.

Hi Josh,

I am not sure if that component was enabled or not. Since while
installing gnuradio I didn’t see that they specified enabling this
component. So last night I tried running the build-gnuradio script(
http://www.sbrac.org/files/build-gnuradio ) without prereqs and let it
build/install uhd and gnuradio. Since that script suppose to install
both the components, I assumed that it will take care of enabling
gr-uhd. After installation was done, I was still getting the same
message:
ImportError: cannot import name uhd

If gr-uhd need to enable manually, can anyone tell me how to do it?
Is there anything else I could try?

Thanks,
Abhi.

After installation, when we tried importing uhd in python, we get this
message:

from gnuradio import uhd
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name uhd

So I thought I may have missed something while installing uhd and so I tried
installing it with the script.
Do I need to install any other module

Did you install gnuradio with the gr-uhd component enabled?

-Josh

On Wed, Jul 13, 2011 at 10:19:38AM -0400, Abhishek G. wrote:

If gr-uhd need to enable manually, can anyone tell me how to do it?
Is there anything else I could try?

I recently upgraded my ubuntu to 10.10 and built gnuradio using the
build-gnuradio script. I had a problem with the actual build of uhd
because of an old boost that was found in place of the current one.
I deleted the old boost built under /usr/local and then uhd built OK.
You may need to check for remnants of old code for uhd or prerequisites.


LRK
gr-user . ovillatx.sytes.net

On 07/13/2011 10:19 AM, Abhishek G. wrote:

If gr-uhd need to enable manually, can anyone tell me how to do it?
Is there anything else I could try?

Thanks,
Abhi.

The “prereqs” section is where it takes care of uninstalling any
components of Gnu Radio that
were previously installed from packaged-binary, and which may
interfere with an installation
from source.