OpenMRS Installation requires the use of two ports, 3306 and 8080. Port 3306 is the default port for MySQL and 8080 is the default port for the Jetty server.
Both ports must be open and have no existing connections. Before going any further, make sure to kill all processes running on those ports with the following commands.
fuser -k 3306/tcp
fuser -k 8080/tcp
Before building and compiling OpenMRS make sure you have or install the following dependencies: