Skip to content

Instantly share code, notes, and snippets.

@faizalmansor
Last active January 14, 2020 05:15
Show Gist options
  • Save faizalmansor/bdbaae3ca916fac5c195b06b0795b998 to your computer and use it in GitHub Desktop.
Save faizalmansor/bdbaae3ca916fac5c195b06b0795b998 to your computer and use it in GitHub Desktop.
Install Slate API Docs Generator on Ubuntu 18.04 LTS

When installing slate on ubuntu 18.04 I stumbled upon this error:

Can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

So checking the bundler version of slate:

$ cat Gemfile.lock | grep -A 1 "BUNDLED WITH"
BUNDLED WITH
   2.0.2

$ gem install bundler -v '2.0.2'

However, other problem now arised, unable to compile some dependencies. To fix this, you need to install the following (not mentioned in the original Slate wiki):

sudo apt install zlib1g-dev build-essential ruby-full

Resource:

https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html

slatedocs/slate#782

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