@cortez.connelly
To build Presto on Windows, follow these steps:
- Install Git: Download and install Git for Windows from https://git-scm.com/. During installation, make sure to choose the option to add Git to the PATH.
- Install JDK: Download and install the Java Development Kit (JDK) from https://www.oracle.com/java/technologies/javase-jdk11-downloads.html. Set the JAVA_HOME environment variable to point to the JDK installation directory.
- Install Apache Maven: Download and install Apache Maven from https://maven.apache.org/. Add the bin directory of the Maven installation to the PATH.
- Clone the Presto repository: Open a command prompt and run the following command to clone the Presto repository:
1
|
git clone https://github.com/prestodb/presto.git
|
- Change directory: Change into the presto directory using the following command:
- Build Presto: Run the following Maven command to build Presto:
1
|
mvn clean install -DskipTests
|
The build process may take some time, depending on your system's performance.
- Start Presto: Once the build is complete, you can start Presto by running the following command:
1
2
|
cd presto-<version>/presto-server
bin/launcher start
|
Presto should now be up and running on your Windows system. You can access the Presto web interface by navigating to http://localhost:8080 in a web browser.
These steps should help you get started with building Presto on Windows. If you encounter any issues, refer to the Presto documentation or community forums for further assistance.