in reply to Re: Installing DBD via CPAN
in thread Installing DBD via CPAN

Ive tried
perl Makefile>PL --cflags=-I/usr/local/mysql
I get this error:
Failed to determine directory of libmysqlclient.a|libmysqlclient.so.

My command of unix is still quite medium. Can you see what is wrong in my command.
Costas

Replies are listed 'Best First'.
Re: Re: Re: Installing DBD via CPAN
by Cubes (Pilgrim) on Jul 17, 2001 at 14:34 UTC
    You're making progress... now you just need to tell it where to find your mysql libraries by adding to your perl Makefile.pm commandL
    --cflags=-I/usr/local/mysql -libs=-L/path/to/mysql/libs

    You can find most of this information in the INSTALL.html file that's in the tio level of your DBD-mysql build directory -- if you continue to have difficulty, look for the answer there before posting here -- might save you a lot of time.

Re: Installing DBD via CPAN
by dondelelcaro (Monk) on Jul 17, 2001 at 16:54 UTC
    Gack. I totally missed this. (Sorry... it's late... or early rather...)
    --cflags=-I/usr/local/mysql -libs=-L/path/to/mysql/libs
    Should be
    --cflags=-I/usr/local/mysql/include -libs=-L/usr/local/mysql/lib/mysql
    That's why your compiler is unable to find mysql.h and errmsg.h. It doesn't have the right include directory set. (Assuming your mysql install directory is /usr/local/mysql/)
Re: (2) Installing DBD via CPAN
by agoth (Chaplain) on Jul 17, 2001 at 14:39 UTC
    That seems fine as long as mysql.h is in that directory? At a guess it's found your header files but cant get to the client libraries.

    I'm only getting this from the Doc's you know :) !, though I've had problems with DBD::Oracle in the past....

    In addition to --cflags use the --libs directive as well to specify where the .so or .a files are and see if that gets you over both hurdles.