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

Ryan Schmidt ryandesign at macports.org
Mon Feb 4 19:45:33 PST 2008


On Feb 4, 2008, at 17:58, 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

There is no problem. You simply need to do what this message tells  
you: force the activation:

sudo port -f activate p5-getopt-long

Now you can go back to trying to install apache-ant.

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




More information about the macports-users mailing list