Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Perl version issue, Apache::DBI, ...

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).

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?

2.4 GHz MacBook, 2 GB memory, Mac OS X (10.6.1)

Posted on Nov 11, 2009 8:37 AM

Reply
Question marked as Best reply

Posted on Nov 11, 2009 10:08 AM

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.
5 replies
Question marked as Best reply

Nov 11, 2009 10:08 AM in response to rm50

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.

Nov 11, 2009 10:46 AM in response to etresoft

Well. I used Macports only as a last resort because I failed miserably in getting netpbm to build properly. Of course, after seeing Macports fail in the same way and reading in the Macport forum how to fix it, what I should have done was to go back and fix the problem without Macports (it was a 32-bit vs 64-bit library architecture problem).

How hard is it to simply restore my machine to its native 10.6 configuration and start over?

By the way, how did you install Apache::DBI (in 27 seconds)?

Nov 11, 2009 11:25 AM in response to rm50

rm50 wrote:
How hard is it to simply restore my machine to its native 10.6 configuration and start over?


I'm not sure of that. It all depends on how many configuration changes were made. If everything stays in /opt, it shouldn't be that hard, but you never know. Here are the official instructions: http://trac.macports.org/wiki/FAQ#uninstall

By the way, how did you install Apache::DBI (in 27 seconds)?


sudo perl -MCPAN -e shell
install Apache::DBI

I actually thought it had failed at first, because it was so quick. CPAN installs are normally more involved. Also, in CPAN, success is sometimes indicated by a large number of failure messages. After a closer look, those failures were unrelated and I really did have /Library/Perl/5.10.0/Apache/DBI.pm. I did not test it however.

Perl version issue, Apache::DBI, ...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.