anuradha has asked for the wisdom of the Perl Monks concerning the following question:
i am a newbie to perl and i had trouble installing the mysql and msql modules for perl. the makefile asks for the location of the mysql directory with a lib directory under it. i can't seem to find this directory anywhere. also, i installed mysql from a binary distribution. since i can't install the libraries, perl can't make use of mysql, right? would be grateful if you could help me on this. thanks in advance.
Re: mysql modules
by lhoward (Vicar) on Sep 11, 2000 at 16:13 UTC
|
To get DBD::MySQL working you must install the MySQL
header files, which do not come in the binary
distribution of MySQL. Try installing one of the source
distributions to make you sure you get all the header files
you need. | [reply] |
Re: mysql modules
by rodry (Beadle) on Sep 11, 2000 at 10:06 UTC
|
This may be a dumb question, but when you mentioned MySQL and Msql modules, are you talking about DBI modules? Or there are there simply stand alone APIs as PERL modules that interface specifically with those DBs.
If you are talking about DBI modules, then you must install the DBI files first.
| [reply] |
Re: mysql modules
by ColtsFoot (Chaplain) on Sep 11, 2000 at 10:20 UTC
|
On one of my Redhat 6.2 installations the libraries for mysql
are located in /usr/lib/mysql these being:-
libdbug.a libmerge.a libmysqlclient.la
libmsys.a libheap.a libmysqlclient.a
libmystrings.a libnisam.a
If you can find these on your system then use this location
in the Makefile.
Hope this helps
| [reply] [d/l] |
RE: mysql modules
by t0mas (Priest) on Sep 11, 2000 at 12:42 UTC
|
If you're on some flavour of Windows, you could try to use the indigo perl distro, which comes with mysql support precompiled right out of the box (er.... zip that is).
/brother t0mas
| [reply] |
|