我的gcc装置工作正常,但最近有东西坏了,我不知道是什么弄坏了它。我该怎么解决这个问题?这就是我试图在C中编译hello world的信息。
$ gcc hello.c
/usr/lib/gcc/x86_64-linux-gnu/4.7/cc1: /usr/local/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libppl_c.so.4)
/usr
我不是一个经验丰富的C程序员,但有时我会编译一些C代码。
上一次我成功编译和运行C代码时,我是在与现在相同的系统上完成的(同一台机器上的操作系统完全相同,没有发生操作系统的卸载/重新安装)。大约两个月前我就这么做了。
现在,如果我试图编译一个非常简单的代码,比如:
#include <stdio.h>
main () {
printf("Hello");
return 0;
}
我得到:
gcc: error trying to exec 'cc1': execvp: No such file or director
我试图通过BeagleBoard-xM上的make menuconfig Angstrom分布配置内核,但我得到了以下错误:
make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has modification time 11647 s in the future
make[1]: Warning: File `scripts/Makefile.host' has modification time 11529 s in the future
HOSTCC scripts/basic/fixde
试图在我的linux机器上的python3.4.3上安装cffi-1.7.0源代码。得到下面的错误。
$ python setup.py安装
cc1:错误:未识别的命令行选项“-Wno未使用-结果”cc1:错误:未识别的命令行选项“-Wno-未使用-结果”
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused
在Ubuntu18.04和Linux4.15.0-99中使用VirtualBox作为主机时,我遇到了一些问题。当试图启动我的Windows客户时,我会收到以下错误的提示:
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you
我正在尝试使用以下配置构建json-c:
./configure --target=arm-linux-androideabi --host=arm-linux-androideabi \
--build=x86_64-unknown-linux-gnu
但我得到了以下错误:
cc1: error: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [-Werror]
我尝试将--disable-std-c++11和--disable-std-cpp11添加到配置
我正在尝试安装Jekyll,但是我一直被这个错误困住了。下面是我尝试安装它的输出
clinch@clinch-VirtualBox:~$ gem install jekyllBuilding native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/home/clinch/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creat
我在Linux上使用的是gcc 4.1.2,我遇到了以下警告:
warning: type qualifiers ignored on function return type
我尝试使用“-Wno-ignored qualifiers”来消除此警告,但它似乎不受支持:
cc1: error: unrecognized command line option "-Wno-ignored-qualifiers"
在gcc 4.1.2中,有没有办法禁用这样的警告?
非常感谢。
我正在使用Ubuntu 18.04
我使用buildroot构建了一个mips交叉编译器,但是当我尝试测试它是否工作时,我得到了以下消息
/home/daisy/repos/repo/buildroot/output/host/bin/../libexec/gcc/mipsel-buildroot-linux-uclibc/9.3.0/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
我寻找解决办法,其中之一说:
s