nandomoreirame / dotX

💎 Simple & Beautiful Jekyll theme
https://nandomoreirame.github.io/dotX
MIT License
90 stars 54 forks source link

can not directly build with jekyll on Ubuntu 15.04 #5

Open Roger-luo opened 8 years ago

Roger-luo commented 8 years ago

when I use

bundle install

and then

jekyll serve

but the following error occurs:

Please report a bug if this causes problems. Configuration file: /home/roger/Codes/websites/dotX/_config.yml Source: source Destination: _site Generating... You are missing a library required for Markdown. Please run: $ [sudo] gem install kramdown Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2015-12-20-welcome-to-jekyll.markdown/#excerpt': Missing dependency: kramdown ERROR: YOUR SITE COULD NOT BE BUILT:

                Missing dependency: kramdown

But

bundle exec jekyll serve

works fine

mkasberg commented 6 years ago

The issue is probably that bundle install installed the gems to some location other than the system-wide location. Thus, bundle exec jekyll serve works because it is using a different gem location, with all the correct gems installed.

Tested on my machine:

$ git clone git@github.com:nandomoreirame/dotX.git
Cloning into 'dotX'...

$ cd dotX/

$ bundle install --path vendor/bundle
Fetching gem metadata from http://rubygems.org/.............
. . .

$ bundle exec jekyll serve
Configuration file: /home/mkasberg/code/dotX/_config.yml
            Source: source
       Destination: _site
      Generating... 
                    done.
 Auto-regeneration: enabled for 'source'
Configuration file: /home/mkasberg/code/dotX/_config.yml
    Server address: http://127.0.0.1:4000/dotX/
  Server running... press ctrl-c to stop.

I'd recommend using local dependencies (--path vendor/bundle) and always using bundle exec since it removes the possibility of dependency conflicts with other packages at the system level. If you'd like, I can create a pull request to update the readme.