Tag Archives: Ubuntu

Troubleshooting: Installing Gephi on Ubuntu

After spending the better part of two days wrestling with Gephi to get it installed on Ubuntu, I wanted to share the solution I found.

# Edit the sources file and add this to end:
# deb http://ppa.launchpad.net/rockclimb/gephi-daily/ubuntu precise main
# Then, in Terminal, run:
sudo gedit /etc/apt/sources.list

# You can't just install gephi because it's missing libgoogle-collections-java
# And that one's not packaged with Ubuntu anymore as of Trusty at least

# Download all three files to a temp folder:
# https://packages.debian.org/source/wheezy/libgoogle-collections-java
# Then navigate to that folder:
cd /path/to/folder

# Download keys for libgoogle-collections-java
gpg --keyserver keyserver.ubuntu.com --recv-keys 974B3E96

# Extract a source package
dpkg-source -x *.dsc

# Now try to build package.
cd libgoogle-collections-java-1.0/
dpkg-buildpackage -us -uc

# Fail, needs dependencies
# For me, it needed:
# maven-repo-helper maven-ant-helper cdbs default-java libjsr305-java
sudo apt-get install [missing dependencies]

# Now, build the package.
dpkg-buildpackage -us -uc

# This builds an actual .deb in folder above.
cd ..
sudo dpkg -i libgoogle-collections-java_1.0-2_all.deb

# Now install gephi.
sudo apt-get update; sudo apt-get install gephi

# Done

Modified from this AskUbuntu answer.


Leave a comment

Filed under Uncategorized