请有人帮忙解决这个问题,我已经花了我所有的googleing子弹
我必须从运行以下内容的服务器中清除所有postgresql文件:
yum remove postgres\*
之后......头痛开始......
之后我不得不重新安装perl DBD :: mysql包。但它无法通过make test命令。我有以下错误:
t/00base.t .............................. 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 15.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.046/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.046/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: mysql_get_server_version at /usr/local/lib/perl5/5.26.0/x86_64-linux/DynaLoader.pm line 193.
# at t/00base.t line 15.
我真的不知道该怎么做。甚至找不到这个" mysql_get_server_version"在DynaLoader.pm的第193行
< CNC中>
通过yum安装了DBD :: mysql(卸载然后安装 - > TWO TIMES)包:
[root@svuxpslgap03 t]# yum install perl-DBD-mysql
Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.023-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
perl-DBD-MySQL x86_64 4.023-5.el7 rhel-7-server-rpms 140 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package
Total download size: 140 k
Installed size: 323 k
Is this ok [y/d/N]: y
Downloading packages:
perl-DBD-MySQL-4.023-5.el7.x86_64.rpm | 140 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : perl-DBD-MySQL-4.023-5.el7.x86_64 1/1
Uploading Package Profile
Verifying : perl-DBD-MySQL-4.023-5.el7.x86_64 1/1
Installed:
perl-DBD-MySQL.x86_64 0:4.023-5.el7
Complete!
它又开始工作了!