Installation - AdventistMediaMinistries/KeyfilePaperlessDocumentStorageExtraction GitHub Wiki
Install the gem with the following command:
sudo gem install --no-wrappers kf_decoder-0.1.3.gem
--no-wrappers is required to work around a bug resulting in a broken pipe error for calls to the fix_tiff binary when running ruby under rbenv.
Here's a complete install from scratch using a VirtualBox VM.
1. Install Linux (Ubuntu 18.0.4)
• Download Ubuntu 18.0.4 ISO from Canonical (not the live ISO)
• Create new Virtualbox VM (Ubuntu 64, 3Gb Memory, 15Gb HD, attache ISO, 2nd nic with private host networking)
• config 2nd interface using netplan (https://www.linux.com/learn/intro-to-linux/2018/9/how-use-netplan-network-configuration-tool-linux)
• enable key-based ssh auth. Installed public keys (ssh-copy-id username@remote_host)
• added <user> to sudo with no password (https://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password)
2. Install rbenv
• sudo apt install ruby
• git clone https://github.com/rbenv/rbenv.git ~/.rbenv
• echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
• echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
• mkdir -p "$(rbenv root)"/plugins
• git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
• curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
(should return no errors)
https://github.com/rbenv/rbenv#basic-github-checkout
https://github.com/rbenv/ruby-build#installation
3. Install jruby
• sudo apt-get install openjdk-8-jdk
• sudo apt-get install build-essential
• rbenv install jruby-9.2.0.0
4. Install kf_decoder
• gem install --no-wrappers ./kf_decoder-0.1.3.gem