Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: cannot execute 'as': execvp: no such file or directory [closed]

Whenever I try to compile c/cpp files it gives this error:

gcc: fatal error: cannot execute ‘as’: execvp: No such file or directory
compilation terminated.

I have also tried to include full path of file while compiling but same error occured. Just to be sure of version mismatch I looked for both gcc and g++ version but both are same, gcc/g++ version: 9.1.0.

How can I fix this?

like image 758
Sankalp Avatar asked Jun 28 '19 05:06

Sankalp


1 Answers

as command is from binutils. Have you installed this package?

like image 193
Mr Pang Avatar answered Nov 06 '22 08:11

Mr Pang