Last active
August 13, 2023 23:27
-
-
Save bsnyder/f8ec195a891c22c7b56d to your computer and use it in GitHub Desktop.
How to upgrade bash using MacPorts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo port selfupdate | |
Password: | |
---> Updating MacPorts base sources using rsync | |
MacPorts base version 2.3.1 installed, | |
MacPorts base version 2.3.1 downloaded. | |
---> Updating the ports tree | |
---> MacPorts base is already the latest version | |
The ports tree has been updated. To upgrade your installed ports, you should run | |
port upgrade outdated | |
$ sudo port outdated | |
The following installed ports are outdated: | |
apr-util 1.5.3_0 < 1.5.4_0 | |
bash 4.3.24_0 < 4.3.28_0 | |
git 2.1.0_0 < 2.1.1_0 | |
gnupg 1.4.16_0 < 1.4.18_0 | |
icu 53.1_0 < 53.1_1 | |
nmap 6.40_0 < 6.47_0 | |
p5.16-io-socket-ssl 1.997.0_1 < 1.998.0_0 | |
xz 5.0.5_0 < 5.0.7_0 | |
$ sudo port upgrade bash | |
---> Computing dependencies for bash | |
---> Fetching archive for bash | |
---> Attempting to fetch bash-4.3.28_0.darwin_13.x86_64.tbz2 from http://packages.macports.org/bash | |
---> Attempting to fetch bash-4.3.28_0.darwin_13.x86_64.tbz2.rmd160 from http://packages.macports.org/bash | |
---> Installing bash @4.3.28_0 | |
---> Cleaning bash | |
---> Computing dependencies for bash | |
---> Deactivating bash @4.3.24_0 | |
---> Cleaning bash | |
---> Activating bash @4.3.28_0 | |
---> Cleaning bash | |
---> Updating database of binaries | |
---> Scanning binaries for linking errors | |
---> No broken files found. |
I no longer use MacPorts because of so many unexplainable and/or unresolvable errors. Instead, I now use Homebrew: https://brew.sh/
Brew is a disgrace, takes an hour to install even the most trivial things!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run "sudo port upgrade bash", I get:
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/markupsafe/_speedups.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/markupsafe/_speedups.cpython-39-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/markupsafe/_speedups.cpython-37m-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/markupsafe/_speedups.cpython-38-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cairo/_cairo.cpython-38-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gi/_gi.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gi/_gi_cairo.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gi/_gi.cpython-37m-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gi/_gi_cairo.cpython-37m-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gi/_gi.cpython-38-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gi/_gi_cairo.cpython-38-darwin.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/simplejson/_speedups.so: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.4/Python: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS/Python: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4: Error opening or reading file
Warning: Error parsing file /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4m: Error opening or reading file
( and many more)
Output of "ls /opt/local/Library/Frameworks/Python.framework/Versions" is
2.7 3.10 3.6 3.7 3.8 3.9 Current
How to fix?