www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - cannot find -lcurl in Linux

reply Vino <vino.bheeman hotmail.com> writes:
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/


/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


From,
Vino.B
May 03 2018
parent reply Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
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/


 /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
May 03 2018
parent reply Vino <vino.bheeman hotmail.com> writes:
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/


 /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
May 03 2018
parent Vino <vino.bheeman hotmail.com> writes:
On Thursday, 3 May 2018 at 10:22:43 UTC, Vino wrote:
 On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote:
 [...]
Hi Jonathan, The below packages are already installed [...]
Hi Jonathan, Installed the package libcurl-devel, that resolved the issue. Thank you very much. From, Vino.B
May 03 2018