日期:2014-05-16  浏览次数:20618 次

使用./configure时出错
今天下下来otp_src_R15B解压后使用 configure 出了下面的错误,看不懂。。。

不知道哪里配置出错了??

[root@root otp_src_R15B]# ./configure --prefix=/opt/erlang --with-ssl
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
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 whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for ld... ld
checking for GNU make... no
configure: error: GNU make is required!



------解决方案--------------------
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no

没有安装g++等等必要的工具。

checking for GNU make... no

连make也没有。。。。。。

先安装这些东西吧。

PS:个人认为,楼主用的系统可能是ubuntu的,可以用新立得安装。
------解决方案--------------------
很多东西没有装,估计是安装时候没有选择这些库
全部安装上再安装这些源代码程序
------解决方案--------------------
不行就换个版本的源码试试,没必要在这上面浪费时间。
------解决方案--------------------
我晕。。和我今天的情况差不多。。可能是安装的linux版本问题,很多编译器都没有唉。。。
------解决方案--------------------
这要看你用的是什么发行版
 Redhat系列(包括 fedroa, centos)用
yum groupinstall "Development Tools"
 Debian系列(包括 ubuntu) 用
aptitude install build-essential
------解决方案--------------------
楼主的系统是Fedora或RedHat?
探讨
请问如何安装那些缺少的软件呢,用yum可以装么?

------解决方案--------------------
很多东西没安装。
------解决方案--------------------
默认redhat没购买RHN的license的情况下,是不能使用yum的,自己修改了仓库才可以..

不过看LZ的情况...连configure的报错都看不懂的话,装gcc和make估计也会是比较困难的事....呵呵,如果是新装的系统,建议重装系统,安装时勾选所有的编译器和开发工具,对LZ来说会比较省事...