collect2: fatal error: cannot find 'ld'

Jack jckj33 at gmail.com
Tue Dec 8 20:25:24 UTC 2020


I just installed ldc on open suse[1] but when I went to compile I 
get this error:

>collect2: fatal error: cannot find 'ld'
>compilation terminated.
>Error: /usr/bin/cc failed with status: 1

the command:
>whereis ld

return

>ld: /usr/bin/ld /usr/bin/ld.bfd /usr/share/man/man1/ld.1.gz 
>>/usr/share/info/ld.info.gz

So at least the terminal can find it in the PATH variable. How 
can I fix this for ldc?

[1]: with this script curl -fsS https://dlang.org/install.sh | 
bash -s ldc



More information about the digitalmars-d-ldc mailing list