ubuntu 10.10错误信息:configure: error: C++ compiler cannot create execut

如果有这样的错误信息:

“configure: error: C++++ compiler cannot create executables"

说明没装gcc或者装了gcc,没装g++,我这ubuntu10.10就是没有g++,最后是apt-get install g++,修复了congfiure不通的错误。

You need to install c++ on your computer. even if you installed gcc that doesn’t automatically install g++. Try to run one of the following commands that fit your Linux distribution best :)

1 yum install gcc-c++<br>
2 or<br>
3 apt-get install gcc-c++<br>

if apt-get doesn’t like the command try

apt-get install g++

查看 build-essential 的依赖项:

代码:

$ apt-cache depends "build-essential"

build-essential

|Depends: libc6-dev

&">nbsp; Depends: <libc-dev>

libc6-dev

Depends: gcc

Depends: g++

Depends: make

Depends: dpkg-dev

你可以看到包含了很多与编译有关的软件包,实际上 build-essential 是一个 meta package。

如果你需要进行软件的编译,需要gcc/g++等,都需要用到这个。当然你也可以分别单独安装gcc/g++的软件包,用build-essential 只不过方便管理罢了!

时间: 2024-08-02 21:28:40

ubuntu 10.10错误信息:configure: error: C++ compiler cannot create execut的相关文章

Centos 6.2安装libpng错误信息configure: error: ZLib not installed

Centos 6.2安装libpng错误信息configure: error: ZLib not installed 在编译libpng-1.5.8.tar.gz的时候报错,configure: error: ZLib not installed,我是使用的以下包进行编译的 zlib-1.2.6.tar.gz libpng-1.5.8.tar.gz 解决方法: 1.进入zlib-1.2.6的源文件目录,执行命令 make clean,清除zlib: 2.重新配置 ./configure,后面不要

编译mysql提示错误:configure: error: No curses/termcap library found 解决方法

文章来源:   在编译Mysql时 ./configure –prefix=DIR 如果出现了以下错误: -- checking for tgetent in -ltermcap- no checking for termcap functions library- configure: error: No curses/termcap library found 说明 curses/termcap 库没有安装 apt-cache search curses | grep lib 如果没有安装

错误信息-fatal error LNK1120: 1 个无法解析的外部命令

问题描述 fatal error LNK1120: 1 个无法解析的外部命令 在//初识输入输出 /*程序1的作用是实现两个数的相加*/ #define zt system("pause") #include using namespace std; int jia(int &a,int &b) { return (a+b); } int main() { int jia(int &a,int &b); int a,b; cout<<&quo

Centos编译Nginx错误configure: error: the HTTP rewrite module 解决办法

我们在编译Centos手工编译Nginx时候,会出现各种编译不通过的错误提示,一般情况下都是系统缺少组件造成的,我这里把平时遇到的错误提示都总结下: 一.错误提示./configure: error: the HTTP rewrite module requires the PCRE library 原因:PCRE组件没有安装 解决办法:安装pcre-devel yum -y install pcre-devel openssl openssl-devel 或者手工编译安装PCRE组件 cd /

随笔 - 141 文章 - 2 评论 - 289 Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法

今天从Apache官网上http://httpd.apache.org/下载httpd web服务器,由于我的虚拟机上之前安装过,我先yum remove httpd进行卸载,然后重新安装.我采用的是源码安装,先进行./configure --prefix=/usr/local/apahce  --enable-so ,提示以下错误: configure: error: APR not found. Please read the documentation. 解决办法 wget http://

shadowsock 编译-shadowsock编译出现configure: error: OpenSSL libraries not found

问题描述 shadowsock编译出现configure: error: OpenSSL libraries not found 我下载shadowsock的c语言版本,交叉编译,总是出现configure: error: OpenSSL libraries not found.,我手动安装了openssl,且lib文件有engines libcrypto.a libcrypto.so libcrypto.so.1.0.0 libssl.a libssl.so libssl.so.1.0.0 p

Oracle数据库配置错误信息

oracle|错误|数据|数据库     Oracle数据库配置错误信息     Oralce数据库的错误信息经常会出现,我们看见的都是错误的代码,至于错误原因究竟是什么还一时半会难以解答,所以就把一些常见的错误整理了一下,来看看也许对你有帮助的.1.   Oracle客户端网络配置:          在Oralce产品安装完成后,为了与数据库服务器进行连接或者是两台数据库之间进行数据复制,则必须进行网络连接配置.          Oracle9i Net Service配置方法:     

用err.raise自定义错误信息

错误 我想大多数的人在编写ASP程序的时候,都碰到过类似的错误信息:   Error Number -> -2147467259   Error Source -> Microsoft OLE DB Provider for ODBC Drivers   Error Desc -> [Microsoft][ODBC Driver Manager] Data source name not found and no default driver 可时间上,这个错误信息对我们并不怎么有用,或

C# &amp;amp;quot;网页上包含错误信息&amp;amp;quot;

问题描述 我使用的是VisialStudio2005使用C#自带的日历控件,选择日期后,IE下方的状态栏显示有错误信息,Error:'theForm.__EVENTTARGET'为空或不是对象使用DropDownList控件选择数据时,也是这个错误,请教!!!感谢万分!!! 解决方案 解决方案二:是不是没装好呀!先重新建个项目试试看解决方案三:别的功能都正常啊!解决方案四:同感解决方案五:页面上有js?解决方案六:在vs环境下,查看html代码,没有javascript代码,在浏览器上可以-查看