Bitcoin Forum

Other => Beginners & Help => Topic started by: 2kan on January 09, 2012, 09:33:15 AM



Title: [SOLVED] I've tried everything and cannot install pyopencl on my linux box......
Post by: 2kan on January 09, 2012, 09:33:15 AM
Seriously, I've been trying for hours to install it in different methods but I keep getting this error:

In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:27:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Please, if you know how to fix it, tell me how! I'm seriously at my wit's end with installing this, I just want to mine some coins.

I have g++ installed so I don't know why this isn't working. If you need anymore information please ask.

(p.s. sorry if this is in the wrong category, I couldn't make a topic in the technical support one.)


Title: Re: I've tried everything and cannot install pyopencl on my linux box. Please help!
Post by: scintill on January 09, 2012, 09:44:26 AM
Sounds like you haven't told pyopencl where to find the CL files.  (Have you installed the Stream SDK?)

This can be done with the configure script in the pyopencl root dir.  For example, this is how I did it:
Code:
./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx32/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx32/lib/x86

Your paths may vary.  Are you following a guide?  This one (https://bitcointalk.org/index.php?topic=7514.0) worked for me.  I, or others, could probably help you adapt it to your distribution if necessary.  What are you using?


Title: Re: I've tried everything and cannot install pyopencl on my linux box. Please help!
Post by: 2kan on January 09, 2012, 10:07:43 AM
Okay I'm following that guide you suggested. It's looking good so far. I'm using Ubuntu 11.04 so hopefully this will work ^__^


Title: Re: I've tried everything and cannot install pyopencl on my linux box. Please help!
Post by: 2kan on January 09, 2012, 10:19:48 AM
I get to step 25 (make -j3) and this is what I get:

error: command 'g++' failed with exit status 1
make: *** [all] Error 1

Any advice?


Title: Re: I've tried everything and cannot install pyopencl on my linux box. Please help!
Post by: 2kan on January 09, 2012, 11:15:58 AM
Okay I managed to install it properly, turns out I accidentally used the 64bit instructions so when I started again and used the 32bit ones, it worked like a charm.