Trouble with gsl on install

267 views
Skip to first unread message

Steve Piccolo

unread,
Jun 2, 2010, 3:03:09 PM6/2/10
to mlpy-general
Hi there,

I'm trying to get mlpy installed on my Linux (RedHat 4, 64 bit)
servers. I've installed numpy, and that seems to be working fine. I've
installed gsl 1.14 and didn't seem to get any errors. I've also
installed mlpy (latest version) without any error messages. But when I
go to the Python prompt and type import mlpy, it gives me the
following error message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/mlpy/__init__.py", line
29, in <module>
from _dwt import *
ImportError: /usr/local/lib/python2.6/site-packages/mlpy/_dwt.so:
undefined symbol: gsl_wavelet_bspline

I'm not super familiar with Linux, so I'm not sure what to do. I know
that my gsl header files are in /usr/local/include/gsl and I think my
gsl shared object files are in /usr/lib64.

Any help would be greatly appreciated.

Thanks,
-Steve

Davide Albanese

unread,
Jun 3, 2010, 5:05:20 AM6/3/10
to mlpy-general
Dear Steve,
probably you should set the LD_LIBRARY_PATH environment variable.
Open a shell and try the following:

$ export LD_LIBRARY_PATH=/path-to-shared-libs:$LD_LIBRARY_PATH
(probably /usr/lib64)

then

$ python
>>> import mlpy

You can you can make it permanent editing the .bashrc file.

Davide

Steve Piccolo

unread,
Jun 3, 2010, 11:09:46 AM6/3/10
to mlpy-g...@googlegroups.com
That doesn't seem to have done the trick. I also tried pointing LD_LIBRARY_PATH to /usr/local/lib/gsl, which is where the gsl_wavelet header file is, but that didn't work either. Do I need to reinstall MLPY with this environment variable set? Any other ideas?

-Steve

--
You received this message because you are subscribed to the Google Groups "mlpy-general" group.
To post to this group, send email to mlpy-g...@googlegroups.com.
To unsubscribe from this group, send email to mlpy-general...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mlpy-general?hl=en.


Davide Albanese

unread,
Jun 4, 2010, 4:42:40 AM6/4/10
to mlpy-general
Steve,
try
$ ls /usr/local/lib/gsl | grep gsl

and show me the result.

LD_LIBRARY_PATH should point to the directory that contains the shared
object files (libgslcblas.so and libgsl.so).

Davide



On 3 Giu, 17:09, Steve Piccolo <steve.picc...@gmail.com> wrote:
> That doesn't seem to have done the trick. I also tried pointing
> LD_LIBRARY_PATH to /usr/local/lib/gsl, which is where the gsl_wavelet header
> file is, but that didn't work either. Do I need to reinstall MLPY with this
> environment variable set? Any other ideas?
>
> -Steve
>
> On Thu, Jun 3, 2010 at 3:05 AM, Davide Albanese
> <davide.alban...@gmail.com>wrote:
> > mlpy-general...@googlegroups.com<mlpy-general%2Bunsu...@googlegroups.com>
> > .

Steve Piccolo

unread,
Jun 4, 2010, 9:55:19 AM6/4/10
to mlpy-g...@googlegroups.com
These .so files were in /usr/local/lib (not in a gsl sub-directory). When I pointed LD_LIBRARY_PATH to /usr/local/lib, it worked.

Thanks!
-Steve

P.S. Nice library!

To unsubscribe from this group, send email to mlpy-general...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages