I don't know what coin you are trying to mine so this is to get a pooler-cpuminer version with scrypt, sha256 and quark mining hashing capability. Get an image with Ubuntu, open a terminal and enter these commands:
sudo apt-get install build-essential libcurl4-openssl-dev
wget http://stonefoz.myfastmail.com/cpuminer-quark2.zip
apt-get install unzip
unzip cpuminer-quark2.zip
cd cpuminer-quark2
./configure CFLAGS="-msse4 -O3"
make
./minerd -a ("quark"/"sha256"/"scrypt") -t (numberofthreads - eg "8") -o (miningpoolURL):(portnumber) --userpass=poolworker:password
(For example: ./minerd -a scrypt -t 8 -o stratum+tcp://mine.pool-x.eu:9000 --userpass=LTCworker.1:x)
That should work.
Edit: this is for Ubuntu. I don't know about other distros.
thank you, I will try that and report back