Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.43 KB

Install-Windows.md

File metadata and controls

40 lines (32 loc) · 1.43 KB

Building Keytool on Windows

This document describes building keytool with MSYS2 and its usage on Windows 10 64-bit.

Installing MSYS2 and Packages

  1. Install MSYS2 by downloading the installer and following the installation guide in www.msys2.org.
  2. Run MSYS2 and make sure the package database is updated:
# pacman -Syu
# pacman -Su
  1. Next, install the compiler and the required packages:
# pacman --noconfirm -S mingw-w64-x86_64-clang patch git make mingw-w64-x86_64-libc++ autoconf automake1.8 libtool automake python

Compiling Keytool

  1. Clone keytool-cli, e.g. into C:\msys64\home
  2. Open MSYS2 MinGW 64-bit application and cd into C:\msys64\home\keytool-cli
  3. Run the build script with:
# export CC="clang" && export CXX="clang++" && ./build.sh
  1. Install:
# make install

You can now freely use keytool inside MSYS2 MinGW 64-bit console.

Running Keytool as a Native Windows App

To be able to use keytool as a native app on Windows outside msys2/mingw64, you have to expose four files to the system: keytool.exe, libc++.dll, libunwind.dll and libssp-0.dll, which all reside in C:\msys64\mingw64\bin.

To do so, add that folder to the Windows PATH by the following command in Windows Cmd:

> set PATH=%PATH%;C:\msys64\mingw64\bin

That's it. Now you can use keytool as a native Windows app in the Windows command-line tool.