m0mchil / poclbm

PyOpenCL bitcoin miner
Other
681 stars 387 forks source link

Running on OS X 10.8 #47

Open avidwriter opened 12 years ago

avidwriter commented 12 years ago

Trying this on OS X 10.8 Developer Preview 2. Using the built-in python2.7. Andreas at pyopencl modified that code to install on 10.8 which it appears to do. I'm trying to then run 2/5/12 version of poclbm and am getting this error:

$ ./poclbm.py --user=xxx --pass=xxx -o bitcoinpool.com -p 8334 Traceback (most recent call last): File "./poclbm.py", line 3, in from BitcoinMiner import * File "/Volumes/Hitachi/Downloads/m0mchil-poclbm-fa6915c/BitcoinMiner.py", line 11, in import pyopencl as cl File "/Library/Python/2.7/site-packages/pyopencl-2011.2-py2.7-macosx-10.8-intel.egg/pyopencl/init.py", line 4, in import pyopencl._cl as _cl ImportError: dlopen(/Library/Python/2.7/site-packages/pyopencl-2011.2-py2.7-macosx-10.8-intel.egg/pyopencl/_cl.so, 2): Symbol not found: _clCreateProgramWithBuiltInKernels Referenced from: /Library/Python/2.7/site-packages/pyopencl-2011.2-py2.7-macosx-10.8-intel.egg/pyopencl/_cl.so Expected in: flat namespace in /Library/Python/2.7/site-packages/pyopencl-2011.2-py2.7-macosx-10.8-intel.egg/pyopencl/_cl.so

Any ideas how to fix it? thanks

neogenix commented 12 years ago

This thread says it's a problem with pyopencl, and can be fixed installing the version from git :

http://www.mail-archive.com/pyopencl@tiker.net/msg01230.html

This fixes it for me as follows :

git clone http://git.tiker.net/trees/pyopencl.git cd pyopencl git submodule init git submodule update sudo python setup.py install

And, then it works!

bitkevin commented 12 years ago

nice work, help me lot.

bitkevin commented 12 years ago

https://trac.macports.org/ticket/35437