Unable to install "Msql-Mysql-modules"

Unable to install "Msql-Mysql-modules"

am 27.07.2005 12:50:26 von Francesco Moi

Hi.

I work with FC2, Perl v5.8.3, MySQL 3.23.58, and got installed
'Data-ShowTable-3.3' and 'DBI-1.48'.

I'm trying to install 'Msql-Mysql-modules-1.2219', but get this error
message when 'make':
----------------------------------------
make[1]: Entering directory `/root/src/Msql-Mysql-modules-1.2219/mysql'
make[1]: Leaving directory `/root/src/Msql-Mysql-modules-1.2219/mysql'
make[1]: Entering directory `/root/src/Msql-Mysql-modules-1.2219/mysql'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/00base...........Illegal character in prototype for main::ErrMsg : @_
at t/lib.pl line 253.
Illegal character in prototype for main::ErrMsgF : @_ at t/lib.pl line
254.
install_driver(mysql) failed: Can't load
'/root/src/Msql-Mysql-modules-1.2219/mysql/../blib/arch/auto /DBD/mysql/mysql.so'
for module DBD::mysql: libmysqlclient.so.10: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at t/00base.t line 38
t/00base...........dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 152) line 1, near "'int'
$__val"
(Missing operator before $__val?)
DIED. FAILED tests 4-5
--------------------------

Any suggestion about what I am doing wrong?

Regards.

Re: Unable to install "Msql-Mysql-modules"

am 28.07.2005 08:18:53 von Christian Winter

Francesco Moi wrote:
[...]
> I'm trying to install 'Msql-Mysql-modules-1.2219', but get this error
> message when 'make':
> ----------------------------------------
[...]
> install_driver(mysql) failed: Can't load
> '/root/src/Msql-Mysql-modules-1.2219/mysql/../blib/arch/auto /DBD/mysql/mysql.so'
> for module DBD::mysql: libmysqlclient.so.10: cannot open shared object
> file: No such file or directory at
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
> at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
> at t/00base.t line 38
[...]

Did you check that libmysqlclient.so.10 is installed on
your system?

-Chris

Re: Unable to install "Msql-Mysql-modules"

am 28.07.2005 09:31:20 von Francesco Moi

>
> Did you check that libmysqlclient.so.10 is installed on
> your system?
>
> -Chris


Thank you very much, Chris. You pointed me the mistake. As usual, I
forgot
to check my dynamic linker:
-------------------------------
[root@server]# /sbin/ldconfig -v | grep libmysqlclient
(null)
------------------------------

Ok. I'm to find out where my libraries are:
--------------------------
[root@server]# /usr/local/mysql/bin/mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I'/usr/local/mysql/include/mysql']
--libs [-L'/usr/local/mysql/lib/mysql' -lmysqlclient
-lz -lcrypt -lnsl -lm]
--socket [/tmp/mysql.sock]
--port [3306]
--version [3.23.58]
------------------------------

1) I added '/usr/local/mysql/lib/mysql' to '/etc/ld.so.conf'
2) Just in case:
----------------
[root@server]# export
LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:$LD_LIBRARY_PATH
---------------

Ok. It works.