ERROR: Could not find 'wxe_driver.so'

You missed the rest of the line…

It is one full command, like this

$ sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk

I just made some breaklines for readability.

BTW You might find preinstall requirement on this page.