Build/install on Ubuntu x64 10.10 today

From today’s GIT, fresh build

./bootstrap
./configure
make
sudo make install

Then when I try to use gnuradio stuff:

from gnuradio import gr
Traceback (most recent call last):
File “”, line 1, in
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/init.py”, line
43, in
from gnuradio_core import *
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py”,
line 23, in
from gnuradio_core_runtime import *
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py”,
line 24, in
_gnuradio_core_runtime = swig_import_helper()
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py”,
line 20, in swig_import_helper
_mod = imp.load_module(’_gnuradio_core_runtime’, fp, pathname,
description)
ImportError: /usr/local/lib/libgnuradio-core-3.4.0git.so.0: undefined
symbol: _ZTIN5gruel12msg_accepterE

Re-did the build a coupla of times, including “make clean” and “make
distclean”. Still the same results.

Did a “sudo ldconfig” just in case it was the LD cache. No dice, still
same problem.

System is Ubuntu 10.10 x86_64

I got the same error today as Marcus did last week in a fresh install
from
next on Ubuntu 10.04 x64. Everything worked fine through the UHD
install,
./bootstrap, ./configure, make, make check, sudo make install routine.
However, attempting to run gnuradio companion reports:

“Cannot import gnuradio. Are your PYTHONPATH and LD_LIBRARY_PATH set
correctly?”

I have the following in my .bashrc file:

GNU Radio installation

export PATH=$PATH:/usr/local/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/site-packages

Also, attempting to “from gnuradio import gr” in a python prompt
returns:

from gnuradio import gr
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.6/dist-packages/gnuradio/gr/init.py”,
line 43, in
from gnuradio_core import *
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py”,
line
23, in
from gnuradio_core_runtime import *
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py”,
line 24, in
_gnuradio_core_runtime = swig_import_helper()
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py”,
line 20, in swig_import_helper
_mod = imp.load_module(’_gnuradio_core_runtime’, fp, pathname,
description)
ImportError: /usr/local/lib/libgnuradio-core-3.4.0git.so.0: undefined
symbol: _ZTIN5gruel12msg_accepterE

Any advice?

Il 12/04/2011 15:27, Andrew H. ha scritto:

GNU Radio installation

File
_gnuradio_core_runtime = swig_import_helper()

Then when I try to use gnuradio stuff:
line 23, in <module>
ImportError: /usr/local/lib/libgnuradio-core-3.4.0git.so.0:

Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
pay attention ! on debian based distribution the “local” pythonpath is

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.6/dist-packages

not the one you put in the .bashrc ! I compiled the source tarball
(stable 3.3.0) without any problems in this way

sudo apt-get build-dep gnuradio
./configure
make

and then using the “checkinstall” utility

sudo checkinstall (instead of make install)

after the generated *.deb is installed digit :

sudo ldconfig

my hypothesis of the wrong pythonpath could be confirmed by your
errors…Let me know…

On 12/04/2011 10:39 AM, Arturo R. wrote:

File “”, line 1, in
line 24, in
Any advice?

"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py",
description)
System is Ubuntu 10.10 x86_64

sudo ldconfig

my hypothesis of the wrong pythonpath could be confirmed by your
errors…Let me know…
The problem exists even with a correct PYTHONPATH. I confirmed this
last week.

removing all the paths exported and digit in the terminal

sudo ldconfig

i’ll try with the git version later and post any comment

On 12/04/2011 11:08 AM, Arturo R. wrote:

It turns out that I had a libgruel installed from a Ubuntu package in
/usr/lib, and it of course didn’t have the same symbols in it
as the version of libgruel that was present (in the gnuradio source
tree) during the build.

I removed that package, and did a rebuild from “./bootstrap”, and now
it’s all fine again.

Il 12/04/2011 15:27, Andrew H. ha scritto:

GNU Radio installation

File
_gnuradio_core_runtime = swig_import_helper()

Then when I try to use gnuradio stuff:
line 23, in <module>
ImportError: /usr/local/lib/libgnuradio-core-3.4.0git.so.0:

Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
just forgetting a little thing…you can also don’t put any paths in
your .bashrc, “sudo ldconfig” will take care of all the necessary stuff.
If you use “paths” you have to logout and then to login again so the OS
is aware of them (every time you add a new one to .bashrc). if you
decide to use checkinstall, after installation edit the configuration
file.

/etc/checkinstallrc

and put the “TRANSLATE” entry from 1 to 0.

Best Regards, Arturo

Performed the following routine:

commented all path lines from .bashrc. (I had previously tested it with
both dist-packages and site-packages).
ran sudo ldconfig
restarted
ran sudo ldconfig again
recieved the same error message (ImportError:
/usr/local/lib/libgnuradio-core-3.4.0git.so.0: undefined symbol:
_ZTIN5gruel12msg_accepterE)

Went back to the source (fresh git download this AM) and:
make uninstall
./bootstrap
./configure --enable-gr-uhd
make
make check
sudo make install
sudo ldconfig
logged out / logged in (just for kicks)

I got the same errors (cannot find Gnuradio and the import errors)

Then, I tried arturo’s method.
make uninstall
./configure
make
sudo checkinstall

This gave me the error: “dpkg-db: parse error, in file
‘/var/tmp/tmp.hX5IvZ8xr3/package/DEBIAN/control’ near line 10 package
‘gnuradio’:
empty value for version”

Any further comments?

On Tue, Apr 12, 2011 at 2:58 PM, Andrew H. [email protected]
wrote:

‘/var/tmp/tmp.hX5IvZ8xr3/package/DEBIAN/control’ near line 10 package
‘gnuradio’:
empty value for version"

Any further comments?

Do you have any old installations on your system? Is there more than one
libgnuradio-core-3.4.0git.so.0 but with a different version number?

Tom

On 04/12/2011 02:58 PM, Andrew H. wrote:

I got the same errors (cannot find Gnuradio and the import errors)
‘gnuradio’:
empty value for version"

Any further comments?

I fixed my problem by removing /usr/lib/gruel and
/usr/lib/pkgconfig/gruel

Then going into my gnuradio and:

git pull
make distclean
./bootstrap
./configure
make
sudo make install

Marcus’s libgruel instructions worked for me. Thanks for all your help

now to begin hacking :slight_smile:

Il 12/04/2011 20:58, Andrew H. ha scritto:

I got the same errors (cannot find Gnuradio and the import errors)
‘gnuradio’:
Discuss-gnuradio Info Page
i downloaded the latest git snap this afternoon and the installation was
quite smooth. I’ll list my procedure step by step :

+sudo apt-get build-dep gnuradio
+sudo apt-get install libboost1.42-all-dev python-qwt5-qt4
+download and install the following file (the uhd driver)

http://www.ettus.com/downloads/uhd_releases/003_000_001/UHD-003.000.001-Ubuntu-10.10-x86_64.deb

then

+git clone gnuradio.git - GNU Radio
+./bootstrap
+./configure
+make
+sudo make install (or checkinstall)

about the checkinstall error you have to change the value version which
is empty. So when asked digit “3” and insert just for example
1:3.4.0-git.

+sudo ldconfig
+/usr/local/libexec/gnuradio/gcr_setup_freedesktop install (for
shortcuts in the start menu and the file associations)

you can add this latest directory in your path as

export PATH=$PATH:/usr/local/libexec/gnuradio

for the “gcr_setup_freedesktop” script, then logout and login. It worked
very fine for me. No problems at all. Please ask me again if you have
troubles…follow also Marcus suggestion by purging any other gnuradio
installation if existing…

Regards, Arturo