Issue with /usr/bin/ld (solved)

If none of the more specific forums is the right place to ask

Issue with /usr/bin/ld (solved)

Postby killmasta93 » 2017-12-28 02:37

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

Postby killmasta93 » 2017-12-28 03:38

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
killmasta93
 
Posts: 2
Joined: 2017-12-28 02:32


Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable