I actually got it to finally work when I added more RAM.
However I am just wondering is there anyway to make this work with a pool instead of solo mining? I tried compiling the other linux miner and got nothing but errors.
Glad to hear that. I wouldn't know about pool mining but this might help
For pools you should use one of the Stratum miners, which are completely separate packages, see the first post.
Just follow compiling instructions.
But i strongly suggest to do solo mining to keep the network decentralized, especially if your average time to find a block is below 2-3 days.