On 21/02/2025 16.14, Mark Lucas wrote: > :error:build Failed to build certbot: sh: line 0: cd: /opt/local/var/ > macports/build/ > _opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_certbot/certbot/work/certbot-3.2.0/certbot/docs: > No such file or directory > > :debug:build Error code: NONE
It's looking in the wrong place. The process seems to still has some leftovers from your 1st attempt. This is because your 1st attempt failed mid-process. It looks as if when it couldn't see your ./ports/certbot Portfile , it used the MacPort certbot Portfile instead - and that messes things up. You can see this in the part of the path between /build/ and /work/ . Eg. one of my failed builds w/ a correct path is : /opt/local/var/macports/build/ _Volumes_Bjarne4TB_Users_Bjarne_BDMdata_GitMacintosh_MacPorts_macports-ports_devel_xapian-core/php83-xapian /work/xapian-bindings-1.4.27/config.log So, in your 2nd attempt, port correctly sees the Portfile, !BUT! it also sees that you have already started the process - so it just re-starts from where it stopped. Try: 1) sudo bash 2) port clean --all certbot 3) cd /opt/local/var/macports/build/ ; rm -rf * 4) cd /Users/******/ ; find ./ports -type l -name work -ls -delete 5) exit notes: (1) gives you a root shell so you don't have to prefix everything w/ 'sudo' (2) removes everything port can see of the installation process - just to be sure there's nothing left of the 1st attempt (3) removes everything left over from any build process (4) when building, port makes a symbolic link from the Portfile dir to the build dir. This removes any such left behind. (5) returns you to your normal shell When working w/ ports, I usually have two Terminal windows open (1) in this one, I've executed 'sudo bash' in order to have access to !!!EVERYTHING!!! ;-) Be VERY careful in this one 8-) (2) in the 2nd, I'm my normal un-privileged self happy hacking -- Bjarne D Mathiesen Slagelse ; Danmark ; Europa ----------------------------------------------------------------------- denne besked er skrevet i et totalt M$-frit miljø MacPro 2010 5.1 ; OpenCore + macOS 14.7.4 Sonoma 2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM ATI Radeon RX 590 8 GB