Skip to content

Instantly share code, notes, and snippets.

@surjikal
Last active July 23, 2018 19:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save surjikal/fd888a636da9708425d3 to your computer and use it in GitHub Desktop.
Save surjikal/fd888a636da9708425d3 to your computer and use it in GitHub Desktop.
Presto Installation Instructions for OSX
  1. Install JDK 1.8

  2. See if JAVA_HOME ENV variable is set to 1.8. If not, add this line in your ~/.bashrc:

    export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
    

    And apply the changes to your session:

    source ~/.bashrc
    
  3. Install mvn:

    brew update
    brew install mvn
    brew upgrade mvn
    
  4. Pull the prestodb sources:

    git clone https://github.com/facebook/presto.git
    cd presto
    
  5. Build the thing (took ~23 minutes for me):

    mvn clean install
    
@claudiouzelac
Copy link

It is actually brew install maven for me fwiw.

@yamyamyuo
Copy link

it should be brew install maven, after it is installed, we use mvn clean xxx

@johndpope
Copy link

johndpope commented Aug 6, 2017

you might like zsh instead of standard bash shell / also highly recommend iTerm2
https://github.com/robbyrussell/oh-my-zsh +
https://code.visualstudio.com/
code ~/.zshrc to add java home line

@pjogi
Copy link

pjogi commented Jul 23, 2018

Or you can download the tar file from here http://maven.apache.org/download.cgi.

untar, add path to the profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment