There are many ways to install or upgrade Fink.For new users, the quick start instructions below are recommended.Otherwise, check out the overview and theupgrade matrix.
- Install Xcode Command Line Tools Catalina Free
- Install Xcode Command Line Tools Catalina 10
- Install Xcode Command Line Tools Catalina 2019
- Install Xcode Command Line Tools Catalina
Quick Start
New to Fink? These quick start instructions are here to get you up to speedwith the binary release.
Describe the Bug Due to changes in the output of softwareupdate —list, Xcode Command Line Tools are not being installed for Catalina. Error Message - execute. OS: MacOS Catalina 10.15.6 I was able to install without any issue. So you should be able to install xcode command line tools. Try installing from app store or from developer.apple.com If you haven't already try this article please.
Homebrew is a package managing tool. It’s more popular on Linux but is also used extensively on macOS. In fact, for apps that install as packages, Homebrew is the easiest way to remove them. Here’s how you can install Homebrew on macOS Catalina. In order to install Homebrew on macOS Catalina, you must have Xcode installed. With Xcode 4 and later, users need to accept the Xcode EULA by either launching Xcode or running: xcodebuild -license; Apple's Command Line Developer Tools, which can be installed on recent OS versions by running this command in the Terminal: xcode-select -install. Xcode-select: error: command line tools are already installed, use 'Software Update' to install updates If you receive this error, you are good to continue! If you have recently updated your OS to Catalina 10.15.2 or are on BigSur, you may encounter some errors related to XCode while installing Ruby and/or running Node.
10.6 to 10.15 users: There is not currently a binary installer, and you willneed to follow the source install instructions instead.
10.5 users: Download the installer disk image:
Fink 0.9.0 Binary Installer (PowerPC) - 13635047 bytes
Fink 0.9.0 Binary Installer (Intel) - 14431371 bytes
10.4 users - use Fink0.8.1 (PowerPC) or Fink0.8.1 (Intel))Double-click 'Fink-0.9.0-XYZ-Installer.dmg' (where XYZ is either PowerPC or Intel) to mount the disk image,then double-click the 'Fink 0.9.0 XYZ Installer.pkg' packageinside. Follow the instructions on screen.
At the end of the installation, the pathsetup utility will be launched.You will be asked for permission before your shell's configuration filesare edited. When the utility has finished, you are set to go!
If anything goes wrong during this process, you can try again by launching the pathsetup application which appears on the installer disk, or byrunning (from the command line in a Terminal.app window)
(This step should also be repeated by any other users on your system: each user must run pathsetup in his or her own account.)
If pathsetup generates error messages, consult the documentation, particularly section2.3 'Setting Up Your Environment' of the User's Guide.
Open a new Terminal.app window and run the following: '
fink scanpackages; fink index
', or use the included Fink Commander GUI application (which must be placed in a real folder on your system, not run from the disk image) and run the following commands from its menu: Source->scanpackages followed by Source->Utilities->index.Once those two commands are finished you should update the
fink
package, in case there have been significant changes since the last point release. After you do this you can install other packages. There are several ways to do this:Use the included Fink Commander to select and install packages. Fink Commander provides an easy to use GUI for Fink. This is the recommended method for new users, or users who are not comfortable with the command line. Fink Commander has Binary and Source menus. You should install from binaries if you don't have the Developer Tools installed, or don't want to build packages yourself.
The Fink Commander sequence to update
fink
from binaries is as follows:- Binary->Update descriptions
- Select the
fink
package. - Binary->Install
The recommended Fink Commander sequence to update
fink
from source is as follows:- Source->Selfupdate
- Tools->Interact with Fink...
- Make sure 'Accept default response' is selected, and click 'Submit'.
fink
and other base packages will be built and run automatically
Now that you've updated
fink
, you can install other packages.- To install from binaries, select the package, and use Binary->Install.
- To install from source, select the package, and use Source->Install
Use apt-get. Apt-get will fetch and install binary packages for you, saving compiling time. You should either use this method or the Fink Commander binary method (above) if you don't have the Developer Tools installed.
To update
fink
open a Terminal.app window and typesudo apt-get update ; sudo apt-get install fink
Once you've updated
fink
, you can install other packages, using the same syntax, e.gsudo apt-get install gimp
to install the Gimp. Note, however, that not all fink packages are in binary form.Install from source (requires the Xcode Tools [Developer Tools on 10.2] to be installed).To update
fink
runfink selfupdate
. When prompted, select option (1), 'rsync'. This will automatically update thefink
package.Once
fink
is updated, you can use 'fink install
' to fetch and compile from source code. For example, to install the Gimp, runfink install gimp
.
Additional Things to Install
Xcode Tools/Developer Tools
To build packages from source, which Fink currently requires on supported OS versions, you will need to install the Developer Tools.
Go to the Apple Developer site to download a newer version (and any updates) after free registration.
10.15 | The Command Line Tools for Catalina, optionally Xcode 11.3.1 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.14 | The Command Line Tools for Mojave, optionally Xcode 11.3.1 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.13 | The Command Line Tools for High Sierra, optionally Xcode 10.1 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.12 | The Command Line Tools for Sierra, optionally Xcode 9.2 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.11 | The Command Line Tools for El Capitan, optionally Xcode 8.2.1 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.10 | The Command Line Tools for Yosemite, optionally Xcode 7.2.1 The Command Line Tools can be downloaded via the xcode-select --install command or in a separate package. |
10.9 | The Command Line Tools for Mavericks - Late October 2013; optionally Xcode 6.2 The Command Line Tools can be downloaded via the xcode-select --install command, Xcode's Preferences or in a separate package. |
10.8 | The Command Line Tools for Mountain Lion - October 2013 ; optionally Xcode 5.1.1 The Command Line Tools can be downloaded via Xcode's Preferences or in a separate package. |
10.7 | The Command Line Tools for Lion - April 2013; optionally Xcode 4.6.3 The Command Line Tools can be downloaded via Xcode's Preferences or in a separate package. |
10.6 | Xcode 3.2.6 (Xcode 4.2 is also available for some paid Apple developer accounts) |
10.5 | Xcode 3.1.4 |
10.4 | Xcode 2.5 |
X11
Most of the applications on Fink that have graphical user interfaces (GUIs) require some flavor of X11 (since most were originally developed on platforms that only had that as a GUI option).
Apple provides its own X11 distribution. This isthe easiest option with which to get started. They have elected to split it into two parts:
- The X11User package contains everything you need just to run Apple's X11. It is available on your OS install media for 10.4 as an optional install, and is installed by default on 10.5 and later.
- TheX11SDKpackage contains the development headers. You need this if you want to build anything from source that uses X11. This package is available as part of the Xcode Tools, and installed by default with Xcode 2.x and later.
- The 2006 X11 Update for 10.4 (available via Software Update or manual download) is supported.
- All official updates for X11 on 10.5 - 10.7 are supported.
- The Xquartz X11 distribution frommacosforge.org is only supported on 10.5 (Xquartz version 2.6.3 and earlier), where it replaces the official X11, and 10.8 and 10.9, where it is the official X11. This does not have separate runtime and header packages.
Once you've installed X11 Fink should automatically register it. If you're having problems check out the FAQ entry on X11 installation problems
Further information
For more information, please refer to the Frequently Asked Questions and the documentation section.If your questions aren't answered by those documents, check out the help page.
To be informed of new releases, subscribe to the fink-announce mailinglist.
The source code for the packages in the installer disk image can bedownloaded from this site,here.
Quickstart
- Install Xcode and the Xcode Command Line Tools
- Agree to Xcode license in Terminal:
sudo xcodebuild -license
- Install MacPorts for your version of the Mac operating system:
Installing MacPorts
MacPorts version 2.7.1 is available in various formats for download and installation (note, if you are upgrading to a new major release of macOS, see the migration info page):
- “pkg” installers for Big Sur, Catalina, and Mojave, for use with the macOS Installer. This is the simplest installation procedure that most users should follow after meeting the requirements listed below. Installers for legacy platforms High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard and Tiger are also available.
- In source form as either a tar.bz2 package or a tar.gz one for manual compilation, if you intend to customize your installation in any way.
- Git clone of the unpackaged sources, if you wish to follow MacPorts development.
- The selfupdate target of the port(1) command, for users who already have MacPorts installed and wish to upgrade to a newer release.
Checksums for our packaged downloads are contained in the corresponding checksums file.
The public key to verify the detached GPG signatures can be found under the attachments section on jmr's wiki page. (Direct Link).
Install Xcode Command Line Tools Catalina Free
Please note that in order to install and run MacPorts on macOS, your system must have installations of the following components:
Apple's Xcode Developer Tools (version 12.2 or later for Big Sur, 11.3 or later for Catalina, 10.0 or later for Mojave, 9.0 or later for High Sierra, 8.0 or later for Sierra, 7.0 or later for El Capitan, 6.1 or later for Yosemite, 5.0.1 or later for Mavericks, 4.4 or later for Mountain Lion, 4.1 or later for Lion, 3.2 or later for Snow Leopard, or 3.1 or later for Leopard), found at the Apple Developer site, on your Mac operating system installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your OS is highly recommended, except for Snow Leopard where the last free version, 3.2.6, is recommended.
With Xcode 4 and later, users need to accept the Xcode EULA by either launching Xcode or running:
Apple's Command Line Developer Tools, which can be installed on recent OS versions by running this command in the Terminal:
Older versions are found at the Apple Developer site, or they can be installed from within Xcode back to version 4. Users of Xcode 3 or earlier can install them by ensuring that the appropriate option(s) are selected at the time of Xcode's install ('UNIX Development', 'System Tools', 'Command Line Tools', or 'Command Line Support').
- (Optional) The X11 windowing environment, for ports that depend on the functionality it provides to run. You have multiple choices for an X11 server:
- Install the xorg-server port from MacPorts (recommended).
- The XQuartz Project provides a complete X11 release for macOS including server and client libraries and applications.
- Apple's X11.app is provided by the “X11 User” package on older OS versions. It is always installed on Lion, and is an optional installation on your system CDs/DVD with previous OS versions.
macOS Package (.pkg) Installer
The easiest way to install MacPorts on a Mac is by downloading the pkg or dmg for Big Sur, Catalina, Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard or Tiger and running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.
This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage. If needed your shell configuration files will be adapted by the installer to include the necessary settings to run MacPorts and the programs it installs, but you may need to open a new shell for these changes to take effect.
The MacPorts “selfupdate” command will also be run for you by the installer to ensure you have our latest available release and the latest revisions to the “Portfiles” that contain the instructions employed in the building and installation of ports. After installation is done, it is recommended that you run this step manually on a regular basis to to keep your MacPorts system always current:
At this point you should be ready to enjoy MacPorts!
Type “man port” at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.
Source Installation
If on the other hand you decide to install MacPorts from source, there are still a couple of things you will need to do after downloading the tarball before you can start installing ports, namely compiling and installing MacPorts itself:
- “cd” into the directory where you downloaded the package and run “tar xjvf MacPorts-2.7.1.tar.bz2” or “tar xzvf MacPorts-2.7.1.tar.gz”, depending on whether you downloaded the bz2 tarball or the gz one, respectively.
- Build and install the recently unpacked sources:
- cd MacPorts-2.7.1
- ./configure && make && sudo make install
- cd ../
- rm -rf MacPorts-2.7.1*
These steps need to be perfomed from an administrator account, for which “sudo” will ask the password upon installation. This procedure will install a pristine MacPorts system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-2.7.1 source directory and corresponding tarball.
To customize your installation you should read the output of “./configure --help | more” and pass the appropriate options for the settings you wish to tweak to the configuration script in the steps detailed above.
You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation prefix (the value passed to configure's --prefix flag, defaulting to /opt/local):
- Add ${prefix}/bin and ${prefix}/sbin to the start of your PATH environment variable so that MacPorts-installed programs take precedence over system-provided programs of the same name.
- If a standard MANPATH environment variable already exists (that is, one that doesn't contain any empty components), add the ${prefix}/share/man path to it so that MacPorts-installed man pages are found by your shell.
- For Tiger and earlier only, add an appropriate X11 DISPLAY environment variable to run X11-dependent programs, as Leopard takes care of this requirement on its own.
Lastly, you need to synchronize your installation with the MacPorts rsync server:
Install Xcode Command Line Tools Catalina 10
Upon completion MacPorts will be ready to install ports!
It is recommended to run the above command on a regular basis to keep your installation current. Type “man port” at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.
Git Sources
If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions, you may acquire the MacPorts sources through git. See the Guide section on installing from git.
Purpose-specific branches are also available at the https://github.com/macports/macports-base/branches url.
Alternatively, if you'd simply like to view the git repository without checking it out, you can do so via the GitHub web interface.
Selfupdate
If you already have MacPorts installed and have no restrictions to use the rsync networking protocol (tcp port 873 by default), the easiest way to upgrade to our latest available release, 2.7.1, is by using the selfupdate target of the port(1) command. This will both update your ports tree (by performing a sync operation) and rebuild your current installation if it's outdated, preserving your customizations, if any.
Other Platforms
Running on platforms other than macOS is not the main focus of The MacPorts Project, so remaining cross-platform is not an actively-pursued development goal. Nevertheless, it is not an actively-discouraged goal either and as a result some experimental support does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.
The full list of requirements to run MacPorts on these other platforms is as follows (we assume you have the basics such as GCC and X11):
- Tcl (8.4 or 8.5), with threads.
- mtree for directory hierarchy.
- rsync for syncing the ports.
- cURL for downloading distfiles.
- SQLite for the port registry.
- GNUstep (Base), for Foundation (optional, can be disabled via configure args).
- OpenSSL for signature verification, and optionally for checksums. libmd may be used instead for checksums.
Install Xcode Command Line Tools Catalina 2019
Normally you must install from source or from an git checkout to run MacPorts on any of these platforms.
Install Xcode Command Line Tools Catalina
Help
Help on a wide variety of topics is also available in the project Guide and through our Trac portal should you run into any problems installing and/or using MacPorts. Of particular relevance are the installation & usage sections of the former and the FAQ section of the Wiki, where we keep track of questions frequently fielded on our mailing lists.
If any of these resources do not answer your questions or if you need any kind of extended support, there are many ways to contact us!