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

Cannot build lesson on ubuntu 16.04 #553

Open
djsperka opened this Issue Sep 12, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@djsperka

djsperka commented Sep 12, 2018

I forked the lesson on github, cloned it locally. My machine runs ubuntu 16.04

If I try to build the site I get errors:

dan@bucky:~/git/git-novice$ make serve
jekyll serve
Configuration file: /home/dan/git/git-novice/_config.yml
Source: /home/dan/git/git-novice
Destination: /home/dan/git/git-novice/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: Liquid syntax error: Unknown tag 'link' in _includes/navbar.html, included in _layouts/base.html
jekyll 3.0.1 | Error: Liquid syntax error: Unknown tag 'link'
Makefile:26: recipe for target 'serve' failed

A cursory look at the files navbar.html or base.html doesn't yield an obvious answer.

If I run the jekyll command with verbose option there's a little more info. Seems the error occurs with rendering lesson 2, whereas lesson 1 renders just fine:

dan@bucky:~/git/git-novice$ jekyll build --verbose
Logging at level: debug
Configuration file: /home/dan/git/git-novice/_config.yml
Source: /home/dan/git/git-novice
Destination: /home/dan/git/git-novice/_site
Incremental build: disabled. Enable with --incremental
Generating...
EntryFilter: excluded?(/lesson.html) ==> false
EntryFilter: excluded?(/break.html) ==> false
EntryFilter: excluded?(/reference.html) ==> false
EntryFilter: excluded?(/page.html) ==> false
EntryFilter: excluded?(/base.html) ==> false
EntryFilter: excluded?(/workshop.html) ==> false
EntryFilter: excluded?(/episode.html) ==> false
EntryFilter: excluded?(/code) ==> false
EntryFilter: excluded?(/index.md) ==> false
EntryFilter: excluded?(/AUTHORS) ==> false
EntryFilter: excluded?(/CITATION) ==> false
EntryFilter: excluded?(/aio.md) ==> false
EntryFilter: excluded?(/LICENSE.md) ==> false
EntryFilter: excluded?(/reference.md) ==> false
EntryFilter: excluded?(/requirements.txt) ==> false
EntryFilter: excluded?(/CONTRIBUTING.md) ==> false
EntryFilter: excluded?(/Makefile) ==> true
EntryFilter: excluded?(/assets) ==> false
EntryFilter: excluded?(/setup.md) ==> false
EntryFilter: excluded?(/files) ==> false
EntryFilter: excluded?(/CODE_OF_CONDUCT.md) ==> false
EntryFilter: excluded?(/bin) ==> false
EntryFilter: excluded?(/README.md) ==> false
EntryFilter: excluded?(/data) ==> false
EntryFilter: excluded?(/fig) ==> false
EntryFilter: excluded?(/assets/favicons) ==> false
EntryFilter: excluded?(/assets/fonts) ==> false
EntryFilter: excluded?(/assets/img) ==> false
EntryFilter: excluded?(/assets/css) ==> false
EntryFilter: excluded?(/assets/js) ==> false
EntryFilter: excluded?(/assets/favicons/dc) ==> false
EntryFilter: excluded?(/assets/favicons/swc) ==> false
EntryFilter: excluded?(/assets/favicons/lc) ==> false
EntryFilter: excluded?(/assets/favicons/cp) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon-96x96.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/mstile-70x70.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/mstile-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-60x60.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-114x114.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/mstile-150x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-76x76.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon-32x32.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon.ico) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon-128.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/mstile-310x310.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-72x72.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon-16x16.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-120x120.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-152x152.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-57x57.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/apple-touch-icon-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/mstile-310x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/dc/favicon-196x196.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon-96x96.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/mstile-70x70.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/mstile-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-60x60.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-114x114.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/mstile-150x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-76x76.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon-32x32.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon.ico) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon-128.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/mstile-310x310.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-72x72.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon-16x16.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-120x120.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-152x152.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-57x57.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/apple-touch-icon-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/mstile-310x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/swc/favicon-196x196.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon-96x96.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/mstile-70x70.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/mstile-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-60x60.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-114x114.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/mstile-150x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-76x76.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon-32x32.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon.ico) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon-128.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/mstile-310x310.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-72x72.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon-16x16.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-120x120.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-152x152.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-57x57.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/apple-touch-icon-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/mstile-310x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/lc/favicon-196x196.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon-96x96.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/mstile-70x70.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/mstile-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-60x60.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-114x114.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/mstile-150x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-76x76.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon-32x32.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon.ico) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon-128.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/mstile-310x310.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-72x72.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon-16x16.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-120x120.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-152x152.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-57x57.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/apple-touch-icon-144x144.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/mstile-310x150.png) ==> false
EntryFilter: excluded?(/assets/favicons/cp/favicon-196x196.png) ==> false
EntryFilter: excluded?(/assets/fonts/glyphicons-halflings-regular.woff) ==> false
EntryFilter: excluded?(/assets/fonts/glyphicons-halflings-regular.eot) ==> false
EntryFilter: excluded?(/assets/fonts/glyphicons-halflings-regular.svg) ==> false
EntryFilter: excluded?(/assets/fonts/glyphicons-halflings-regular.ttf) ==> false
EntryFilter: excluded?(/assets/fonts/glyphicons-halflings-regular.woff2) ==> false
EntryFilter: excluded?(/assets/img/swc-icon-blue.svg) ==> false
EntryFilter: excluded?(/assets/img/lc-logo-black.png) ==> false
EntryFilter: excluded?(/assets/img/lc-icon-black.png) ==> false
EntryFilter: excluded?(/assets/img/swc-logo-blue.png) ==> false
EntryFilter: excluded?(/assets/img/lc-icon-black.svg) ==> false
EntryFilter: excluded?(/assets/img/lc-logo-black.svg) ==> false
EntryFilter: excluded?(/assets/img/swc-logo-white.png) ==> false
EntryFilter: excluded?(/assets/img/dc-icon-black.svg) ==> false
EntryFilter: excluded?(/assets/img/swc-logo-blue.svg) ==> false
EntryFilter: excluded?(/assets/img/cp-logo-blue.svg) ==> false
EntryFilter: excluded?(/assets/img/dc-logo-black.svg) ==> false
EntryFilter: excluded?(/assets/img/swc-logo-white.svg) ==> false
EntryFilter: excluded?(/assets/css/bootstrap-theme.css) ==> false
EntryFilter: excluded?(/assets/css/bootstrap-theme.css.map) ==> false
EntryFilter: excluded?(/assets/css/lesson.scss) ==> false
EntryFilter: excluded?(/assets/css/syntax.css) ==> false
EntryFilter: excluded?(/assets/css/bootstrap.css) ==> false
EntryFilter: excluded?(/assets/css/bootstrap.css.map) ==> false
EntryFilter: excluded?(/assets/js/jquery.min.map) ==> false
EntryFilter: excluded?(/assets/js/bootstrap.min.js) ==> false
EntryFilter: excluded?(/assets/js/jquery.min.js) ==> false
EntryFilter: excluded?(/assets/js/lesson.js) ==> false
EntryFilter: excluded?(/bin/boilerplate) ==> true
EntryFilter: excluded?(/bin/lesson_check.py) ==> true
EntryFilter: excluded?(/bin/test_lesson_check.py) ==> true
EntryFilter: excluded?(/bin/generate_md_episodes.R) ==> true
EntryFilter: excluded?(/bin/repo_check.py) ==> true
EntryFilter: excluded?(/bin/util.py) ==> true
EntryFilter: excluded?(/bin/lesson_initialize.py) ==> true
EntryFilter: excluded?(/bin/workshop_check.py) ==> true
EntryFilter: excluded?(/bin/knit_lessons.sh) ==> true
EntryFilter: excluded?(/bin/chunk-options.R) ==> true
EntryFilter: excluded?(/bin/markdown_ast.rb) ==> true
EntryFilter: excluded?(/fig/RStudio_screenshot_viewhistory.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_editfiles.png) ==> false
EntryFilter: excluded?(/fig/github-create-repo-02.png) ==> false
EntryFilter: excluded?(/fig/github-create-repo-03.png) ==> false
EntryFilter: excluded?(/fig/versions.svg) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_navigateexisting.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_review.png) ==> false
EntryFilter: excluded?(/fig/conflict.svg) ==> false
EntryFilter: excluded?(/fig/github-create-repo-01.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_commit.png) ==> false
EntryFilter: excluded?(/fig/github-repo-after-first-push.svg) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_existingdirectory.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_history.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_gitignore.png) ==> false
EntryFilter: excluded?(/fig/git-committing.svg) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_newproject.png) ==> false
EntryFilter: excluded?(/fig/merge.svg) ==> false
EntryFilter: excluded?(/fig/phd101212s.png) ==> false
EntryFilter: excluded?(/fig/git_staging.svg) ==> false
EntryFilter: excluded?(/fig/git-staging-area.svg) ==> false
EntryFilter: excluded?(/fig/github-find-repo-string.png) ==> false
EntryFilter: excluded?(/fig/RStudio_screenshot_afterclone.png) ==> false
EntryFilter: excluded?(/fig/git-freshly-made-github-repo.svg) ==> false
EntryFilter: excluded?(/fig/git-checkout.svg) ==> false
EntryFilter: excluded?(/fig/play-changes.svg) ==> false
EntryFilter: excluded?(/fig/github-collaboration.svg) ==> false
EntryFilter: excluded?(/fig/github-add-collaborators.png) ==> false
EntryFilter: excluded?(/fig/motivatingexample.png) ==> false
EntryFilter: excluded?(/fig/github-change-repo-string.png) ==> false
EntryFilter: excluded?(_episodes/11-licensing.md) ==> false
EntryFilter: excluded?(_episodes/04-changes.md) ==> false
EntryFilter: excluded?(_episodes/13-hosting.md) ==> false
EntryFilter: excluded?(_episodes/07-github.md) ==> false
EntryFilter: excluded?(_episodes/03-create.md) ==> false
EntryFilter: excluded?(_episodes/05-history.md) ==> false
EntryFilter: excluded?(_episodes/06-ignore.md) ==> false
EntryFilter: excluded?(_episodes/09-conflict.md) ==> false
EntryFilter: excluded?(_episodes/08-collab.md) ==> false
EntryFilter: excluded?(_episodes/01-basics.md) ==> false
EntryFilter: excluded?(_episodes/14-supplemental-rstudio.md) ==> false
EntryFilter: excluded?(_episodes/02-setup.md) ==> false
EntryFilter: excluded?(_episodes/10-open.md) ==> false
EntryFilter: excluded?(_episodes/12-citation.md) ==> false
Reading: _episodes/11-licensing.md
Reading: _episodes/04-changes.md
Reading: _episodes/13-hosting.md
Reading: _episodes/07-github.md
Reading: _episodes/03-create.md
Reading: _episodes/05-history.md
Reading: _episodes/06-ignore.md
Reading: _episodes/09-conflict.md
Reading: _episodes/08-collab.md
Reading: _episodes/01-basics.md
Reading: _episodes/14-supplemental-rstudio.md
Reading: _episodes/02-setup.md
Reading: _episodes/10-open.md
Reading: _episodes/12-citation.md
EntryFilter: excluded?(_extras/guide.md) ==> false
EntryFilter: excluded?(_extras/discuss.md) ==> false
EntryFilter: excluded?(_extras/figures.md) ==> false
EntryFilter: excluded?(_extras/about.md) ==> false
Reading: _extras/guide.md
Reading: _extras/discuss.md
Reading: _extras/figures.md
Reading: _extras/about.md
Rendering: _episodes/01-basics.md
Rendering: _episodes/01-basics.md
Pre-Render Hooks: _episodes/01-basics.md
Rendering Liquid: _episodes/01-basics.md
Rendering Markup: _episodes/01-basics.md
Pre-Render Hooks: _episodes/01-basics.md
Rendering Liquid: _episodes/01-basics.md
Rendering Markup: _episodes/01-basics.md
Rendering Layout: _episodes/01-basics.md
Rendering: _episodes/02-setup.md
Pre-Render Hooks: _episodes/02-setup.md
Rendering Liquid: _episodes/02-setup.md
Rendering Markup: _episodes/02-setup.md
Liquid Exception: Liquid syntax error: Unknown tag 'link' in _includes/navbar.html, included in _layouts/base.html
jekyll 3.0.1 | Error: Liquid syntax error: Unknown tag 'link'


@fmichonneau

This comment has been minimized.

Member

fmichonneau commented Sep 12, 2018

you need a more recent version of jekyll. Install it using gem instead of apt:

$ sudo apt-get remove jekyll
$ sudo gem install jekyll
@djsperka

This comment has been minimized.

djsperka commented Sep 12, 2018

@rgaiacs

This comment has been minimized.

Contributor

rgaiacs commented Sep 13, 2018

Can I suggest adding some detail on preparing one's machine for building a
site locally?

Yes, please.

@fmichonneau

This comment has been minimized.

Member

fmichonneau commented Sep 13, 2018

Instructions are here: http://carpentries.github.io/lesson-example/setup.html#optional-jekyll-setup-for-lesson-development They could be improved, but are buried and difficult to find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment