Post
Topic
Board Beginners & Help
Re: Python OpenCL Miner on Ubuntu not running.
by
cynikal
on 16/06/2011, 21:50:34 UTC

 
Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.6/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory

I'm on Ubuntu 10.10 x86_64 using a NVidia 8400GS
I followed this giude: http://forum.bitcoin.org/index.php?topic=2636.0
I would post my question in that forum but being new I have to post here instead.

Everything installed fine, but when I try to run the Miner I get the above error.
Not sure why I'm getting that error.

Can anyone give me a clue?

for starters, look at the pyopencl.py file, see what the binary it imports is, and ldd that (you should be able to see what libraries it's dynamicaly linked against, and you'll likely see 'not found' for the opencl one.. then to work-around that, set your LD_LIBRARY_PATH environment variable containing the directory that libOpenCL.so.1 directory.. if you want to fix it more permanently, you'll need to re-compile pyopencl and this time specify a rpath (which hardcodes a path to the library) containing the dir libOpenCL.so is in