Techie June 2020
ERROR TYPE: Dependency Error
# Error when trying to run a jekyll project
Dependency Error: Yikes! It looks like you don't have jekyll-commonmark-ghpages 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: 'incompatible library version - /home/koby/gems/gems/commonmarker-0.17.13/lib/commonmarker/commonmarker.so' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
# Step 1:
# Warning! This will uninstall bundler and all other gems
# a removes all versions
# I ignores dependencies
# x includes executables
For Rubygems >= 2.1.0:
gem uninstall -aIx
For Rubygems < 2.1.0:
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done
# If the above didn't work: You could also build out a new Gemfile and run bundle clean --force. This will remove all other gems that aren't included in the new Gemfile.
bundle clean --force
# Step 2:
# Now install the version of bundler required by your project
gem install bundler:2.1.4
# Step 3:
#After this everything should be ok!
bundle install
That’s it!
See you in the next tuts