We have successfully installed nbgallery on CentOS, Ubuntu, and Mac Homebrew. Here's an overview of the OS-level packages you'll need to install first. Jump down to the platform-specific notes below for more detail.
- Utilities: git, make, g++
- Ruby version 2.3, with bundler and pry
- We do use new features from 2.3, so earlier versions will not work. We have not tested with 2.4, and we ran into problems with 2.5 on Mac so there are probably some incompatibilities there.
- Dependencies for various ruby gems: ssdeep, ImageMagick, zlib, xml dev packages
- MySQL or MariaDB, with dev packages
- Java - version 8 preferred (see Solr notes)
Once you've installed all the necessary packages:
- Download or clone the nbgallery source from github
cd
into the nbgallery source directory- Run
bundle install
to install all the ruby gems used by nbgallery
Ssdeep is in the extra packages repo, so you'll need to sudo yum install epel-release
to enable those. Here are other package names to install with yum:
git
make
gcc-c++
ruby-devel
rubygem-bundler
ssdeep-devel
ImageMagick-devel
zlib-devel
libxml2-devel
mariadb-server
mariadb-devel
java-1.8.0-openjdk-headless
You will probably want to install pry
for use with the rails console: gem install pry
(may require sudo)
Packages to install with apt:
git
make
g++
ruby
ruby-dev
pry
ruby-bundler
zlib1g-dev
libfuzzy-dev
libxml2-dev
libmagick++-dev
mariadb-server
libmariadb-client-lgpl-dev
openjdk-8-jre-headless
These notes are from September 2018. Please let us know if you have updates or corrections.
- Install homebrew if you haven't already
- Install Java, preferably 1.8, for solr. (You don't need to do this through
brew
.) - Install mariadb - reference. Mysql may work too but we haven't tried it.
brew install mariadb
brew services start mariadb
if you want it to run automatically at startup
- Install ruby 2.3 with rvm
- Install various dependencies for ruby gems
brew install git
brew install openssl
brew install ssdeep
- ImageMagick using this workaround:
brew unlink imagemagick
brew install imagemagick@6 && brew link imagemagick@6 --force