problem installing DBD::mysql 
Author Message
 problem installing DBD::mysql

During the installation phase:

...
        Running Mkbootstrap for DBD::mysql ()
        chmod 644 mysql.bs

LD_RUN_PATH="/usr/local/mysql/lib/mysql:/lib:/usr/lib:/usr/lib/gcc-lib/i486-linux/2.7.2.3"
        cc -o ../blib/arch/auto/DBD/mysql/mysql.so  -shared
                -L/usr/local/lib
                dbdimp.o mysql.o -L/usr/local/mysql/lib/mysql
                -L/usr/local/mysql/lib/mysql -lmysqlclient -lm -lz
                -L/usr/lib/gcc-lib/i486-linux/2.7.2.3 -lgcc
-->  chmod 755 ../blib/arch/auto/DBD/mysql/mysql.so
        cp mysql.bs ../blib/arch/auto/DBD/mysql/mysql.bs
        chmod 644 ../blib/arch/auto/DBD/mysql/mysql.bs
        Manifying ../blib/man3/DBD::mysql.3
        Manifying ../blib/man3/Bundle::DBD::mysql.3
        Manifying ../blib/man3/Mysql.3
...

During the testing phase, it complains:

        make[1]: Entering directory    
                `/u3/cpan/build/Msql-Mysql-modules-1.2215/mysql'
        make[1]: Leaving directory
                `/u3/cpan/build/Msql-Mysql-modules-1.2215/mysql'
        make[1]: Entering directory
                `/u3/cpan/build/Msql-Mysql-modules-1.2215/mysql'
        PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch
                -I../blib/lib -I/usr/local/lib/perl5/5.6.0/i586-linux
                -I/usr/local/lib/perl5/5.6.0 -e 'use Test::Harness

                t/*.t
->   t/00base............install_driver(mysql) failed: Can't load
->           '../blib/arch/auto/DBD/mysql/mysql.so' for module
->           DBD::mysql: File not found at
->           /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm
                line 200.

Why does it not find the file installed earlier?

any help is appreciated
thanks



Sun, 31 Aug 2003 22:11:26 GMT  
 problem installing DBD::mysql

Quote:

> During the testing phase, it complains:

>            t/*.t
> ->      t/00base............install_driver(mysql) failed: Can't load
> ->              '../blib/arch/auto/DBD/mysql/mysql.so' for module
> ->              DBD::mysql: File not found at
> ->              /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm
>            line 200.

> Why does it not find the file installed earlier?
>>From the MySQL documentation (section 4.11.4):

"If Perl reports that it can't find the ../mysql/mysql.so module,
then the problem is probably that Perl can't locate the shared library
`libmysqlclient.so'."

If this library is in your LD_RUN_PATH or in a directory listed in
/etc/ld.so.conf, you can compile with 'perl Makefile.PL -static
-config' instead of 'perl Makefile.PL'

That is what I had to do, and it worked for me.
Good luck!
--
Andreas Str?m



Tue, 02 Sep 2003 20:40:29 GMT  
 problem installing DBD::mysql

Quote:
>->       t/00base............install_driver(mysql) failed: Can't load
>->               '../blib/arch/auto/DBD/mysql/mysql.so' for module
>->               DBD::mysql: File not found at
>->               /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm
>            line 200.

I found it. The problem was not mysql.so, but libmysqlclient.so.10,
which for some reason DBD::mysql only looked for in /usr/lib, but
which ws installed only in /usr/local/mysql/lib/mysql.

DOes anyone know
        a) why the default installation (from source .tgz) of MySQL
           does not install it in /usr/lib
or      b) DBD::mysql looks for this library in /usr/lib when it by
           default gets installed under /usr/local/mysql/...

? Any help is appreciated.

Mathias



Tue, 02 Sep 2003 10:58:50 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Problem installing DBD::mysql

2. problems installing DBD::mysql

3. newbie: Problems installing DBD::mysql

4. Problem installing DBD::mysql

5. Problems installing DBD::mysql

6. Problems installing DBD::mysql

7. problem installing DBD::mysql

8. Problem installing DBD::mysql

9. Error: Diamond Access in DataModule

10. Interbase Client/Server 'Remote Access'

11. Equation evaluator

12. TQuery as a result of a function

 

 
Powered by phpBB® Forum Software