Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3240086
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:02:42+00:00 2026-05-17T18:02:42+00:00

I have installed MacPorts in my MacBook Pro with Snow Leopard. I hadn’t explicitly

  • 0

I have installed MacPorts in my MacBook Pro with Snow Leopard. I hadn’t explicitly installed perl there but I guess it either came installed with the default macports install or was installed as a dependency by any other port I installed.

I want to upgrade the Perl v5.8.9 there with the latest stable Perl version. Whichever it may be currently (I see it is 5.12.2). So, my question is simply how do I do a complete replacement of the old Perl with the new in macports.

Will sudo port upgrade perl5 work or do I need to do something else as well. I just wanted to make sure this was the right command so as to avoid screwing up my macports install.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:02:43+00:00Added an answer on May 17, 2026 at 6:02 pm

    port upgrade packagename is the right form, yes.

    But i think that in this case, it’s a bit trickier than that.

    Have a look at the perl5 portfile. It’s a wrapper which simply depends on perl 5.8. If you just sudo port upgrade perl5, it won’t get you to 5.12. However, the perl5 package has a couple of variants for 5.10 and 5.12. You should be able to see all this locally with port variants perl5.

    What i’m not sure about is whether you can pass variant flags (+perl5_12 in this case) to port upgrade, or whether you need to do a new port install on top of your current installation. Or even, horror of horrors, uninstall the current package before installing the variant.

    The whole variant mechanism was a mistake, IMHO. An interesting and worthwhile experiment, but one from which we’ve learned it was a bad idea.

    EDIT: i think you can add a variant to an installed port; it seems you have to say:

    sudo port deactivate perl5
    sudo port install perl5 +perl5_12
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed macports through macports 1.9.2 on Snow Leopard. Now I can't use
I've installed python27 on my MacBook Pro (OS X 10.6.8) using Macports. Here is
Is there a way to see all I have installed via MacPorts? I know
I have installed gnuplot through macports but when i compile my latex document in
I have macports installed on my mac. One of the macports programs I installed
I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
I have Pythong2.6, psycopg2 and pgAdmin3 installed using Macports. My settings.py is: DATABASE_ENGINE =
I have a Macports installed version of php5, that is missing the curl extension.
I primarily use Textmate for perl hacking on OSX Snow Leopard. It was all
I have python2.7 installed using macports gcc-4.6. When I build an extension module (python

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.