错误原因是缺少 bison 和 flex ,不仅要安装它们的rpm包,还要安装开发包
yum install flex.x86_64 flex-devel.x86_64 bison.x86_64 bison-devel.x86_64
解决办法
[root@h101 daq-2.0.6]# yum install flex-devel.x86_64 bison-devel.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.opencas.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package bison-devel.x86_64 0:2.4.1-5.el6 will be installed
---> Package flex-devel.x86_64 0:2.5.35-9.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
bison-devel x86_64 2.4.1-5.el6 base 21 k
flex-devel x86_64 2.5.35-9.el6 base 12 k
Transaction Summary
======================================================================================================================================
Install 2 Package(s)
Total download size: 33 k
Installed size: 43 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): bison-devel-2.4.1-5.el6.x86_64.rpm | 21 kB 00:00
(2/2): flex-devel-2.5.35-9.el6.x86_64.rpm | 12 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total 201 kB/s | 33 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : bison-devel-2.4.1-5.el6.x86_64 1/2
Installing : flex-devel-2.5.35-9.el6.x86_64 2/2
Verifying : flex-devel-2.5.35-9.el6.x86_64 1/2
Verifying : bison-devel-2.4.1-5.el6.x86_64 2/2
Installed:
bison-devel.x86_64 0:2.4.1-5.el6 flex-devel.x86_64 0:2.5.35-9.el6
Complete!
[root@h101 daq-2.0.6]#
[root@h101 daq-2.0.6]# yum -y install bison.x86_64
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.opencas.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package bison.x86_64 0:2.4.1-5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
bison x86_64 2.4.1-5.el6 base 637 k
Transaction Summary
======================================================================================================================================
Install 1 Package(s)
Total download size: 637 k
Installed size: 2.0 M
Downloading Packages:
bison-2.4.1-5.el6.x86_64.rpm | 637 kB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : bison-2.4.1-5.el6.x86_64 1/1
Verifying : bison-2.4.1-5.el6.x86_64 1/1
Installed:
bison.x86_64 0:2.4.1-5.el6
Complete!
[root@h101 daq-2.0.6]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。