p5-getopt-long and perl5.8 - activation error

Ryan Schmidt ryandesign at macports.org
Mon Feb 4 21:12:33 PST 2008


On Feb 4, 2008, at 21:52, Michael Franz wrote:

> On Feb 4, 2008 10:47 PM, William Davis wrote:
>
>> On Feb 4, 2008, at 6:58 PM, Michael Franz wrote:
>>
>>> I am installing an application that somewhere along the line it  
>>> has a dependency on both p5-getopt-long and perl5.8. I do not  
>>> know how these two relate. All that I know at this point is that  
>>> they conflict. I see that there is a perl5.10. Is this version to  
>>> be used instead of perl5.8? If so, how do I get the dependent  
>>> projects to use it?
>>>
>>>
>>> Here is the build/install log with the final error.
>>> ---> Fetching apache-ant
>>>
>>> ... many lines and ports excluded. I can send the complete log if  
>>> necessary.
>>>
>>> ---> Fetching perl5.8 ---> Attempting to fetch perl-5.8.8.tar.bz2  
>>> from http://www.cpan.org/src/5.0/ ---> Verifying checksum(s) for  
>>> perl5.8 ---> Extracting perl5.8 ---> Applying patches to perl5.8  
>>> ---> Configuring perl5.8 ---> Building perl5.8 with target all --- 
>>> > Staging perl5.8 into destroot ---> Installing perl5.8 5.8.8_1 
>>> +darwin_8 ---> Activating perl5.8 5.8.8_1+darwin_8 ---> Cleaning  
>>> perl5.8 ---> Fetching p5-pathtools ---> Attempting to fetch  
>>> PathTools-3.27.tar.gz from http://ftp.ucr.ac.cr/Unix/CPAN/modules/ 
>>> by-module/../../authors/id/K/KW/KWILLIAMS/ ---> Verifying checksum 
>>> (s) for p5-pathtools ---> Extracting p5-pathtools --->  
>>> Configuring p5-pathtools ---> Building p5-pathtools with target  
>>> all ---> Staging p5-pathtools into destroot ---> Installing p5- 
>>> pathtools 3.27_0 ---> Activating p5-pathtools 3.27_0 --->  
>>> Cleaning p5-pathtools ---> Fetching p5-getopt-long --->  
>>> Attempting to fetch Getopt-Long-2.37.tar.gz from http:// 
>>> ftp.ucr.ac.cr/Unix/CPAN/modules/by-module/Getopt ---> Verifying  
>>> checksum(s) for p5-getopt-long ---> Extracting p5-getopt-long --- 
>>> > Configuring p5-getopt-long ---> Building p5-getopt-long with  
>>> target all ---> Staging p5-getopt-long into destroot You must  
>>> install or activate this package with '-f' (force) as it needs to  
>>> overwrite files installed by the perl5.8 port ---> Installing p5- 
>>> getopt-long 2.37_0 ---> Activating p5-getopt-long 2.37_0 Error:  
>>> Target org.macports.activate returned: Image error: /opt/local/ 
>>> lib/perl5/5.8.8/Getopt/Long.pm is being used by the active  
>>> perl5.8 port. Please deactivate this port first, or use the -f  
>>> flag to force the activation.
>>>
>>> Michael
>>
>> Thats how perl works when adding so-to-speak extensions.
>> Just do:
>> sudo port -df activate p5-getopt-long
>> as indicated by the error mesg above.
>
> I just re-ran the command.  It failed on the next 5 dependencies.   
> Each time, I just re-ran until I got past the perl problems.

There are a number of perl ports that require this. The will tell you  
"You must install or activate this package with '-f' (force) as it  
needs to overwrite files installed by the perl5.8 port." Use the "-f"  
option only if you see a message like that. Usually it isn't  
necessary. Don't use "-f" unless necessary.



More information about the macports-users mailing list