keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 37 forks source link

keybase-installer on Windows doesn't run as described #1238

Open paulmorriss opened 9 years ago

paulmorriss commented 9 years ago

I'm using Windows 7. In successfully installed the prerequisites and then used npm to install keybase-installer. The instructions on this page: https://keybase.io/docs/command_line/installation then say to just run keybase-installer.

However that's not found on the windows path. I tried creating a new command window (both admin and non-admin) to pick up any modifications to the path, but still no joy. In the end I found that I had to go to C:\ProgramData\chocolatey\lib\nodejs.commandline.0.10.33\tools and then type keybase-installer to get it to install.

I already had chocolatey installed, v0.9.8.25. My path already contained C:\ProgramData\chocolatey\bin.

Here's the output from keybase version keybase (keybase.io CLI) v0.7.3

akshatpradhan commented 9 years ago

I don't know Windows but I'm going to guess that environment variables aren't set. http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/

paulmorriss commented 9 years ago

Adding C:\ProgramData\chocolatey\lib\nodejs.commandline.0.10.33\tools to the path would work. However if keybase-installer copied keybase-installer (and/or keybase-installer.cmd) to c:\programdata\chocolatey\bin like keybase does then that would work too.

derfshaya commented 9 years ago

I'm using Windows 7 and tried to install by running keybase-installer. I also have gpg2 and gpg available through PATH, verified by running the two commands from random directories.

However, I get the following error output from keybase-installer:

error: The commands `gpg2` and `gpg` weren't found; you need to install it. See this page for more info:
error:     https://keybase.io/docs/command_line/prerequisites
guerda commented 9 years ago

I tried the installation procedure like described on the website, but it failed, as Paul described. For me, the problem was that the cmd.exe did not see the path changes made by the node.js installer. After changing it by myself (added just a dummy entry) under my user account, I started cmd.exe again and then I was able to enter keybase-installer. So a reboot/logoff seems necessary after node.js installation.

BlessYAHU commented 9 years ago

Excellent guerda. This should be a note in the installation instructions!

zQueal commented 9 years ago

There could be a number of issues here. Most likely your command window simply doesn't recognize the path.

Check that the gpg2 command works in your command window--if it does, simply specify it when you run keybase-installer.

keybase-installer --gpg gpg2

Once keybase is installed you can run:

keybase config gpg gpg2

and you should be all set.

guerda commented 9 years ago

Both commands (gpg and gpg2) worked on the Windows machines I tried it with.

derfshaya commented 9 years ago

Here are some snapshots of my console:

D:\MyApps\Workspace\AndroidProject>gpg2
gpg: Go ahead and type your message ...
^C

The directory above (D:\MyApps\Workspace\AndroidProject) does not contain gpg2 at all. The above shows that I have the gpg2 directory in my PATH.

D:\MyApps\Workspace\AndroidProject>keybase-installer --gpg gpg2
error: The GPG command you specified `gpg2` wasn't found; see this page for help installing `gpg`:
error:     https://keybase.io/docs/command_line/prerequisites

I followed the command provided by zQueal and the above is what I got.

D:\MyApps\Workspace\AndroidProject>gpg
gpg: Go ahead and type your message ...
^C

I have gpg in PATH as well.