0

我正在尝试在 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.
4

1 回答 1

0

您的 gperf 是作为 RPM 安装的还是构建的?

如果是 RPM,请尝试使用 rpm --rebuilddb 重建 RPM 数据库。

于 2012-06-01T19:51:45.440 回答