Author

Topic: Need help setting up a cgminer enmasse (Read 66 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
May 03, 2021, 03:23:54 PM
#2
You're missing Zlib development headers and libraries. Install it using

Code:
apt install zlib1g-dev

And install the 32-bit library too in case cgminer's actually looking for that:

Code:
apt install lib32z1-dev
newbie
Activity: 13
Merit: 0
Folks - i have been trying to setup CGminer, but i keep getting the below error when i run make. I basically have 90+ machines with GPUs, that i want to automate deployment as much as possible. I have been doing ethereum perfectly well, today wanted to switch it all to BTC and see what happens. But i arrive at the below error.  I have tried Ubuntu 18.04 & 16.04, both have the same issue. Any help here would be appreciated.

Code:
CC       cgminer-logging.o
  CC       cgminer-klist.o
  CC       cgminer-noncedup.o
  CCLD     cgminer
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:844: recipe for target 'cgminer' failed
make[1]: *** [cgminer] Error 1
make[1]: Leaving directory '/usr/src/cgminer'
Makefile:1813: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

Can anyone help figure out which package may be missing for this error to pop up? The OS is ubuntu 18.04 LTS. The packages i am installing with the script are:
Code:
sudo apt-get --assume-yes install software-properties-common build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev

Any help here would be appreciated. Thanks!
Jump to: