Solution of "running package script" for MAC installing MacPorts card

Keywords: OS X rsync Python ftp xcode

  1. Click the upper right corner to force the end of "installer"
  2. Open terminal, enter the command "ps -ef | grep install", find the legacy process and kill it
  3. Install Xcode
  4. Enter the command "xcodebuild -license" and agree
  5. MacPorts is stuck because the installation script uses Rsync update during the installation process. Even if the wall is overturned, most fq software will not proxy because Rsync is a system process

    Solution: use proxifier to implement global proxy. And tick "System processes" to realize the agent of System processes. As shown in the figure below

  6. Enter sudo port -d selfupdate, and the proxifier will show rsync passing through the tunnel

        szhdeiMac-Pro:~ szh$ sudo port -d selfupdate 
        Password:
        DEBUG: Copying /Users/szh/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
        DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
        --->  Updating MacPorts base sources using rsync
        DEBUG: system: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
        
        Willkommen auf dem RSYNC-server auf ftp.fau.de.
        Nicht all unsere Mirror sind per rsync verfuegbar.
        
        Welcome to the RSYNC daemon on ftp.fau.de.
        Not all of our mirrors are available through rsync.
        
        
        receiving file list ... done
        
        sent 16 bytes  received 55 bytes  15.78 bytes/sec
        total size is 85712384  speedup is 1207216.68
        DEBUG: system: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
        
        Willkommen auf dem RSYNC-server auf ftp.fau.de.
        Nicht all unsere Mirror sind per rsync verfuegbar.
        
        Welcome to the RSYNC daemon on ftp.fau.de.
        Not all of our mirrors are available through rsync.
        
        
        receiving file list ... done
        
        sent 16 bytes  received 62 bytes  31.20 bytes/sec
        total size is 512  speedup is 6.56
        DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
        DEBUG: system: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base.tar
        MacPorts base version 2.6.2 installed,
        DEBUG: Rebuilding and reinstalling MacPorts if needed
        MacPorts base version 2.6.2 downloaded.
        --->  Updating the ports tree
        Synchronizing local ports tree from rsync://aarnet.au.rsync.macports.org/pub/macports/ports/
        DEBUG: system: /usr/bin/rsync -rtzvl --delete-after  '--exclude=/PortIndex*' rsync://aarnet.au.rsync.macports.org/pub/macports/ports/ /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
        
        Welcome to mirror.aarnet.edu.au - AARNet's mirror service
        --------------------------------------------------------------------
        
        Content is available via:
                rsync://mirror.aarnet.edu.au/
                http://mirror.aarnet.edu.au/
        
        Please read the FAQ at:
        https://support.aarnet.edu.au/hc/en-us/categories/202837867-Mirror
        
        --------------------------------------------------------------------
        
        Feedback and queries are welcome to mirror@aarnet.edu.au
        
        
        receiving file list ... done
        ./
        graphics/vtk/
        graphics/vtk/Portfile
        perl/p5-net-ident/
        perl/p5-net-ident/Portfile
        python/py-argh/
        python/py-argh/Portfile
        python/py-photutils/
        python/py-photutils/Portfile
        x11/blackbox/
        x11/blackbox/Portfile
        
        sent 299 bytes  received 782280 bytes  20868.77 bytes/sec
        total size is 47949331  speedup is 61.27
        DEBUG: system: chmod -R a+r /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
        DEBUG: system: /opt/local/bin/portindex /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
        Creating port index in /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
        Adding port devel/libgee
        Adding port graphics/vtk
        Adding port ocaml/ocaml-cppo
        Adding subport ocaml-cppo_ocamlbuild
        Adding port ocaml/ocaml-ppx_tools_versioned
        Adding port perl/p5-net-ident
        Adding subport p5.26-net-ident
        Adding subport p5.28-net-ident
        Adding subport p5.30-net-ident
        Adding port python/py-argh
        Adding subport py27-argh
        Adding subport py35-argh
        Adding subport py36-argh
        Adding subport py37-argh
        Adding port python/py-backports-ssl_match_hostname
        Adding subport py27-backports-ssl_match_hostname
        Adding port python/py-photutils
        Adding subport py36-photutils
        Adding subport py37-photutils
        Adding subport py27-photutils
        Adding subport py34-photutils
        Adding subport py35-photutils
        Adding port python/py-prometheus_client
        Adding subport py27-prometheus_client
        Adding subport py35-prometheus_client
        Adding subport py36-prometheus_client
        Adding subport py37-prometheus_client
        Adding subport py38-prometheus_client
        Adding port science/gr-osmosdr
        Adding subport gr-osmosdr-38
        Adding port x11/blackbox
        
        Total number of ports parsed:   31 
        Ports successfully parsed:  31 
        Ports failed:           0 
        Up-to-date ports skipped:   22753
        
        --->  MacPorts base is already the latest version
        DEBUG: Setting MacPorts sources ownership to root
        
        The ports tree has been updated. To upgrade your installed ports, you should run
          port upgrade outdated

Posted by swathin2 on Thu, 09 Jan 2020 07:11:03 -0800