Compile problems

Hi, I get several issues when I try to compile my own copy of Metabase. I think the instructions here are insufficient:

Is there a more detailed guide on how to set up Ubuntu 20.04 to compile Metabase?

Error1: I fixed it but docs specify latest
openjdk version “11.0.9.1” 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
Step failed: The Metabase build script currently requires Java 8 to run. Please change your Java version and try again.

Error3 - cannot resolve it:
:cause “error=2, No such file or directory”}
Step “$ “yarn”” failed with error “Cannot run program “yarn” (in directory “/home/itso/metabase2/metabase”): error=2, No such file or directory”

Thanks in advance

Hi @crunchtoinfo
Before you build, you need to install all the required software:
https://www.metabase.com/docs/latest/developers-guide.html#install-prerequisites

Post the output of the following:

# OS and version
 sed -nE 's/^PRETTY_NAME="([^"]+)"$/\1/p' /etc/os-release
# Git branch and commit
 echo `git status | head -1 && git log -1 --format="commit %H"`
# Java version and architecture
 java -version
# Java variable configuration
 echo $JAVA_HOME
# Java path configuration
 echo $PATH | grep --color=never -oe "/usr/lib/jvm/[^:]*"
# Lein version
 lein --version
# NodeJS version
 nodejs --version
# Yarn version
 yarn --version
1 Like

Hi @flamber . Thanks for your instructions. I realized that v0.38preview actually has the new pivot tables that I wanted to test, so am running it from ready Docker image.