Opened 21 months ago
Closed 20 months ago
#71666 closed defect (worksforme)
perl5.26 configuration failure
| Reported by: | jhdiesel | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.5 |
| Keywords: | Cc: | mojca (Mojca Miklavec) | |
| Port: | perl5.26 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
version 2.10.5 on 14.7.2
during an update I got the message to change my sources.conf file from
rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz to rsync://rsync.macports.org/release/tarballs/ports.tar.gz
I edited the conf file and macports threw some errors (sorry I forget which). Hunting around I found instructions to use
https://distfiles.macports.org/ports.tar.gz as a source
that allowed me to update the port tree and ports told me I needed 29 updates.
'upgrade outdated' command then proceeded to fail on the first task, which happened to be configuring perl15.26
Error: Failed to configure perl5.26: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_perl5/perl5.26/main.log for details.
(log file attached)
I've since tried reinstalling ports using the current sonoma pkg file, manually deleting and recreating the sources.conf file with the rsync source including and not including the '/macports' bit, to no avail.
Attachments (1)
Change History (6)
Changed 21 months ago by jhdiesel
comment:1 Changed 20 months ago by jmroot (Joshua Root)
| Cc: | mojca added |
|---|---|
| Port: | perl5.26 added |
| Summary: | error with rsync source results in perl configuration fail? → perl5.26 configuration failure |
comment:2 Changed 20 months ago by jmroot (Joshua Root)
Also the fact that you had perl5.26 installed in the first place suggests that you migrated your MacPorts installation from an older OS version, which means you need to follow wiki:Migration.
comment:3 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)
| Description: | modified (diff) |
|---|
Replying to jhdiesel:
during an update I got the message to change my sources.conf file from
rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz to rsync://rsync.macports.org/release/tarballs/ports.tar.gz
Surely not. The URL whose path starts with /macports has been correct since 2016; the one that starts with /release is obsolete and is kept only for compatibility with users who haven't updated their conf files since before 2016.
Hunting around I found instructions to use
https://distfiles.macports.org/ports.tar.gz as a source
Ok, but fetching the full tarball each time you sync is much less efficient. Use this only if rsync does not work on your network (for example because your network administrator blocks it).
comment:4 Changed 20 months ago by jhdiesel
success!
updating to 5.34 fixed the error and macports is now happy with my sources.conf file
thank you so much
comment:5 Changed 20 months ago by jmroot (Joshua Root)
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |

Perl 5.26 is pretty old and doesn't support macOS 14. You should have got a message about it being known to fail. This has nothing to do with your earlier rsync errors.
Probably the best thing to do is uninstall perl5.26 and use perl5.34 or later. If perl5.26 has dependents on your system, you'll need to also update them to use a newer perl variant.