marc2dc command not found

In this troubleshooting guide we learn how to fix marc2dc command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

marc2dc: command not found

or when using sudo you get the following error message

sudo: marc2dc: command not found

Solutions to marc2dc: command not found

How To Fix marc2dc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu marc2dc is provided by libmarc-crosswalk-dublincore-perl package.

libmarc-crosswalk-dublincore-perl is:

MARC::Crosswalk::DublinCore provides an implentation of the LOC’s spec on how to convert metadata between MARC and Dublin Core format. The spec for converting MARC to Dublin Core is available at: http://www.loc.gov/marc/marc2dc.html, and from DC to MARC: http://www.loc.gov/marc/dccross.html.

NB: The conversion cannot be done in a round-trip manner. i.e. Doing a conversion from MARC to DC, then trying to go back to MARC will not yield the original record.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libmarc-crosswalk-dublincore-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libmarc-crosswalk-dublincore-perl.

sudo apt -y install libmarc-crosswalk-dublincore-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libmarc-crosswalk-dublincore-perl

Summary

In this tutorial we learn how to fix marc2dc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.