/usr/bin/ld.gold: error: failed to find object -lz

Dukc ajieskola at gmail.com
Wed Aug 7 11:40:27 UTC 2019


On Wednesday, 7 August 2019 at 02:47:11 UTC, ?boing? wrote:
> On Tuesday, 6 August 2019 at 12:39:08 UTC, Dukc wrote:
>> On Tuesday, 6 August 2019 at 11:41:25 UTC, kinke wrote:
>>>
>>> LDC definitely doesn't add that. zlib shouldn't be necessary, 
>>> as Phobos contains an (IIRC, outdated) version of it. Anyway, 
>>> you should be able to please the linker by installing a zlib 
>>> package, such as `zlib1g` on Debian/Ubuntu.
>>
>> Installed a Fedora version from 
>> http://rpmfind.net/linux/rpm2html/search.php?query=zlib (using 
>> OpenSUSE, which uses .rpm:s like Fedora). No effect.
>
> https://software.opensuse.org/package/zlib-devel-static

An error when installing, apparently internal.

I doubt anyway if lack of zlib is the real cause, as the error 
message looks like it meant that it tries to look for "-lz" for 
linking it in the application.


More information about the Digitalmars-d-learn mailing list