MarcEdit Mac: Enabling Z39.50 Support

(Optional) Z39.50 Support — MarcEdit includes a Z39.50 Client that utilizes the Yaz (https://indexdata.com) library.  This must be installed on your system, and preferably using the Homebrew (https://brew.sh) package management tool.  Currently, all versions of MarcEdit are compiled against the .NET 5.0 core framework as a native 64-bit application. The software is currently compiled against the intel chipset to ensure broad support on all available MacOS devices.

MarcEdit is fully supported on systems using Apple’s new M1 (arm) chip through Apple’s Rosetta 2 software. For users, Apple has made the process nearly transparent when running an application compiled for the current/older intel cpus or the newer M1 chips. However, for users on systems with Apple’s M1 chips, the process of installing yaz for use with MarcEdit will be slightly different. Please review the documentation below and select the installation instructions that match your chipset. These instructions will change in the Fall of 2021 for systems running Apple’s M1 chips when Microsoft’s build tools will allow for the native targeting of these devices.

MacOS Intel System installation Instructions

  1. Install Homebrew: http://brew.sh/
  2. If Homebrew is already installed, run the update command:
    >>brew update
  3. Run the following install command
    >>brew install yaz

This installs yaz and it’s dependencies to /usr/local/Cellar/[library] and creates symlinks to the libraries at: /usr/local/lib. These symlinked files are the data files MarcEdit will use to resolve dependencies.

Apple Mx (M1, M2, etc.) Chip Systems

Because MarcEdit is compiled targeting Intel based systems, you need to install a version of homebrew that is installed to target x86_64 bit systems. To do this, we utilize Apples arch command. To install Yaz on MacOS systems utilizing Apple’s Mx chips:

  1. Before starting, we need to make sure the Rosetta 2 is installed and available to be utilized by the arch command. We can check the status of the software by running the following command from the terminal:
    >>softwareupdate –install-rosetta
  2. Once Rosetta 2 has been installed, run the following command from the terminal:
    >>arch -x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”
  3. Homebrew will now be installed at: /usr/local/bin/brew. You must make sure you use this version of the application when installing yaz. To install yaz, run the following command from the terminal:
    >>arch -x86_64 ./usr/local/bin/brew install yaz
    This will pull down the x86_64 (intel) version of the yaz libraries for your system and install the files to: /usr/local/Cellar/[library] and will create a symlink to these libraries at: /usr/local/lib.

Installing Yaz Libraries manually

If you prefer not to us Homebrew, you can install the Yaz Libraries manually. Do to this, follow the instructions on the Yaz repo site. When compiling, ensure that you are compiling files that target x86_64 based systems and that the libraries are installed to the: /usr/local/lib directory or that a symlink is created in that directory to the generated yaz libraries.