Could somebody have met this problem, I have collect2: cannot find 'ld' error when try:
gcc -pthread -I /tmp/usr/include -no-use-gold-linker /tmp/teeest.c -o /tmp/teeest > /tmp/ok.log 2>/tmp/error.log
Result:
collect2: cannot find 'ld'
Check ld existing:
ld: /usr/bin/ld /usr/share/man/man1/ld.1.gz
Check $PATH
/usr/local/bin:/bin:/usr/bin
I try to compile hello world application on C in /tmp dir. CentOS 6, 2016, 2.6.32-642.1.1.el6.x86_64, x86_64