Tuesday, May 30, 2023

A Few Words about MacPorts

 The first of three computers to upgrade to MacOS Ventura, so making all the old tools work will be done thrice.  I document the first try.

The computing environment I am accustomed to relies on GCC Fortran and the text editor nedit.  Nedit is the "Nirvana editor" from way way back, but I am used to it in Xwindow environments.  Nedit has always been an open-source tool that could be loaded with Fink, but Fink is no more.  The Nedit software has a website, but downloading this package led to failure, because it was not updated to the system directories of Ventura.  The software package aggregator MacPorts has nedit, and has been updated.  So that is where I went for it.

https://manjaro.site/install-macports-on-macos-ventura/

https://www.macports.org/

From documentation:

"This installer contains a Universal installer for macOS 13.0.x and requires the curl and OpenSSL libraries provided by macOS. To build ports locally, you will need to install the Xcode Command Line Tools by running "xcode-select --install" in your terminal. Also required for many GUI applications is the installation of Apple's Xcode development suite, available from the Mac App Store or from Apple's Developer site. It is also available as a separate installation on Mac OS X CDs and DVDs."

"The MacPorts installer copies MacPorts to the target directory /opt/local. If you wish to install to any path other than that, you must install MacPorts via its source code. See Installing MacPorts on the MacPorts webpage for instructions on installation alternatives."

"The main user interface to MacPorts is the port command and the various facilities it provides for installing ports. The first thing you should do after you install MacPorts is to make sure it is fully up to date by pulling the latest revisions to the Portfiles and any updated MacPorts base code from our rsync server, all accomplished simply by running the port selfupdate command as the Unix superuser:

sudo port selfupdate

Running this command on a regular basis is recommended -- it ensures your MacPorts installation is always up to date. Afterwards, you may search for ports to install:

port search <portname>

where <portname> is the name of the port you are searching for, or a partial name. To install a port you've chosen, you need to run the port install command as the Unix superuser:

sudo port install <portname>

where now <portname> maps to an exact port name in the ports tree, such as those returned by the port search commandPlease consult the port(1) man page for complete documentation for this command and the software installation process."

No comments:

 
Link