gayanvirajith / harmony

A responsive Jekyll theme.
http://gayan.me/harmony
Other
224 stars 204 forks source link

Problem in running jekyll serve #8

Open mandliya opened 9 years ago

mandliya commented 9 years ago

Once I have cloned the theme I run "bundle install". It seems to be working successfully, I get this in the end:

Bundle complete! 3 Gemfile dependencies, 56 gems now installed. Use bundle show [gemname] to see where a bundled gem is installed.

Then I run "jekyll serve", I get the below error:

Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2014-07-28-welcome-to-jekyll.markdown/#excerpt': Missing dependency: kramdown ERROR: YOUR SITE COULD NOT BE BUILT:

                Missing dependency: kramdown

I install the gem using : sudo gem install kramdown it install successfully. However, "jekyll serve" still fails.

Following stack overflow suggestion (http://stackoverflow.com/questions/28574314/missing-gem-dependencies) to add gem 'kramdown' in Gemfile and then running bundle install did not help too..

I know kramdown is installed, I am not sure how to move ahead, any help would be great.

Thanks

gayanvirajith commented 9 years ago

Hi Ravi,

Are you using a Ruby version manager?

Ryan-McBride commented 9 years ago

I'm having this same issue. I'm using rbenv as a ruby version manager. Installed ruby version is 2.1.4.

gayanvirajith commented 9 years ago

Hi,

Could you please try by modifying Gemfile as follows and check weather it solve the issue:

source 'https://rubygems.org'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']
gem 'kramdown', versions['kramdown']
gem 'rake'
jfarbowitz commented 8 years ago

I tried modifying the Gemfile and still have the same issue as others are having.

rudiruhl commented 8 years ago

I modified the Gemfile but still get this error:

WARN: Unresolved specs during Gem::Specification.reset: listen (~> 3.0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file: .../harmony/_config.yml Dependency Error: Yikes! It looks like you don't have kramdown 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 -- kramdown' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.2 | Error: kramdown

shinigamicorei7 commented 8 years ago

Hi,

Run :

[sudo] bundle clean --force

:smile: this work's for me...

dburriss commented 8 years ago

Thanks bundle clean --force worked for me

kaizer1v commented 5 years ago

Hi,

Run :

[sudo] bundle clean --force

😄 this work's for me...

which directory did you run this command?

Racso commented 4 years ago

Somehow, the suggested command bundle clean --force simply removed all my gems, including Jekyll and its dependencies 😕. Use with care.