marc2xml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
marc2xml: command not found
or when using sudo you get the following error message
sudo: marc2xml: command not found
Solutions to marc2xml: command not found
How To Fix marc2xml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu marc2xml is provided by libmarc-xml-perl package.
libmarc-xml-perl is:
MARC::XML is an extension to the Marc::Record distribution for working with MARC21 data that is encoded as XML. The XML encoding used is the MARC21slim schema supplied by the Library of Congress. Installing MARC-XML automatically adds support for the additional file format for use with MARC::Batch.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmarc-xml-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmarc-xml-perl.
sudo apt -y install libmarc-xml-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmarc-xml-perl
Summary
In this tutorial we learn how to fix marc2xml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.