Skip to content
Wikinaut edited this page May 12, 2018 · 5 revisions

debian < 10

  • apt install build-essential git libssl-dev libpcre-dev
  • make

arch & debian 10

Arch and Debian 10 currently have two versions of OpenSSL: 1.0 and 1.1. The compilation will fail as vanitygen expects version 1.0 but 1.1 will be picked up by default.

It is necessary to pass arguments to the compiler and linker such that OpenSSL-1.0 is used.

  • Add -I/usr/include/openssl-1.0 to CFLAGS
  • Add -L/usr/lib/openssl-1.0 to LIBS

debian 10:

Temporarily install OpenSSL 1.0 headers:

sudo apt-get install libssl1.0-dev -y

and change in Makefile the first two lines to

LIBS=-L/usr/lib/openssl-1.0 -lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall -I/usr/include/openssl-1.0

Run make. After compilation, it may be a good practice to re-install the correct openssl:

sudo apt-get install libssl-dev -y
Clone this wiki locally