Bitcoin Forum
November 06, 2024, 03:03:39 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with setting up cgminer  (Read 160 times)
canc3r12 (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 02, 2021, 11:37:33 AM
 #1

Folks - i have been trying to setup CGminer, but i keep getting the below error when i run make.

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!
tom22022
Jr. Member
*
Offline Offline

Activity: 33
Merit: 8


View Profile
May 04, 2021, 02:44:52 PM
 #2

Try installing libz

On my ubuntu it was sudo apt install libz-dev

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!