简体   繁体   English

Debian上的NetBeans 7.3缺少C / C ++编译器

[英]C/C++ Compiler Missing on NetBeans 7.3 on Debian

I have installed Debian 7.0.0 and have just installed the full version of NetBeans 7.3 which is supposed to have C/C++ building capabilities. 我已经安装了Debian 7.0.0,并且刚刚安装了完整版本的NetBeans 7.3,该版本应该具有C / C ++构建功能。 However, when I start, I get the message 但是,当我开始时,我得到消息

No C/C++ Compilers Found

I did a search for this error message and Bugzilla said it was obsolete instructions. 我搜索了此错误消息,Bugzilla说这是过时的说明。 However, when I try to build a C++ application, it gives error highlights for standard C++ includes and gives a pop-up asking for the location of the C++ compiler and Makefile. 但是,当我尝试构建C ++应用程序时,它会突出显示标准C ++包含的错误,并弹出一个对话框,询问C ++编译器和Makefile的位置。 I thought these were both provided by IDEs that are supposed to support C++. 我以为它们都是由应该支持C ++的IDE提供的。

All of my C/C++ compilers (or their names at least) are in 我所有的C / C ++编译器(或至少它们的名称)都在

/usr/share/bash-completion/completions

However, when I try to execute them, they behave like they are not there 但是,当我尝试执行它们时,它们的行为就像它们不存在一样

peter@app-server:~$ ls /usr/share/bash-completion/completions/g++
/usr/share/bash-completion/completions/g++
peter@app-server:~$ /usr/share/bash-completion/completions/g++
bash: /usr/share/bash-completion/completions/g++: Permission denied
peter@app-server:~$ sudo /usr/share/bash-completion/completions/g++
sudo: /usr/share/bash-completion/completions/g++: command not found
peter@app-server:~$ 

Check that you actually have a compiler installed. 检查您是否确实安装了编译器。 Typing g++ -v on the command line is the easiest way to verify that (and you also get to know which version you're using by default). 在命令行上键入g++ -v是验证的最简单方法(您还将了解默认情况下使用的是哪个版本)。

If you don't have a compiler yet, aptitude install build-essential will install the bare minimum. 如果您还没有编译器,则aptitude install build-essential将安装最低要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM