Lightning: build error

Created on 16 Jun 2018  路  2Comments  路  Source: ElementsProject/lightning

Issue and Steps to Reproduce

When I run make after running ./configure in the root directory I get the following error:

backtrace -L/usr/local/lib -lm -lgmp -lsqlite3 -lz  -o ccan/ccan/cdump/tools/cdump-enumstr
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:326: recipe for target 'ccan/ccan/cdump/tools/cdump-enumstr' failed
make: *** [ccan/ccan/cdump/tools/cdump-enumstr] Error 1

Looks like my machine is now missing some dependency but it's unclear to me what that is.

getinfo output

This error is on the head of master and it didn't build so this command wouldn't output the relevant information.

compilation

Most helpful comment

Installing zlib1g-dev fixed this on Ubuntu amd64 18.04 LTS bionic

sudo apt-get install zlib1g-dev

All 2 comments

Installing zlib1g-dev fixed this on Ubuntu amd64 18.04 LTS bionic

sudo apt-get install zlib1g-dev

Yes, the zlib dependency was recently introduced for the selective gossip syncing.

Was this page helpful?
0 / 5 - 0 ratings