Closed kkacstudent closed 5 months ago
@kkacstudent Can you try using Java 8 and retry build - https://github.com/prestodb/presto?tab=readme-ov-file#requirements
@agrawalreetika with java 8 too same problem faced.
[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
No idea why spotbugs failed for you, but try disabling it in pom.xml
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?
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.
seems like the issue was with java 17. retried with java 8 it seems to be working now.
Getting errors while building presto https://pastebin.com/Ziqh1Zvi. Any idea how to resolve these?
Looks like you are trying to start PrestoServer. Are you setting up the IDE with these steps?
Your Environment
Expected Behavior
build should succeed
Current Behavior
build fails
Possible Solution
Steps to Reproduce
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"