Bitcoin Forum
April 24, 2024, 12:40:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help setting up a cgminer enmasse  (Read 52 times)
canc3r12 (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 02, 2021, 04:08:07 PM
 #1

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!
1713919230
Hero Member
*
Offline Offline

Posts: 1713919230

View Profile Personal Message (Offline)

Ignore
1713919230
Reply with quote  #2

1713919230
Report to moderator
1713919230
Hero Member
*
Offline Offline

Posts: 1713919230

View Profile Personal Message (Offline)

Ignore
1713919230
Reply with quote  #2

1713919230
Report to moderator
1713919230
Hero Member
*
Offline Offline

Posts: 1713919230

View Profile Personal Message (Offline)

Ignore
1713919230
Reply with quote  #2

1713919230
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713919230
Hero Member
*
Offline Offline

Posts: 1713919230

View Profile Personal Message (Offline)

Ignore
1713919230
Reply with quote  #2

1713919230
Report to moderator
1713919230
Hero Member
*
Offline Offline

Posts: 1713919230

View Profile Personal Message (Offline)

Ignore
1713919230
Reply with quote  #2

1713919230
Report to moderator
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6677


bitcoincleanup.com / bitmixlist.org


View Profile WWW
May 03, 2021, 08: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

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!