gjtorikian / jekyll-last-modified-at

A Jekyll plugin to show the last_modified_at time of a post.
MIT License
244 stars 39 forks source link

Dependency Error: Yikes! #49

Closed jpuck closed 7 years ago

jpuck commented 7 years ago

I'm new to jekyll and ruby, so please help me out because I'm not really sure what I'm missing here. Per the docs, I've added this to _config.yml

gems:
  - jekyll-last-modified-at

I even took the extra undocumented step of trying to install the gem.

bash-4.3# gem install jekyll-last-modified-at

Successfully installed jekyll-last-modified-at-1.0.1 Parsing documentation for jekyll-last-modified-at-1.0.1 Done installing documentation for jekyll-last-modified-at after 0 seconds 1 gem installed

bash-4.3# bundle

Using public_suffix 2.0.5 Using colorator 1.1.0 Using ffi 1.9.18 Using forwardable-extended 2.6.0 Using sass 3.4.23 Using rb-fsevent 0.9.8 Using kramdown 1.13.2 Using liquid 3.0.6 Using mercenary 0.3.6 Using rouge 1.11.1 Using safe_yaml 1.0.4 Using bundler 1.14.6 Using addressable 2.5.1 Using rb-inotify 0.9.8 Using pathutil 0.14.0 Using jekyll-sass-converter 1.5.0 Using listen 3.0.8 Using jekyll-watch 1.5.0 Using jekyll 3.4.0 Bundle complete! 2 Gemfile dependencies, 19 gems now installed. Use bundle show [gemname] to see where a bundled gem is installed.

All seems to install OK, but it just fails to build and serve.

bash-4.3# bundle exec jekyll serve

fetch http://mirror.envygeeks.io/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://mirror.envygeeks.io/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://mirror.envygeeks.io/alpine/edge/community/x86_64/APKINDEX.tar.gz fetch http://mirror.envygeeks.io/alpine/edge/testing/x86_64/APKINDEX.tar.gz fetch http://mirror.envygeeks.io/alpine/edge/main/x86_64/APKINDEX.tar.gz OK: 255 MiB in 72 packages The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java. Fetching gem metadata from https://rubygems.org/........... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Resolving dependencies... Using public_suffix 2.0.5 Using colorator 1.1.0 Using ffi 1.9.18 Using forwardable-extended 2.6.0 Using sass 3.4.23 Using rb-fsevent 0.9.8 Using kramdown 1.13.2 Using liquid 3.0.6 Using mercenary 0.3.6 Using rouge 1.11.1 Using safe_yaml 1.0.4 Using bundler 1.14.6 Using addressable 2.5.1 Using rb-inotify 0.9.8 Using pathutil 0.14.0 Using jekyll-sass-converter 1.5.0 Using listen 3.0.8 Using jekyll-watch 1.5.0 Using jekyll 3.4.0 Bundle updated! Configuration file: /srv/jekyll/_config.yml Configuration file: /srv/jekyll/_config.yml Dependency Error: Yikes! It looks like you don't have jekyll-last-modified-at or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-last-modified-at' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! jekyll 3.4.0 | Error: jekyll-last-modified-at

jpuck commented 7 years ago

figured it out - needed to be added to Gemfile