cannot find -lcurl in Linux

Vino vino.bheeman at hotmail.com
Thu May 3 10:22:43 UTC 2018


On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote:
> 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 curl.
>
> - Jonathan M Davis

Hi Jonathan,

  The below packages are already installed

S  | Name           | Type    | Version        | Arch   | 
Repository
---+----------------+---------+----------------+--------+------------------------
i+ | curl           | package | 7.37.0-37.8.1  | x86_64 | 
localSLES12-SP2-Updates
i+ | curl           | package | 7.37.0-37.8.1  | x86_64 | 
SLES12-SP2-Updates
i+ | libcurl4       | package | 7.37.0-37.8.1  | x86_64 | 
localSLES12-SP2-Updates
i+ | libcurl4       | package | 7.37.0-37.8.1  | x86_64 | 
SLES12-SP2-Updates
i+ | libcurl4-32bit | package | 7.37.0-37.17.1 | x86_64 | 
SLES12-SP2-Updates
i  | python-pycurl  | package | 7.19.0-16.5    | x86_64 | 
localSLES12-SP2-Pool
i  | python-pycurl  | package | 7.19.0-16.5    | x86_64 | 
SLES12-SP2-Pool

From,
Vino.B


More information about the Digitalmars-d-learn mailing list