Bug 9349 – rdmd fails with /usr/bin/ld: cannot find -lcurl
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2013-01-18T09:56:00Z
Last change time
2013-01-18T10:19:57Z
Assigned to
nobody
Creator
pisetta.gianni
Comments
Comment #0 by pisetta.gianni — 2013-01-18T09:56:43Z
I have a newly installed debian machine, and installed dmd_2.061-0_i386.deb with all the dependencies.
When i launch the command
# rdmd bug.d
is ok, but then when i launch the command:
# rdmd -unittest bug.d
the output is:
/usr/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
--- errorlevel 1
The file bug.d is something like this:
# cat bug.d
import std.stdio;
void main(string[] args)
{
ubyte[1] first;
ubyte[1] second;
writeln( "Fatto!" );
// Lets the user press <Return> before program stops
stdin.rawRead( first );
}
so i don't know why it searches for libcurl. I tried to install it anyway with
# apt-get install libcurl3
but then it popups the same error.
When i run
# dmd -unittest bug.d
it compile without errors and creates the right executable, i tried to run it and is fine, so i think the problem is in rdmd that try to link a library that is unnecessary and it searches it on the wrong path. I checked that libcurl.so is present in the /usr/lib directory, so ld must find it. On another amd64 machine with dmd_2.061-0_amd64.deb installed i tried the rdmd command with the unittest option and it shows the same error.
If there is a need for more info, just ask.
TIA
Comment #1 by andrej.mitrovich — 2013-01-18T10:19:57Z
*** This issue has been marked as a duplicate of issue 9269 ***