Skip to content

Instantly share code, notes, and snippets.

@bfontaine
Last active October 25, 2020 20:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfontaine/0dd7f786e274c7139421 to your computer and use it in GitHub Desktop.
Save bfontaine/0dd7f786e274c7139421 to your computer and use it in GitHub Desktop.
Install Gephi on OS X
  1. Install Homebrew:

     ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Download Java 6 on this page and install it

  3. Install Gephi:

     brew cask install gephi
    
  4. Patch Gephi:

     cd ~/Applications/Gephi.app && \
     curl -sL https://gist.githubusercontent.com/bfontaine/0dd7f786e274c7139421/raw/gephi-osx-java6.patch | patch -p1
    
  5. Done.

diff --git a/Contents/Resources/gephi/platform/lib/nbexec b/Contents/Resources/gephi/platform/lib/nbexec
index abe6c93..c4d6f14 100644
--- a/Contents/Resources/gephi/platform/lib/nbexec
+++ b/Contents/Resources/gephi/platform/lib/nbexec
@@ -153,7 +153,7 @@ if [ -z "$jdkhome" ] ; then
Darwin*)
# read Java Preferences
if [ -x "/usr/libexec/java_home" ]; then
- jdkhome=`/usr/libexec/java_home`
+ jdkhome=`/usr/libexec/java_home -v 1.6\*`
# JDK1.7
elif [ -f "/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java" ] ; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment