Issues Compiling GnuPG: ./configure Command Not Found on macOS

macosterminal

I wanted to install GnuPG by compiling the binaries but I'm stuck on the second dependancy, libgpg-error. I'll check the obvious tomorrow and shasum the tarball, re-download it (etc) but I'm hoping I can find a little insight into what's going on here. I'm on macOS Catalina.

Here's what I'm trying to do in Terminal (as is documented in the README). Briefly, configure, make, install:

sudo ./configure
sudo make
sudo make install
sudo make clean

However, the first command sudo ./configure produces an error:

sudo: ./configure: command not found

So,

  1. I'm wondering if anybody has experienced the same issue and why? Is this common?
  2. Should I expect more issues compiling GnuPG from the binaries?
  3. Any suggestions on alternative PGP command line tools?

I am not interested in the GPGTools/PGP Suite for macOS. I don't want all the bels and whistles. I'm just looking for a command line PGP utility.

Edit: Revised question with Terminal input and output.

Best Answer

The issue command not found occurs because the script ./configure is not executable. I fixed it by setting the executable bit for the user with chmod.

While in the root directory, type the command in Terminal:

chmod u+x configure