Pages:
Author

Topic: CentOS 5.5 Mining Guide for ATI/poclbm - page 2. (Read 19487 times)

newbie
Activity: 18
Merit: 0
No output from the locate command after running updatedb.

rpm -qa | grep glib2
glib2-2.12.3-4.el5_3.1
glib2-devel-2.12.3-4.el5_3.1
glib2-2.12.3-4.el5_3.1


So I got home about an hour ago and have been trying to get this figured out, but it's not looking good for CentOS.  Right now the version of Glib2 on the system is too old, and therefore doesn't have libgio.  I went ahead and pulled the glib2 source from http://ftp.gnome.org/pub/gnome/sources/glib/2.22/glib-2.22.5.tar.gz and built it using the instructions in the INSTALL file, which worked fine.  The problem I hit then was that the versions of glibc and glibc++ weren't recent enough either, so the precompiled binary threw a flag at that as well.

After that I decided I'd just try to recompile the bitcoin binary with the versions I have on my system, but this led to more bad news because there are actually numerous other libraries I don't have.

Right now it doesn't look good for the bitcoin client running on CentOS, but this may change when CentOS 6 comes out, which should have the more up to date libraries.  Otherwise, I'd say try Fedora, in which case the exact same steps should work, and you should actually be able to skip the python installation since Fedora should have a version already installed that is supported by poclbm.
hero member
Activity: 481
Merit: 500
No output from the locate command after running updatedb.

rpm -qa | grep glib2
glib2-2.12.3-4.el5_3.1
glib2-devel-2.12.3-4.el5_3.1
glib2-2.12.3-4.el5_3.1
newbie
Activity: 18
Merit: 0
I've never actually run the graphical client under 5.5, only just the daemon.  Try running...

updatedb
...followed by...
locate libgio-2.0.so.0

Do you get any output from the locate?
hero member
Activity: 481
Merit: 500
Yes, glib2 is installed. Does Bitcoin work for you on centos 5.5? If so, I'll dump 5.6 and go to 5.5.
newbie
Activity: 18
Merit: 0
I tried your instructions on CentOS 5.6 and so far so good, but when I download and try to run Bitcoin, it gives me this message:

./bitcoin: error while loading shared libraries: libgio-2.0.so.0: cannot open shared object file: No such file or directory

I like to run bitcoin on the machine doing the mining and I don't use a pool.  Any ideas?

I can't verify this right now but make sure you have glib2 installed (not sure what this is in the yum repositories).  Also, from what it seems bitcoind doesn't need that library, so if you want to start mining without the GUI until I can verify this later this afternoon I would try that.
hero member
Activity: 481
Merit: 500
I tried your instructions on CentOS 5.6 and so far so good, but when I download and try to run Bitcoin, it gives me this message:

./bitcoin: error while loading shared libraries: libgio-2.0.so.0: cannot open shared object file: No such file or directory

I like to run bitcoin on the machine doing the mining and I don't use a pool.  Any ideas?
newbie
Activity: 18
Merit: 0
I find it's better to git clone the miner, as it makes it much easier to update later.

That's a great point, I just made the update.  It also prevents problems if m0mchil adds any additional files because I remember doing it the way I had been (until you showed me the light) when he added sha256.py and I couldn't figure out why things weren't working.  This would have saved me some frustration Wink
hero member
Activity: 588
Merit: 500
I find it's better to git clone the miner, as it makes it much easier to update later.
newbie
Activity: 18
Merit: 0
So I've had a text file I've been using when setting up new miners under CentOS 5.5, and I figured I'd share it with the community.  Everyone seems to be using Ubuntu, which is great, but I've only run into problems when trying to get everything configured in Ubuntu.  For me, CentOS has been much easier than Ubuntu, so here goes:

First off, when I install CentOS I choose only the Server GUI package group which I then customize by clicking the Customize Now radio button.  I then deselect everything under the Servers group, and make sure I select Development Libraries and Development Tools (or something like that).  This guide starts off after logging into the system after a fresh install.

Install ATI Drivers:
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run
sh ati-driver-installer-11-4-x86.x86_64.run

aticonfig --adapter=all --initial --force


Install and configure AMD APP SDK
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz
tar -xf AMD-APP-SDK-v2.4-lnx64.tgz
cd AMD-APP-SDK-v2.4-lnx64
cp lib/x86_64/* /lib64/
cp icd-registration.tgz /
cd /
tar -xf icd-registration.tgz
rm -f icd-registration.tgz
cd ~
echo AMDAPPSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
echo AMDAPPSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
echo LD_LIBRARY_PATH=/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 >> .bashrc

Install Python 2.7
wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar -xf Python-2.7.1.tgz
cd Python-2.7.1
./configure
make && make install
cd ~

Install NumPy
wget http://downloads.sourceforge.net/project/numpy/NumPy/1.6.0b1/numpy-1.6.0b1.tar.gz
tar -xf numpy-1.6.0b1.tar.gz
cd numpy-1.6.0b1
python setup.py install
cd ~

Install PyOpenCL
wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-2011.1beta3.tar.gz
tar -xf pyopencl-2011.1beta3.tar.gz
cd pyopencl-2011.1beta3/
python configure.py \
  --cl-inc-dir=/root/AMD-APP-SDK-v2.4-lnx64/include \
  --cl-lib-dir=/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 \
  --cl-libname=OpenCL
python setup.py install
cd ~

Install JSON-RPC
svn co http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
python setup.py install
cd ~

Install Git
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -i epel-release-5-4.noarch.rpm
yum install git -y

Clone latest poclbm
git clone git://github.com/m0mchil/poclbm.git
-or-
git clone https://github.com/m0mchil/poclbm.git

REBOOT
reboot

TA DA!  After you reboot, you should be able to run poclbm and start mining!  Please let me know if there's anything I can change here to improve this guide, or if anyone has any problems when using this.  Using this method I'm currently able to mine at 375 Mh/s on a 5870 clocked @ 900 MHz.
Pages:
Jump to: