Installation problem on 64-bit ubuntu intrepid


#1

Hi,

My system info:

uname -a
Linux user 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64
GNU/Linux

I have been using gnuradio/usrp on 32 bit ubuntu for a while, never have
problem with installation. Yesterday, I decided to switch to 64 bit
ubuntu
and install gnuradio follow the procedure what I did on 32 bit system.
Installation is smooth, and I can find usrp by

ls -lR /dev/bus/usb | grep usrp

But when I try to run /usrp_benchmark_usb.py, I got the following error
message
File “usrp_benchmark_usb.py”, line 30, in
from gnuradio import gr
File “/usr/local/lib/python2.5/site-packages/gnuradio/gr/init.py”,
line 43, in
from gnuradio_swig_python import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py”,
line 23, in
from gnuradio_swig_py_runtime import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 6, in
import _gnuradio_swig_py_runtime
ImportError: libgnuradio-core.so.0: cannot open shared object file: No
such file or directory

Seems like library libgnuradio-core.so.0 is missing, but I can loate
the library in /usr/local/lib/libgnuradio-core.so.0.

Anyone has an idea how to fix the problem? Thanks a lot!


#2

I have just upgraded to Ubuntu 8.10 on my 64-bit machine (a few weeks
ago).

Did you do this? (which is on the wiki):

Because Debian and Ubuntu apply a poorly implemented “enhancement” to
the
upstream version of libtool, they break the ability to test code and
libraries prior to installing them. We think that testing before
installation is a good idea. To work around their damage, be sure to
include
$PREFIX/lib (and $PREFIX/lib64 on 64-bit machines) in /etc/ld.so.conf.

If you don’t include $PREFIX/lib in /etc/ld.so.conf, you will see errors
during the linking phase of the build. There are several places it shows
up.
The first one is often during the build of mblocks. It’s not an mblock
problem. It’s a Debian/Ubuntu problem.

Do this to work around the “feature”:

cp /etc/ld.so.conf /tmp/ld.so.conf
echo /usr/local/lib >> /tmp/ld.so.conf
sudo mv /tmp/ld.so.conf /etc/ld.so.conf
sudo ldconfig


Newell

http://www.gempillar.com
Before enlightenment: chop wood, carry water
After enlightenment: code, build circuits