cannot find -lcurl in Linux

Jonathan M Davis newsgroup.d at
Thu May 3 10:19:55 UTC 2018

On Thursday, May 03, 2018 10:10:05 Vino via Digitalmars-d-learn wrote:
> Hi All,
>   Request your help , while compiling a d program in SUSE Linux i
> am getting the below error, the executable curl is present under
> the path /usr/bin/
> ask:/DScript # dmd -m64 -O -release -inline test.d
> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lcurl collect2: error: ld returned 1 exit status
> Error: linker exited with status 1

-lcurl means that it's linking against the curl library, not that it's
trying to use the curl executable. It needs libcurl.a, and I believe that on
OpenSuSE, that means that you need to install the development package for

- Jonathan M Davis

More information about the Digitalmars-d-learn mailing list