'How to solve error message "gcc: command not found" (only with arguments) on Ubuntu
I am working with Ubuntu 19.04 (Disco Dingo), and I have GCC installed.
When I run
gcc
I am getting an error showing that I do have gcc
:
gcc: fatal error: no input files compilation terminated.
When I am running gcc
with arguments like this
gcc -g -m32 -o skip skip.c
I am getting
gcc: command not found
I've ran
apt-get purge gcc
apt-get install build-essential
And still I am getting the same error.
Solution 1:[1]
Your line
gcc?? ??-g?? ??-m32?? ??-o?? ??skip?? ??skip.c
is ASCII broken. There are strange (invisible) characters before the spaces. Check it here.
Also, to run gcc
with -m32
flag on, you need to install gcc-multilib
first:
apt-get install gcc-multilib
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Peter Mortensen |