On 10/2/2025 08:42, Ryan Carsten Schmidt wrote:
On Feb 9, 2025, at 15:26, Maxim Abalenkov wrote:

sudo port -d install perl5 +perl5_40

This fails with ‘Dependency perl5.40 not found’. Obviously, I missed something 
in the Portfile.

The portfiles is probably fine. You probably just need to run

sudo port -d install subport=perl5.40

The reason that perl5.40 can't be found as a dependency when installing perl5 +perl5_40 is that it isn't in the index yet. You can run portindex in your ports tree to change that, see <https://guide.macports.org/#development.local-repositories>.

A sync or selfupdate will also run portindex, but be careful with that if you are editing Portfiles in a tree synced using the default rsync method, as syncing will wipe out your local changes. This is why using a separate local tree is recommended for anything requiring more permanence.

- Josh

Reply via email to