2015-10-30 4 views
34
Configuration file: /Users/andrechristoga/Documents/type-theme/_config.yml 
     Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file. 
      Source: /Users/andrechristoga/Documents/type-theme 
     Destination: /Users/andrechristoga/Documents/type-theme/_site 
Incremental build: disabled. Enable with --incremental 
     Generating... 
    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/andrechristoga/Documents/type-theme/_posts/2014-11-28-markdown-and-html.md 
      ERROR: YOUR SITE COULD NOT BE BUILT: 
        ------------------------------------ 
        pygments 

Questi sono il messaggio quando si digita jekyll serve.Jekyll servire non ha funzionato: Sembra che non si dispone di pygments o una delle sue dipendenze installato

+2

installare pygments: 'gem install pygments.rb' – fcalderan

risposta

64

Ho avuto lo stesso problema ma l'ho risolto installando pygments gem.

gem install pygments.rb 

E aggiungerlo al mio Gemfile.

gem 'pygments.rb' 
+0

Nel mio template jekyll non avevo un' Gemfile' –

-1

Se si utilizza il comando sudo gem install pygments.rb o gem install pygments.rb, potrebbe non funziona

Così si può provare radice:

su root 
gem install pygments.rb 

Questo risolvere il mio problema.

+1

non è raccomandato l'uso di root per gem vedi http://stackoverflow.com/questions/2119064/ sudo-gioiello-install-o-gemma-install-e-gEM-posizioni – ozOli

-1

se si è utenti Windows, è possibile eseguire CLI come amministratore. Questo aiuterebbe.

Problemi correlati