gpt4 book ai didi

c - 如何在 Ubuntu 上解决错误消息 "gcc‬: command not found"(仅带参数)

转载 作者:行者123 更新时间:2023-12-02 10:52:55 25 4
gpt4 key购买 nike

我正在使用 Ubuntu 19.04 (Disco Dingo),我安装了 GCC。
当我跑

gcc
我收到一条错误消息,表明我确实有 gcc :

gcc: fatal error: no input files compilation terminated.


当我运行时 gcc有这样的论点
gcc‬‬ ‫‪-g‬‬ ‫‪-m32‬‬ ‫‪-o‬‬ ‫‪skip‬‬ ‫‪skip.c‬‬
我正进入(状态

gcc‬‬: command not found


我跑过
apt-get purge gcc
apt-get install build-essential
我仍然遇到同样的错误。

最佳答案

你的线路

gcc‬‬ ‫‪-g‬‬ ‫‪-m32‬‬ ‫‪-o‬‬ ‫‪skip‬‬ ‫‪skip.c
ASCII 坏了。空格前有奇怪的(不可见的)字符。检查它 here .
另外,运行 gcc-m32 flag on,你需要安装 gcc-multilib第一的:
apt-get install gcc-multilib

关于c - 如何在 Ubuntu 上解决错误消息 "gcc‬: command not found"(仅带参数),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61725948/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com