在centos上安装很多软件时都会报的错

在装wine的时候

[root@localhost wine-1.3.11]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... 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.exe... 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 cpp... cpp
checking for the directory containing the Wine tools... $(top_builddir)
checking for flex... no
configure: error: no suitable flex found. Please install the 'flex' package.


解决办法是

yum -y install gcc gcc-c++ libstdc++-devel

安装这个些东西就不会出现g++那些包没安装的问题



猜你喜欢

转载自xinnian.iteye.com/blog/871069
今日推荐