MacPorts & perl path

Stephan Jaeger alterego at stephanjaeger.eu
Tue Apr 8 21:05:08 PDT 2008


Thanks a million, Luke!

On 08 Apr 2008, at 23:41, Daniel J. Luke wrote:
> On Apr 8, 2008, at 5:53 PM, Stephan Jaeger wrote:
>> I just installed  via macports the ports apache2, mysql5, php5 and  
>> perl5.8.8 on my computer.
>> The reason for doing so is to set up a local development server for  
>> my MovableType development.
>>
>> When I run a check (mt-check.cgi) in order to see which perl  
>> modules I have to install, the module DBD::mysql is listed as "not  
>> installed", although I installed it explicitly.
>
>
> The moveabletype scripts all unfortunately have #!/usr/bin/perl at  
> the top, so they run the system perl instead of the macports perl.
>
> You can either change them all to #!/opt/local/bin/perl (or whatever  
> your macports ${prefix} is set to) or #!/usr/bin/env perl (and then  
> set up the script environment so that the macports perl is first in  
> the path search).
>

I will change the perl scripts to begin with #!/usr/bin/env perl

Best regards
Stephan Jaeger



More information about the macports-users mailing list