Skip to content
Dean M Greer edited this page Mar 6, 2024 · 7 revisions

Fixing download issues

Older versions of macOS will have problems downloading from many places so we need a way to workaround this.
This workaround is from Ken (Macports)


Requirements

  • Xcode Command Line Tools
  • Macports installation
sudo port install git
git clone --depth 1 --branch v2.9.1 https://github.com/macports/macports-base.git
cd macports-base
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export MP_PREFIX=/opt/bootstrap
./configure --prefix=$MP_PREFIX --with-applications-dir=$MP_PREFIX/Applications --without-startupitems
make
sudo make install
sudo $MP_PREFIX/bin/port -v selfupdate
sudo $MP_PREFIX/bin/port install curl
git clean -fx
./configure --with-curlprefix=$MP_PREFIX --prefix=/opt/local
make
sudo make install

Updating the bootstrap

Occasionally this bootstrap Macports install should be updated.

sudo /opt/bootstrap/bin/port -v selfupdate
sudo /opt/bootstrap/bin/port upgrade outdated

Once a new version of Macports is released run the above steps again as Macports upgrades won't respect --with-curlprefix

Clone this wiki locally