0
votes

I'm beginning to set up a Jekyll site and I've installed everything and copied the contents of this theme into the site's directory. I've installed Pygments via the gem install pygments.rb command and it seemed to install fine. But I'm still getting the error from my screenshot below when trying jekyll serve . I found this post and tried the commands in the given answer, installing pygments worked fine, but when I tried gem 'pygments.rb' I got the error in the first line of the screenshot "Unknown command pygments.rb".

I'm running this command in the directory with my gemfile, so I'm not sure what the problem is.

enter image description here

I'm not really sure what else I can try. I've installed pygments but I still get the error that it is not installed. I am using rbenv to manage my Ruby versions, I have the global ruby version set to 2.0.0-p247. Any ideas how I can fix this?

Edit: So I followed the theme's install guide, but I'm getting the same error except for Kramdown:

Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2016-01-08-welcome-to-jekyll.markdown': Missing dependency: kramdown ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ Missing dependency: kramdown

1
shot into the dark but do you have python installed? jekyllrb.com/docs/templates/#code-snippet-highlighting - matrixanomaly
@matrixanomaly I actually wasn't sure if I did or not when I saw this, so I ran brew install Python and let it do its thing. Still getting the same error though, so I guess that wasn't the problem :( Thanks though - intA
hmm the only other thing I can think of is to try setting your ruby version again with rbenv, then doing gem install pygments.rb to avoid the chance of it installing to the global gem collection. or just clear your local ruby env and start over, I ran into many weird errors like these and clearing it all and starting over seemed to fix the problem. (Alternatively, remove the syntax highlighting part and use something like rouge) - matrixanomaly
Welcome to Stack Overflow. Don't use a snapshot of the screen to display errors, code, status messages, or anything else we'd need to help answer your question. We can't copy/paste that information into a search box to look for additional information when trying to help, nor can search engines index that information to help others find a solution to similar questions. Please read "How to Ask", "minimal reproducible example". - the Tin Man
@theTinMan Yeah sorry, I thought about that before I posted it. I've been copy & pasting that error into google all day and haven't found an answer. I've recreated the Jekyll page directory and tried some other stuff. Now I'm essentially getting the same error but with Kramdown as my missing dependency, so I'm working through that issue now. - intA

1 Answers

0
votes

If you read theme's install steps, your not supposed to battle with any pygments install.

Here are two working ways for a Jekyll install :