LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-12-2010, 10:01 AM   #1
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Rep: Reputation: 0
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
 
Old 04-12-2010, 01:40 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Moved: This thread has been moved at the request of the original poster.
 
Old 04-12-2010, 01:45 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 04-13-2010, 10:22 AM   #4
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 04-13-2010, 12:57 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 04-13-2010, 01:19 PM   #6
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Got ya my mistake trying that now thanks. Cheers
 
Old 04-13-2010, 01:21 PM   #7
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 04-13-2010, 01:32 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
At this stage I'd try to find out where it's trying to build the code,
and manually go through the Makefile ...
 
Old 04-13-2010, 01:36 PM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,220

Rep: Reputation: 131Reputation: 131
Try with source
http://search.cpan.org/~capttofu/DBD...b/DBD/mysql.pm
 
Old 04-14-2010, 06:56 AM   #10
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
will give it a shot thanks Kirukan and Tinkster
 
Old 04-14-2010, 09:56 AM   #11
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
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:BD::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

Last edited by alos31; 04-14-2010 at 09:57 AM.
 
Old 04-14-2010, 10:08 AM   #12
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 04-14-2010, 01:42 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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?
 
Old 04-14-2010, 03:24 PM   #14
alos31
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Original Poster
Rep: Reputation: 0
It is 64bit. I will give that a shot. Thank you Tinkster.
 
Old 01-11-2011, 02:50 PM   #15
kareepha@hcl.com
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
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?
 
  


Reply

Tags
bugzilla, perl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
list perl module & install perl module DBD::mysql linson_85 Linux - Newbie 4 06-22-2009 10:42 AM
Bugzilla installation -- DBD::Mysql perl errors jbiz Linux - Software 2 09-15-2008 11:31 PM
Bugzilla - MySQL - perl - DBD::mysql install problem amchargue Linux - Software 3 09-10-2008 12:01 AM
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
bugzilla - installing perl DBD::mysql - what do these errors mean? neocontrol Linux - Software 2 03-19-2007 02:17 PM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration