I have downloaded zip of this github repo - https://github.com/mmistakes/minimal-mistakes
I have installed bundler and I did bundle install , it worked perfectly.
Now when I try to run jekyll serve -w,
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file:
/home/kenden/Desktop/minimal-mistakes-master/_config.yml
Dependency
Error: Yikes! It looks like you don't have jekyll-paginate 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-paginate' If you run
into trouble, you can find helpful resources at
http://jekyllrb.com/help/!
jekyll 3.1.3 | Error: jekyll-paginate
However when I do, gem list, it shows me jekyll-paginate (1.1.0) along with all the other gems that are installed.
How to solve this issue?
I was able to solve it using gem cleanup followed by bundle exec jekyll serve.
If gem cleanup and bundle exec jekyll servedoesn't work.
Then try bundle add webrick. After that you can try bundle exec jekyll serve.
And it should work.
Related
I'm trying to setup a new Jekyll site and am running into issues after I create a new site using jekyll new testSite.
I get an error saying:
New jekyll site installed in /Users/myPath.
Dependency Error: Yikes! It looks like you don't have bundler 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 -- bundler' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.3.1 | Error: bundler
I've installed bundler already using gem install bundler, but it can't seem to find it.
bundler -v gives Bundler version 1.14.2
jekyll -v gives jekyll 3.3.1
Thanks in advance!
given that you have ruby, jekyll and blunder correctly installed. inside testSite folder run:
bundle
bundle (or bundle install, cf. bundler doc) will Install the dependencies specified in your Gemfile.
then run your new website, with:
bundle exec jekyll s
The below command worked for me, in ubuntu.
sudo apt install ruby-bundler
After installing jekyll on ubuntu 14.04 following this http://michaelchelen.net/81fa/install-jekyll-2-ubuntu-14-04/
it showed some warnings, but it said the installation was successful.
Then when I try to check the version using the command jekyll -v
it shows this
WARN: Unresolved specs during Gem::Specification.reset:
listen (< 3.1, ~> 3.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in block in setup': You have already activated colorator 1.1.0, but your Gemfile requires colorator 0.1. Prependingbundle execto your command may solve this. (Gem::LoadError)
from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:inmap'
from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in setup'
from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:insetup'
from /home/ant-ed/.gem/ruby/2.3.0/gems/jekyll-3.2.0/lib/jekyll/plugin_manager.rb:36:in require_from_bundler'
from /home/ant-ed/.gem/ruby/2.3.0/gems/jekyll-3.2.0/exe/jekyll:9:in'
from /home/ant-ed/.gem/ruby/2.3.0/bin/jekyll:22:in load'
from /home/ant-ed/.gem/ruby/2.3.0/bin/jekyll:22:in'
Should I uninstall jekyll and try to install it again?
Switch to the directory where the site is located and run:
bundle install
bundle exec jekyll -v
This bundle exec prefix will load the proper gemset as specified in Gemfile.
I am experiencing a problem with my build and missing a gem. However, I've installed the gem multiple times to no avail. I'm using NPM to manage packages as well. Since Jekyll is looking for kramdown, a gem, how can I let my build know it's installed locally?
Apologies on the weird question. I'm new to gems and stuff.
My error:
Warning: Command failed: You are missing a library required for Markdown. Please run:
$ [sudo] gem install kramdown
Conversion error: There was an error converting 'project/adrian-college.md'.
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Missing dependency: kramdown
Use --force to continue.
SOLUTION
'gem install kramdown' installed the gem locally but wasn't included as a dependency for the project. I had to simply edit the Gemfile manually and add: gem 'kramdown' then run bundle install.
If I understand well your question, you should just have to type :
gem install markdown
that will auto-install the dependencies.
It worked fine for me.
I'm installing some chef dependencies following this website:
https://learnchef.opscode.com/starter-use-cases/multi-node-ec2/
I got to the bundle install part, here's what my Gemfile looks like:
source 'https://rubygems.org'
gem 'berkshelf'
gem 'chef'
gem 'knife-ec2'
I get this error when I try to run
bundle install --path vendor:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
...
libiconv is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
...
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
I went to the nokogiri site and I was able to follow the directions and successfully install nokgiri 1.6.0 with homebrew .9.5:
nokogiri --version
WARNING: Nokogiri was built against LibXML version 2.9.1, but has dynamically loaded 2.8.0
# Nokogiri (1.6.0)
I get the same message when I then try running the bundle install again. I'm told that the bundle installer doesn't care about installs done outside of it. How to I get around this and install these dependencies?
After a little digging, I figured it out. This is specifically for OSX Mountain Lion.
The rbenv bundler needs to know the same paths specified using these switches given by the nokogiri site:
http://nokogiri.org/tutorials/installing_nokogiri.html
This is done using the bundler config command:
bundle config build.nokogiri --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar /libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
I still ran into troulbe because the config was only picking up the first line of that config setting. I had to edit $HOME/.bundle/config and take out some newlnes before it would take all of the switches. I hope this will save someone else some time.
I was trying to run Middleman and am getting the following error:
$ middleman
WARN: Unresolved specs during Gem::Specification.reset:
thor (< 2.0, >= 0.15.2)
multi_json (~> 1.0)
rb-inotify (>= 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems
So I ran bundle install and here's the relevant part of the output:
$ bundle install
Using i18n (0.6.1)
...
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
$ middleman
...
Could not find i18n-0.6.1 in any of the sources
Run `bundle install` to install missing gems.
$ bundle show
Gems included by the bundle:
...
* i18n (0.6.1)
...
$ bundle show i18n
/Users/jh/Documents/Workspace/mywebsite-middleman/vendor/bundle/ruby/1.8/gems/i18n-0.6.1
Does anybody know what's going on here? I keep running bundle install and bundle install --deployment like the message says and it refuses to work.
It sounds like you have added the middleman gem to a Gemfile and have installed using bundle install.
If that is the case you should run middleman as bundle exec middleman. This will ensure that all the other gems which have been installed as part of bundle install will be available to middleman.