编译源代码软件出错,请指点吧

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
newman0708
帖子: 188
注册时间: 2007-09-22 13:09

编译源代码软件出错,请指点吧

#1

帖子 newman0708 » 2007-10-14 20:01

我想装一个 myget-0.1.0,下载了原代码,自己准备编译,运行 了./configure后出现了下面的检测,
以前我在FC6用过这个软件的,是可以正常编译,并运行 的。

newman0708@newman0708-desktop:~/myprogram/myget-0.1.0$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.





我的系统版本是:Linux newman0708-desktop 2.6.20-15-generic
gcc是:

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
头像
lyre
帖子: 77
注册时间: 2005-06-28 18:08

#2

帖子 lyre » 2007-10-14 22:08

缺少c++编译器,apt一个g++
头像
xiaosilent
帖子: 513
注册时间: 2006-05-09 9:59
来自: 四川成都
联系:

#3

帖子 xiaosilent » 2007-10-14 22:15

sudo apt-get install build-essential
头像
newman0708
帖子: 188
注册时间: 2007-09-22 13:09

现在能编译 源码了

#4

帖子 newman0708 » 2007-10-14 22:43

感谢两位的回答,

问题解决了,我用了
sudo apt-get install build-essential
回复