Everytime I ran perldoc, I got the following error message:
Then I checked the version of groff:
Obviously, it is way too old. So I need to install a more recent version of groff. One of easiest ways to installing groff (and many other missing software programs on Mac OS) is having a package manager, for example, homebrew, MacPorts and Fink. After trying MacPorts and Fink years ago, I realized that these two are a bit too complicated for me (though they seem to have more and newer versions of software). Hence, I am using homebrew as the package manager on my computer. If you haven’t tried it yet, I encourage you to give it a try! You can find installation details here. Below is how to install newer groff using homebrew:
Note that the official homebrew does not have a formulea (which contains directions on where to download the source and how to compile) for groff. So I need to “tap” to import other formula from other people’s repositories. In my case, you can find it here. So after seconds, I have the newest groff installed and now perldoc no longer complains about the the older groff!