Scrypt cgminer 3.7.3 Kalroth binaries + build instructions (Ubuntu 64 bit)

Geplaatst: 5 februari 2014 in Cryptocurrency, Linux, Mining

So you’ve got a Scrypt miner and you just found out that C. Kolivas no longer supports Scrypt miner as of cgminer version 3.8.0?

Q: What happened to CPU and GPU mining?
A: Their efficiency makes them irrelevant in the bitcoin mining world today
and the author has no interest in supporting alternative coins that are better
mined by these devices.


Don’t worry, there are multiple fork’s of cgminer out there nowadays, specialized in Scrypt mining. My favorite is Martin “Kalroth” Danielsen version. Changelog is available here.

Kalroth provides pre-compiled Windows binaries, but hey, fuck Windows! We want Linux!

So for the lazy people among us, here are the latest 2014-02-04 Linux precompiled binaries (64 bit). The only change I made to the code is changing the version from 3.7.3 tot 3.7.3-kalroth and patched the API to support PHPMiner.

WARNING !! Never trust binaries from unknown people, so please don’t download my binaries and compile them yourself! It is done in about 5 minutes.

How to build them yourself

First you need the AMD ADL SDK. Without it you can’t build cgminer.

#Install buildtools

sudo apt-get install buildtools
sudo apt-get install libcurl3
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libncurses5-dev
sudo apt-get install git

#clone github Kalroth
git clone https://github.com/Kalroth/cgminer-3.7.2-kalroth.git

#Change directory
cd cgminer-3.7.2-kalroth/

#Copy AMD ADL SDK to cgminer sources
Extract the previously downloaded AMD ADL SDK and copy adl_defines.h, adl_sdk.h and adl_structures.h from the “include” directory to the “cgminer-3.7.2-kalroth/ADL_SDK” directory.

#Optional. Update only necessary when when Kalroth releases an new version after your first successful build.
git pull

#Pre-compile commands
autoconf
automake

#Compile cgminer
CFLAGS="-O2 -Wall -march=native" ./configure --enable-opencl --enable-scrypt
make

Voila, you have your own compiled Scrypt cgminer 3.7.3 Kalroth edition. Happy mining!

If you want to tip someone, I would recommend C. Kolivas (BTC 15qSxP1SQcUX3o4nhkfdbgyoWEFMomJ4rZ) for the basis of this great app, or Kalroth (BTC 1DNBcSEENBwDKrcTyTW61ezWhzsPy5imkn) for his fork. If you really have to muck coins you can always send me a LTC tip: LbkbHNhZF3WXWBB7kttjZuW7LuAXUQvrMN.

Advertenties
reacties
  1. Woensel! schreef:

    I just jerked off to this amazing piece about building and compiling, compiling and building and building and compliling AND BUILDING AND COMPILING AND Aaaaaaaaahhh.. thnx

  2. Alex Barringer schreef:

    Actually, the above statement, “First you need the AMD ADL SDK. Without it you can’t build cgminer.” is incorrect, you can disable the ADL library, especially if you’re using Nvidia or some other manufacturer’s cards or embedded GP-GPUs.

    What you do need, however, is AMD’s APP SDK not to be confused with AMD’s ADL SDK. ADL is to control the AMD / ATI thermal, power and clocking of said devices, the APP is the SDK for OpenCL and other related support files.

    To correctly build for Linux you need to download the AMD APP SDK, unarchive it. Then execute, the .sh file in the directory it sits in to install it. Once it’s installed, it will tell you that you need to reboot to have it take effect, at which time you should do so. Then move forward to build
    CGMiner, SGMiner or BFGMiner.

    Make sure you download the correct version of the APP for your edition of Ubuntu, there is 32 and 64 bit versions. If you use 32-bit PAE kernel, use the 32-bit version of the APP SDK.

    A short cut to install the files above (as sudo apt-get) is to do the following;

    sudo apt-get update && sudo apt-get install buildtools libcurl libcurl4-gnutls-dev libncurses5-dev git

    Of course there are easier ways to install and configure this entire application and support files but I am sure the owner of this blog already knows how to do this.

  3. burtb schreef:

    When I run the line
    sudo apt-get install libcurl

    I get:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package libcurl

    What did I do wrong?

    If I continue anyway an run
    sudo apt-get install libcurl4-gnutls-dev

    I get:
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following packages were automatically installed and are no longer required:
    libssl-dev libssl-doc linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic
    Use ‘apt-get autoremove’ to remove them.
    Suggested packages:
    libcurl3-dbg
    The following packages will be REMOVED:
    libcurl4-openssl-dev
    The following NEW packages will be installed:
    libcurl4-gnutls-dev
    0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
    Need to get 1,098 kB of archives.
    After this operation, 23.6 kB disk space will be freed.
    Do you want to continue [Y/n]? n
    Abort.

    • stefanheijnen schreef:

      You probably need libcurl3.

      Just enter “sudo apt-get install libcurl” and press the TAB-buttun twice. You will get a list with all available packages that you can install that start with libcurl.

      For my system these are:

      libcurl3 libcurl4-doc libcurl-ocaml
      libcurl3-dbg libcurl4-gnutls-dev libcurl-ocaml-dev
      libcurl3-gnutls libcurl4-nss-dev libcurlpp0
      libcurl3-nss libcurl4-openssl-dev libcurlpp-dev

  4. burtb schreef:

    Thank you so much for your help.
    I am a hardware engineer, who has only basic experience, and some limited “c” experience in windows environments.

    I tried
    sudo apt-get install libcurl3-dbg
    error message…

    WARNING: The following packages cannot be authenticated!
    libcurl3-dbg
    Install these packages without verification [y/N]? y
    Err http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3-dbg i386 7.27.0-1ubuntu1.9
    404 Not Found [IP: 91.189.91.13 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl3-dbg i386 7.27.0-1ubuntu1.9
    404 Not Found [IP: 91.189.91.13 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3-dbg_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.13 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

    I tried
    sudo apt-get install libcurl4-gnutls-dev
    error message…

    WARNING: The following packages cannot be authenticated!
    libcurl4-gnutls-dev
    Install these packages without verification [y/N]? y
    Err http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl4-gnutls-dev i386 7.27.0-1ubuntu1.9
    404 Not Found [IP: 91.189.91.14 80]
    Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl4-gnutls-dev i386 7.27.0-1ubuntu1.9
    404 Not Found [IP: 91.189.91.14 80]
    Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-gnutls-dev_7.27.0-1ubuntu1.9_i386.deb 404 Not Found [IP: 91.189.91.14 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

    Your further suggestions?

Geef een reactie

Vul je gegevens in of klik op een icoon om in te loggen.

WordPress.com logo

Je reageert onder je WordPress.com account. Log uit / Bijwerken )

Twitter-afbeelding

Je reageert onder je Twitter account. Log uit / Bijwerken )

Facebook foto

Je reageert onder je Facebook account. Log uit / Bijwerken )

Google+ photo

Je reageert onder je Google+ account. Log uit / Bijwerken )

Verbinden met %s