Hi Mojca,

I think you have to run: sudo port deactivate perl 5.8

and then try installing perl 5.12

Hope this works.

Brian

On Thu, Jun 16, 2011 at 4:46 AM, Mojca Miklavec <
[email protected]> wrote:

> Hello,
>
> I have a problem with Perl/Tk programs. Perl doesn't display any PNG
> image in the same program that works fine under linux. Here is the
> minimal example:
>
> #!/opt/local/bin/perl
> $^W = 1;
> use Tk;
> use Tk::PNG;
> my $mw = Tk::MainWindow->new;
> my $img = $mw->Photo(-format => 'png', -file => "texlive.png");
> $mw->Label(-image => $img, -background => "#0078b8")->pack();
> Tk::MainLoop();
>
> (you may replace the filename with an arbitrary PNG image)
>
> I'm using perl 5.8. I tried to upgrade to 5.12, but I don't know how
> to do that (I don't understand the error).
>
>
> > sudo port upgrade outdated
> --->  Computing dependencies for apache2
> --->  Dependencies to be installed: perl5
> --->  Activating perl5 @5.12.3_1+perl5_12
> Error: Target org.macports.activate returned: Image error:
> /opt/local/bin/a2p is being used by the active perl5.8 port.  Please
> deactivate this port first, or use 'port -f activate perl5' to force
> the activation.
> Error: Failed to install perl5
> Log for perl5 is at:
>
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5/main.log
> Error: The following dependencies were not installed: perl5
> Error: Unable to upgrade port: 1
> To report a bug, see <http://guide.macports.org/#project.tickets>
>
> Thank you,
>   Mojca
> _______________________________________________
> macports-users mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>



-- 
Brian Wilson
_____________

Do you want to have a really good year? Connect the dots between Psalm 37:4
and Isaiah 58:13-14.
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to