X-PACK Installation issues

Logstash version - 5.1.1

I have followed that link while installing x-pack.