At 23:22 Uhr -0400 23.06.2001, David wrote:
>on: Sat, 23 Jun 2001 21:44:26 +0200 Thomas Bielefeldt wrote:
>
>>I just tried to install the DBD - Mysql Module an the DBI Module to my
>>MacPerl running on a G3 Mac.
>>I tried intstalling with running the "Makefile.pl" Programm.
>>This Programm aborts due to compilation Errors an gives the following Error
>>report:
>>
>>File "Macintosh HD:Applications (Mac OS 9):WEB-Design:MacPerl
>>Ÿ:lib:DBI:DBD:Makefile.PL"; Line 5:  Can't locate DBI/DBD.pm in @INC.
>>
>>How can I work out this Problem.
>
>Manually move files to the appropriate location - in your case:

Nope. That's not a very good idea, unless you really know what you are doing. For 
example, there are some modules out there on CPAN that use autoloading and hence need 
autosplitting. These modules will not work if you simply move them in the site_perl 
folder. It's better to use Chris Nandor's installme.plx droplet for installation. This 
installer is part of the cpan-mac-0.50 module, available from CPAN

    http://www.perl.com/CPAN-local/authors/id/CNANDOR/

or via Chris Nandor's MacPerl page

    http://pudge.net/macperl/.


Regarding DBI, you first have to install the DBI (database [independant] interface) 
module and then one or more DBDs (database drivers). Since the DBI module needs to be 
built (i.e. compiled and linked) for MacPerl, the DBI module found on CPAN won't help 
you much. The DBI (version 1.08) and other pre-built modules are available from the 
MacPerl Module Porters Page at

    http://pudge.net/mmp/.

Download it, drop the archive on the installer and answer the upcoming question 
"Convert all text and MacBinary files?" with "Yes". This should install the module 
properly.


Regarding DBDs, DBD-Mysql will not work on Mac OS (Classic). Most DBD's have to be 
built on the OS they should run on, and hence you need a native database library 
(static, shared, whatever) you can link against. Unfortunately, MySQL has never been 
ported to Mac OS (at least I'm not aware of a port).

For more information on DBDs for MacPerl, you may want to visit my website at

    http://usemacperl.webjump.com/dbi.html .

If you want to use MacPerl and DBI with a true relational database engine (ANSI 
SQL-92), I recommend my module DBD::DtfSQLmac 0.1201, available from the above URL. 
For installation, see the README .


>When MacPerl looks for a module, it looks in the folders specified in the Libraries 
>Preference (found under the Edit menu).
>
>If you name the folder site_perl and put it in the MacPerl folder, you do not need to 
> add it to your preferences, as that folder name is specially added for you. But, 
>when you upgrade your version of MacPerl, don't forget to retain a copy of the folder
>
>info from Chapter 11: Extensibiltiy And Re-use
>MacPerl - Power and Ease
>by: Vicki Brown and Chris Nandor
>http://www.ptf.com/macperl/ptf_book/
>
>An HTML version http://ptf.com/macperl/ptf_book/r/MP/i2.html
>of the book available online! This means that you can "try before you buy"... or... 
>not. Think of it as Shareware...  for a book!

David is right, the book is highly recommended.


Best regards,

--Thomas


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to