大家好,我在设置 Bugzilla 时遇到了一些问题,我的服务器上有该软件,正在尝试设置预录制。我使用的是 RedHat 4.1.2-42。我拥有所有必需的 perl 模块,但只剩下一个:DBD::mysql
当我尝试时:
sudo perl install-module.pl DBD::mysql
我收到以下回复(这只是摘录):
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib64/mysql:/usr/lib64:/lib64" /usr/bin/perl myld gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto \
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
然后我尝试了以下操作:
CFLAGS="-I/usr/lib64/mysql:/usr/lib64:/lib64" perl install-module.pl DBD::mysql
我得到了相同的结果。
我也尝试使用 CPAN 安装它,但结果也一样。现在我有 DBD-mysql v3.0007,但需要 (v4.00)
另外,当我尝试安装 open ssl 时,它说我拥有最新版本。
有人知道我必须做什么才能让它工作吗?任何帮助都将不胜感激。谢谢
在阅读了 gareth_bowles 的回复后,我尝试了以下操作,结果如下:
美味:
Package perl-DBD-MySQL-3.0007-2.el5.x86_64 already installed and latest version Nothing to do
RPM 32 位:
warning: perl-DBD-mysql-4.006-1.el4.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libmysqlclient.so.14 is needed by perl-DBD-mysql-4.006-1.el4.rf.i386
libmysqlclient.so.14(libmysqlclient_14) is needed by perl-DBD-mysql-4.00 6-1.el4.rf.i386
RPM 64 位:
rpm -i perl-DBD-mysql-4.006-1.el5.rf.x86_64.rpm
warning: perl-DBD-mysql-4.006-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKE Y, key ID 6b8d79e6
file /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Bundle /DBD/mysql.pm from install of perl-DBD-mysql-4.006-1.el5.rf.x86_64 conflicts wit h file from package perl-DBD-MySQL-3.0007-2.el5.x86_64
file /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/my sql.pm from install of perl-DBD-mysql-4.006-1.el5.rf.x86_64 conflicts with file from package perl-DBD-MySQL-3.0007-2.el5.x86_64
file /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/my sql/GetInfo.pm from install of perl-DBD-mysql-4.006-1.el5.rf.x86_64 conflicts wi th file from package perl-DBD-MySQL-3.0007-2.el5.x86_64
file /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/my sql/INSTALL.pod from install of perl-DBD-mysql-4.006-1.el5.rf.x86_64 conflicts w ith file from package perl-DBD-MySQL-3.0007-2.el5.x86_64
file /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/D BD/mysql/mysql.so from install of perl-DBD-mysql-4.006-1.el5.rf.x86_64 conflicts with file from package perl-DBD-MySQL-3.0007-2.el5.x86_64
file /usr/share/man/man3/Bundle::DBD::mysql.3pm.gz from install of perl- DBD-mysql-4.006-1.el5.rf.x86_64 conflicts with file from package perl-DBD-MySQL- 3.0007-2.el5.x86_64
file /usr/share/man/man3/DBD::mysql.3pm.gz from install of perl-DBD-mysq l-4.006-1.el5.rf.x86_64 conflicts with file from package perl-DBD-MySQL-3.0007-2 .el5.x86_64
file /usr/share/man/man3/DBD::mysql::INSTALL.3pm.gz from install of perl -DBD-mysql-4.006-1.el5.rf.x86_64 conflicts with file from package perl-DBD-MySQL -3.0007-2.el5.x86_64
尝试 Make 后我得到以下结果:
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
[root@walhoutlab DBD-mysql-4.010]# make install
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib64/mysql:/usr/lib64:/lib64" /usr/bin/perl myld gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto \
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for -lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for -lssl
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1
答案1
可能值得尝试从 RPM 而不是通过 CPAN 安装:
yum install perl-DBD-mysql
这应该可以解决您所缺少的所有依赖项。