You should might use Fink to install DBDs and DBI on OS X. It's the easiest way to install it and a lot more software like XFree86, vim, emacs, etc. Just go over to the Fink site and install it. Then from your terminal, you can use apt-cache search TERM to find the package (with "TERM" in its title or description) you need. The DBD package is also listed on the Fink site. After you get the package name, use apt-get install packagename to install it.
Fink is a project that wants to bring the full world of Unix Open Source software to Darwin and Mac OS X. As a result, we have two main goals. First, to modify existing Open Source software so that it will compile and run on Mac OS X. (This process is called porting.) Second, to make the results available to casual users as a coherent, comfortable distribution that matches what Linux users are used to. (This process is called packaging.) The project offers precompiled binary packages as well as a fully automated build-from-source system.
To achieve these goals, Fink relies on the excellent package management tools produced by the Debian project - dpkg, dselect and apt-get. On top of that, Fink adds its own package manager, named (surprise!) fink. You can view fink as a build engine - it takes package descriptions and produces binary .deb packages from that. In the process, it downloads the original source code from the Internet, patches it as necessary, then goes through the whole process of configuring and building the package. Finally, it wraps the results up in a package archive that is ready to be installed by dpkg.
Since Fink sits on top of Mac OS X, it has a strict policy to avoid interference with the base system. As a result, Fink manages a separate directory tree and provides the infrastructure to make it easy to use.
In general, for Perl modules you should use the CPAN installation module. This is the installation method that works on all systems that run Perl. Open the terminal and do perl -MCPAN -e'shell' Once you've loaded and configured CPAN, you can then use the install command to install all the modules you need.
| [reply] [d/l] [select] |
You should use Fink to install DBDs and DBI on OS X.
This is a good recommendation if you'll be installing a lot of open-source software, or if you want to avoid touching the vendor-provided Perl that's already installed.
However, if you don't want to install a separate copy of Perl, you're probably better off using the regular CPAN command line, perl -MCPAN -e shell and install DBI.
| [reply] [d/l] [select] |
The version of Perl Apple included with Jaguar is 5.6.0, so I would recommend using Fink to install at least 5.6.1, but even better 5.8.0, both of which Fink has on offer. (Maybe the situation with Panther has improved.) I think, without restriction, that Fink is worth the trouble even for the comparatively small task of installing DBI. :)
Update: Looks like I'll soon be installing Panther and using CPAN ;) For some reason, I overlooked simonm's point about compilation.
| [reply] |
You don't really need to know (dangerous grounds).
Things like that are best left to ExtUtils::Install and ExtUtils::MakeMaker
(or CPAN, CPANPLUS, PPM) which were designed for the job.
What PPM does is tar up the blib directory generated during make,
and uses ExtUtils::Install to install it.
This is what you should do.
update: I didn't mean to sound ominous, it's just that you should take it easy on yourself (and people wanting to support/reuse your software)(:
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" | | I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). | | ** The third rule of perl club is a statement of fact: pod is sexy. |
| [reply] |
I've had a good experience with CPAN on OS X. I neither know nor care where it's installing modules, but they are there when needed.
And I don't have to type 'perl -MCPAN -eshell', by the way, I just type "cpan".
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
| [reply] [d/l] |