prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.06k stars 5.38k forks source link

Not able to build presto project #22988

Closed kkacstudent closed 5 months ago

kkacstudent commented 5 months ago

Your Environment

Expected Behavior

build should succeed

Current Behavior

build fails

Possible Solution

Steps to Reproduce

  1. git clone https://github.com/prestodb/presto.git
  2. cd presto
  3. ./mvnw clean install -DskipTests

Screenshots (if appropriate)

Context

java -version java version "17.0.11" 2024-04-16 LTS Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207) Java HotSpot(TM) 64-Bit Server VM (build 17.0.11+7-LTS-207, mixed mode, sharing)

16 GB Memory / 4 AMD vCPUs / 200 GB Disk / - Ubuntu 24.04 (LTS) x64

mvn -version Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) Maven home: /home/ubuntu1/.sdkman/candidates/maven/current Java version: 17.0.11, vendor: Oracle Corporation, runtime: /home/ubuntu1/.sdkman/candidates/java/17.0.11-oracle Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-35-generic", arch: "amd64", family: "unix"

agrawalreetika commented 5 months ago

@kkacstudent Can you try using Java 8 and retry build - https://github.com/prestodb/presto?tab=readme-ov-file#requirements

kkacstudent commented 5 months ago

@agrawalreetika with java 8 too same problem faced.

elharo commented 5 months ago
[INFO] --- spotbugs-maven-plugin:3.1.10:spotbugs (spotbugs) @ presto-root ---
[WARNING] Error injecting: org.codehaus.mojo.spotbugs.SpotBugsMojo
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) Error injecting constructor, java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
  at org.codehaus.mojo.spotbugs.SpotBugsMojo.<init>(Unknown Source)
  while locating org.codehaus.mojo.spotbugs.SpotBugsMojo

1 error
elharo commented 5 months ago

No idea why spotbugs failed for you, but try disabling it in pom.xml

kkacstudent commented 5 months ago

Seems like some dependencies were missing like python-venv, make etc. After running below command, seems to be working.

sudo apt install build-essential python3.12-venv

Would it be helpful to add these to the README.md build requirements?

elharo commented 5 months ago

I'm surprised those are required at all. But feel free to send a PR to update the instructions. If they're incomplete, that is a bug.

kkacstudent commented 5 months ago

seems like the issue was with java 17. retried with java 8 it seems to be working now.

kkacstudent commented 4 months ago

Getting errors while building presto https://pastebin.com/Ziqh1Zvi. Any idea how to resolve these?

ClarenceThreepwood commented 4 months ago

Looks like you are trying to start PrestoServer. Are you setting up the IDE with these steps?