红联Linux门户
Linux帮助

安装很多软件都会报这个错

发布时间:2011-01-14 10:56:22来源:红联作者:xinnian25
我在装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.


安装其他的也会 请问是缺少了什么软件,需要安装哪些包
文章评论

共有 22 条评论

  1. 大宝 于 2011-01-21 10:18:22发表:

    引用:
    我用的是centos 5


    楼上你放一个翻译的连接作什么
    xinnian25 发表于 2011-1-14 11:33

    因为我以为你看不懂英文

  2. wjq4420131 于 2011-01-17 16:36:40发表:

    哥哥能不能先装一下编译环境在试验一下

  3. shenhao0129 于 2011-01-16 22:12:22发表:

    新手的话最好不要去编译安装,不好管理

  4. nicholaszao 于 2011-01-16 21:46:38发表:

    编译安装失败是缺少GCC环境和LIB库文件,建议搭建一个yum服务器,然后yum install *gcc* *lib*,那样再编译安装的时候就不会出问题了.

  5. alick 于 2011-01-16 16:58:13发表:

    18# setlt


    安装/卸载/更新 软件都有记录在 /var/log/yum.log 文件里,(查看需要root权限)

  6. setlt 于 2011-01-15 22:20:17发表:

    我是提示缺什么就yum一下,搞的自己都不知道一共安装了多少东西

  7. HONWEA 于 2011-01-15 17:05:15发表:

    把上面的用软件仓库解决就行了

  8. HONWEA 于 2011-01-15 17:04:09发表:

    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.

  9. alick 于 2011-01-15 15:06:41发表:

    简单的办法:
    上wine的官网,找centos对应的download链接,(我帮你做了)
    它会带你到 http://fedoraproject.org/wiki/AndreasBierfert/Wine 这个页面
    根据这个页面,建议 在centos 上启用fedora epel 的软件源
    http://mirrors.sohu.com/fedora-epel/
    然后yum install wine 即可。
    无需安装编译环境,无需纠结configure,make,make install。
    缺点,是wine的版本不是很高,没有一些最新的特性。但是,能保证可以用 :)

  10. alick 于 2011-01-15 14:58:50发表:

    编译源代码安装软件需要的前提:
    1. 有编译环境。如gcc用来编译C代码,g++编译C++代码。
    楼主没有g++,需要的话 yum install gcc-c++

    2. 系统库的版本匹配。较新的软件一般需要较新(版本较高)的库文件。
    楼主configure中报flex版本过低,让人怀疑系统库的版本恐怕
    满足不了wine 1.3.11版本的需求。(这个wine的版本很新对吧)

  11. 奶茶dsk 于 2011-01-14 14:07:02发表:

    flex-2.5.33-9.fc7.i386.rpm
    上面已经说了呀,找这个包装装,
    不行试试f10那个,

  12. xinnian25 于 2011-01-14 13:57:10发表:

    https://bugzilla.redhat.com/show_bug.cgi?id=554210

    这是个bug ?

    没人知道吗?

  13. xinnian25 于 2011-01-14 13:31:01发表:

    安装的是flex - 2.5.4a-41.fc6.i386 这个包诶

    你让我装flex-2.5.35-2.fc10.i386.rpm ?

  14. 奶茶dsk 于 2011-01-14 11:55:25发表:

    http://www.rpmfind.net/linux/rpm2html/search.php?query=flex&submit=Search+...
    把那个fc10的包装上试试呗,

  15. xinnian25 于 2011-01-14 11:50:58发表:

    [root@localhost wine-1.3.11]# yum install *flex*
    Setting up Install Process
    Parsing package install arguments
    Package flex - 2.5.4a-41.fc6.i386 is already installed.
    Nothing to do

  16. xinnian25 于 2011-01-14 11:49:14发表:

    configure: error: Your flex version is too old. Please install flex version 2.5.33 or newer.

  17. xinnian25 于 2011-01-14 11:33:10发表:

    我用的是centos 5


    楼上你放一个翻译的连接作什么

  18. 294104551 于 2011-01-14 11:20:47发表:

    额也没有源码安装成功过 不是缺这就是少那 郁闷ing

  19. xinnian25 于 2011-01-14 11:19:56发表:

    [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... flex
    checking whether flex is recent enough... no
    configure: error: Your flex version is too old. Please install flex version 2.5.33 or newer.

  20. xinnian25 于 2011-01-14 11:19:49发表:

    [root@localhost wine-1.3.11]# sudo yum list flex
    Installed Packages
    flex.i386 2.5.4a-41.fc6 installed

  21. pallana 于 2011-01-14 10:57:28发表:

    configure: error: no suitable flex found. Please install the 'flex' package.

    sudo yum list flex