keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.91k stars 1.23k forks source link

Keybase pgp select: command not found #22601

Open PrinceSerna opened 4 years ago

PrinceSerna commented 4 years ago

F9A38090-0351-40FC-8A0D-4A1E1003BBFE

Assisting employee with trying to add PGP key as proof after installation of Keybase and account creation. PGP key created prior. macOS Mojave (10.14.x)

In terminal: $ keybase pgp select
returns:

--bash: keybase: command not found
    $

Thoughts? Thanks in advance.

fleish commented 4 years ago

This happens when the path to the keybase binary isn't setup properly. You can fix it by doing this:

sudo bash -c "echo '/Applications/Keybase.app/Contents/SharedSupport/bin' > /etc/paths.d/Keybase"

And then start a new terminal window so the shell re-reads the paths it should search.

I suspect this is a "bug" during the installation procedure. Perhaps if the user doesn't successfully provide their credentials for the "sudo" prompt that I assume is at least trying to do this.

PrinceSerna commented 4 years ago

Will follow up with end-user. Thank you kindly. 🥰