Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Issue with /usr/bin/ld (solved)

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
killmasta93
Posts: 2
Joined: 2017-12-28 02:32

Issue with /usr/bin/ld (solved)

#1 Post by killmasta93 »

Hi,
I was wondering if someone could assist me on the issue im having. Currency trying to test out CPU mining I have installed all the dependencies but when i try make i get this error. Running Debian 9.1

Code: Select all

/usr/bin/ld: cannot find -lz
This is what i did

Code: Select all

apt-get install build-essential libcurl4-openssl-dev git automake libtool libjansson* libncurses5-dev libssl-dev
then

Code: Select all

git clone --recursive https://github.com/tpruvot/cpuminer-multi.git
then

Code: Select all

./autogen.sh

Code: Select all

./configure CFLAGS="-march=native" --with-crypto --with-curl

Code: Select all

make
after that i get at the end the issue

Code: Select all

/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:900: recipe for target 'cpuminer' failed
make[2]: *** [cpuminer] Error 1
make[2]: Leaving directory '/root/cpuminer-multi'
Makefile:2530: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/cpuminer-multi'
Makefile:570: recipe for target 'all' failed
make: *** [all] Error 2
Thank you
Last edited by killmasta93 on 2017-12-28 03:38, edited 1 time in total.

killmasta93
Posts: 2
Joined: 2017-12-28 02:32

Re: Issue with /usr/bin/ld

#2 Post by killmasta93 »

SOLVED:
I Needed this

Code: Select all

apt-get install \
    build-essential pkg-config libc6-dev m4 g++-multilib \
    autoconf libtool ncurses-dev unzip git python \
    zlib1g-dev wget bsdmainutils automake

Post Reply