[Issue 9349] New: rdmd fails with /usr/bin/ld: cannot find -lcurl
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 18 09:56:44 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9349
Summary: rdmd fails with /usr/bin/ld: cannot find -lcurl
Product: D
Version: D2
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: pisetta.gianni at alice.it
--- Comment #0 from Gianni Pisetta <pisetta.gianni at alice.it> 2013-01-18 09:56:43 PST ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list