LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help getting Bugzilla setup on RedHat - perl install-module.pl DBD::mysql (http://www.linuxquestions.org/questions/linux-software-2/need-help-getting-bugzilla-setup-on-redhat-perl-install-module-pl-dbd-mysql-801567/)

alos31 04-12-2010 10:01 AM

Need help getting Bugzilla setup on RedHat - perl install-module.pl DBD::mysql
 
Hi everyone I am having some issues getting Bugzilla setup, I have the software on the server and am trying to get the pre-rec's setup. I am using RedHat 4.1.2-42.
I have all of the required perl modules save one:DBD::mysql

When I try:
sudo perl install-module.pl DBD::mysql

I get the following response(this is only an excerpt):

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

Any help would be greatly appreciated. Thank you

Tinkster 04-12-2010 01:40 PM

Moved: This thread has been moved at the request of the original poster.

Tinkster 04-12-2010 01:45 PM

And a response: it would appear that you're running a 64-bit version of
Linux, but the script that builds your DBD::Mysql modules looks in the 32
bit library PATHs (only), and finds an "incompatible" version of libssl
which it can't link against.

Have you tried
a) installing the module via CPAN rather than
"sudo perl install-module.pl DBD::mysql"?
b) I've never used above method, or have any idea
how exactly it works, but have you tried to pass
extra flags on the command-line? Maybe something like:
Code:

sudo -i
CFLAGS="-I/usr/lib64/mysql:/usr/lib64:/lib64" perl install-module.pl DBD::mysql



Cheers,
Tink

alos31 04-13-2010 10:22 AM

Thank you Tinkster I tried to install it using CPAN but get the same result. When I try the flag:
[root@walhoutlab bugzilla-3.4.6]# sudo -i CFLAGS="-I/usr/lib64/mysql:/usr/lib64:/lib64" /usr/bin/perl install-module.pl DBD::mysql
Can't open perl script "install-module.pl": No such file or directory

The strange thing is when I try without the flag it goes through. Any idea's as to why this would happen? Thanks

Tinkster 04-13-2010 12:57 PM

those aren't meant to be chained ...
"sudo -i" is the same as "sudo su -", effectively making you
login as root.
THEN run the command with the flags

alos31 04-13-2010 01:19 PM

Got ya my mistake trying that now thanks. Cheers

alos31 04-13-2010 01:21 PM

Okay so I tried that but it looks like for some reason it is still looking for the wrong version. Here is what I get as output now:

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
CAPTTOFU/DBD-mysql-4.013.tar.gz
/usr/bin/make -- NOT OK
Skipping test because of notest pragma
Running make install
Make had returned bad status, install seems impossible


Any ideas? Thanks

Tinkster 04-13-2010 01:32 PM

At this stage I'd try to find out where it's trying to build the code,
and manually go through the Makefile ...

kirukan 04-13-2010 01:36 PM

Try with source
http://search.cpan.org/~capttofu/DBD...b/DBD/mysql.pm

alos31 04-14-2010 06:56 AM

will give it a shot thanks Kirukan and Tinkster

alos31 04-14-2010 09:56 AM

I have also tried the following:YUM, RPM and get the following responses:
yum:
Package perl-DBD-MySQL-3.0007-2.el5.x86_64 already installed and latest version Nothing to do

RPM 32bit:

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 64bit:

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

Will attempt a source install today. Thank you

alos31 04-14-2010 10:08 AM

After trying Make I get the following result:

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

Tinkster 04-14-2010 01:42 PM

You seem to have produced a bit of a mess ... May I suggest you get
rid of all the non-RH rpms for now, and then try re-installing only the
64-bit versions? I *assume* your box is 64-bit?

alos31 04-14-2010 03:24 PM

It is 64bit. I will give that a shot. Thank you Tinkster.

kareepha@hcl.com 01-11-2011 02:50 PM

has any one fixed this error?
 
LD_RUN_PATH="/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/opt/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv \

/usr/bin/ld: skipping incompatible /opt/mysql/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error

My Linux box is 64bit.

As per Tink, we have to re-install our mysql to 64 would fix the issue correct?

from where i can get the downloadable?


All times are GMT -5. The time now is 06:52 PM.