www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9349] New: rdmd fails with /usr/bin/ld: cannot find -lcurl

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: pisetta.gianni alice.it



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 

is ok, but then when i launch the command:

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:


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

but then it popups the same error.
When i run

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: -------
Jan 18 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9349


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |DUPLICATE



10:19:57 PST ---
*** This issue has been marked as a duplicate of issue 9269 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 18 2013