我正在尝试在RedHat机器上安装MySQL-5.5.25-1.linux2.6.src.rpm软件包,但在执行rpmbuild时会发生错误。
它提示需要gperf,但我已经安装了gperf 3.0.4。
我该怎么做才能解决这个问题?
[root@localhost ~]# rpm -ivh MySQL-5.5.25-1.linux2.6.src.rpm
1:MySQL warning: user pb2user does not exist - using root
########################################### [100%]
warning: user pb2user does not exist - using root
[root@localhost /]# cd /usr/src
[root@localhost src]# cd redhat
[root@localhost redhat]# cd SPECS
[root@localhost SPECS]# ls
mysql.5.5.25.spec
[root@localhost SPECS]# rpmbuild -bp mysql.5.5.25.spec
error: Failed build dependencies:
gperf is needed by MySQL-5.5.25-1.linux2.6.i386
[root@localhost SPECS]# gperf --version
GNU gperf 3.0.4
Copyright (C) 1989-1998, 2000-2004, 2006-2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Douglas C. Schmidt and Bruno Haible.
答案 0 :(得分:0)
您的gperf是以RPM还是内置安装的?
如果是RPM,请尝试使用rpm --rebuilddb重建RPM数据库。