Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to serve locally #39

Closed
ghost opened this issue Jan 6, 2016 · 7 comments
Closed

Unable to serve locally #39

ghost opened this issue Jan 6, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2016

After cloning a fresh copy of the repository I tried running the site locally with jekyll serve and I was given the two following errors:

Deprecation: You appear to have pagination turned on, but you haven't included thejekyll-paginategem. Ensure you havegems: [jekyll-paginate]in your configuration file.

and

Dependency Error: Yikes! It looks like you don't have pygments 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 -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! Liquid Exception: pygments in /Users/Adam/Projects/dbyll/_posts/2013-11-14-sample.md ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ pygments

It appears that I was able to solve the deprecation error by running gem install jekyll-paginate in addition to adding gems: [jekyll-paginate] to _config.yml.

The second error is solved by running gem install pygments.rb.

While both fixes were pretty simple to track down, I think the README should at least indicate that jekyll-paginate and pygments are dependencies. I'm also very much a novice with Ruby, so I might be misunderstanding something on my end as well.

@agnivade
Copy link
Contributor

+1

@dbtek
Copy link
Owner

dbtek commented Feb 11, 2016

Is there anything to be done with pygments.rb dependency in this project?

@agnivade
Copy link
Contributor

You can add a Gemfile to the project and put these lines

group :jekyll_plugins do
  gem "pygments.rb"
end

@dbtek
Copy link
Owner

dbtek commented Feb 11, 2016

Thanks @agnivade,

I am not good with the ruby stuff. I am just a jekyll frontend guy 😄. Are you sure about this should be in the jekyll theme?

I did not end up with this error as I probably installed the gem with former jekyll releases.

@dbtek
Copy link
Owner

dbtek commented Feb 11, 2016

I also appreciate a pull request though.

@agnivade
Copy link
Contributor

I am not habituated with Ruby too .. 😝 . Just came across this wonderful theme while setting up my blog. But yes, reading through the docs, since this is a Ruby project after all, any dependencies should be explicitly mentioned.

Will send a PR soon !

@dbtek
Copy link
Owner

dbtek commented Feb 11, 2016

Thanks. Looking forward to.

huydod pushed a commit to huydod/harryhcm.github.io that referenced this issue Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants