大家好,我在设置 Bugzilla 时遇到了一些问题,我在服务器上安装了该软件,并且正在尝试获取 pre-rec 的设置。我正在使用 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
转速 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
转速 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
可能值得尝试从 RPM 而不是通过 CPAN 安装:
这应该可以解决您拥有的任何缺失的依赖项。