On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> 
> hi all:
>      I use the command create-gnuradio-out-of-tree-project to bulid a new 
> block,and after that I use the following command:
>      ./bootstrap
>      ./configure
>      make
>      make check
>      sudo make install
>      Then I thought I had installed the new block.then I want to import the 
> new block in the python to make sure it is successfully installed.Then I got 
> this:
> 
> tianxia...@ubuntu:~/gnuradio-3.3.0/test_example$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import test_example
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", 
> line 40, in <module>
>     from test_example_swig import *
>   File 
> "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> line 24, in <module>
>     _test_example_swig = swig_import_helper()
>   File 
> "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", 
> line 20, in swig_import_helper
>     _mod = imp.load_module('_test_example_swig', fp, pathname, description)
> ImportError: libgnuradio-test_example.so.0: cannot open shared object file: 
> No such file or directory
> 
>     My python is not very well,so I hope someone can help me figure it out.
>     Thank you in advance.                                       

Assuming you've got /usr/local/lib in /etc/ld.so.conf...

 $ sudo ldconfig


Or

 $ export LD_LIBRARY_PATH=/usr/local/lib


BTW, it's always helpful to tell us what OS and distribution you're using...

Eric

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to