rm50 wrote:
I fear I have mucked up my environment...I have an old install of Perl 5.10 on my machine; recently while installing various components through macports, the default Perl was changed (by macports) from 5.10 to 5.8.9 (which I believe ships with Mac OS).
Maybe I should start a consulting business where I just repair FUBARs caused by Macports. It certainly seems to be a large market.
First of all, Perl 5.10 isn't old. That is the Perl version that ships with Snow Leopard. 5.8.9 is the old one. If there is one software you don't need from Macports, it is Perl.
I am trying to get a web app up and running with mod_perl, and startup.pl cannot find Apache::DBI. There are several issues: 1) Apache::DBI is not installed, 2) when I try to use CPAN to install Bundle::Apache, CPAN asks me for the path to my apache source (which I'm not sure I even have), and 3) when I look at my perl @INC, my @INC still refers to 5.10.0 directories. (I realize that this is unrelated, largely: there is simply no DBI.pm in a directory named Apache on my system. But it's clearly wrong anyway).
Suggestions?
Unfortunately, your question would have been pretty straightforward before MacPorts. I know very little about MacPorts but I think it should be easy to uninstall. Hopefully they provide an uninstaller.
MacPorts is definitely the source of your problem. I just spent about 27 seconds installing Apache::DBI on my 10.6.1 system. No problems at all.