-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
win10, jekyll/jeykll:pages build error with commonmarker #198
Comments
This can happen if your Gemfile.lock is out of sync with the version of Jekyll we provide, or you provide a version of Jekyll that doesn't match ours inside of your Gemfile, or if you include extra gems that Github Pages doesn't support. We do not support compiling gems on the You can fix this by double checking your Gemfile, and removing your Gemfile.lock which should fix this problem. If it does not please do update this ticket and provide more information about your setup, because a log without context provides us no help with figuring out why your build is behaving like that. |
Hi,
In the current directory from where I did run the docker command I have the following files:
This seems very basic. Do you have any idea, why Do you have any advice how to workaround this? Thanks a lot and best regards, |
I don't work for Github, you would have to ask them why they are doing something new suddenly. |
My only suggestion is to stop using the pages tag and use the regular tag, which will let you compile, as we do not remove development dependencies in regular tags. |
I can confirm that it works perfectly with I understand that you're not working for Github, but what sense does it make to provide an image version tagged Anyway, thanks a lot for providing the jekyll containers. They still helped me a lot! |
- need to set 'repository: simonis/cl4cds' if there's no git available or git is too old to understand 'git remote get-url origin' (see jekyll/github-metadata#45) - have to use jekyll/jekyll:latest Docker image as jekyll/jekyll:pages doesn't seem to work anymore (see envygeeks/jekyll-docker#198)
And just like Github's pages, you aren't supposed to supply a Gemfile, and if you do, and we can detect a discrepancy, you trigger the logic meant for other images that tries to ensure that your builds will work. It's well established this happens (years worth of establishment,) and on top of that, it's well noted that we do not provide compiling dependencies on pages, because of this fact. So if you provide a Gemfile, instead of just doing |
Thanks a lot for your detailed explanation and sorry if my comments are a little blurry - I just started to use Jekyll and GitHub pages yesterday so I'm still trying to figure out how everything fits together. You're right that even So if you don't mind, can you please confirm if my limited understanding so far is correct? Without By the way, I think the build error my be rated to the latest change in the GitHub pages gem (github/pages-gem#500) which added a dependency on jekyll-commonmark-ghpages. Finally I kindly ask you to answer a last question if you're still not tired of me :) If I remove the
but the Thanks a lot for your patience, |
Your problem stems from the Gemfile.lock, not the Gemfile directly. For questions on how to load plugins inside of Jekyll, please refer to their documentation at https://jekyllrb.com, we simply just encapsulate Jekyll into a reusable, and clean environment. My images rebuild daily, automatically, without my intervention, to not only pick up security updates, but to pick up new dependencies without me having to lock them, so if Github changed something in their Gem, I would have picked up by 9:00PM that night on the next build, and it would have been available, as shown above. |
You need to install |
I'm pretty sure I know how Ruby works. |
was searching for this issue too, found a solution so i posted it here |
Installing |
To add to the messages installing |
Hi!
When I do: docker-compose up
for docker-compose.yml:
jekyll:
image: jekyll/jekyll:pages
command: jekyll serve --watch --incremental
ports:
- 4000:4000
volumes:
- .:/srv/jekyll
I get error:
Fetching commonmarker 0.17.7.1
Installing commonmarker 0.17.7.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/commonmarker-0.17.7.1/ext/commonmarker
/usr/local/bin/ruby -r ./siteconf20171227-34-8zulf2.rb extconf.rb
creating Makefile
current directory: /usr/local/bundle/gems/commonmarker-0.17.7.1/ext/commonmarker
make "DESTDIR=" clean
sh: make: not found
current directory: /usr/local/bundle/gems/commonmarker-0.17.7.1/ext/commonmarker
make "DESTDIR="
sh: make: not found
make failed, exit code 127
Gem files will remain installed in /usr/local/bundle/gems/commonmarker-0.17.7.1 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/2.5.0/commonmarker-0.17.7.1/gem_make.out
An error occurred while installing commonmarker (0.17.7.1), and Bundler cannot continue.
Make sure that
gem install commonmarker -v '0.17.7.1'
succeeds before bundling.In Gemfile:
github-pages was resolved to 172, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.3, which depends on
jekyll-commonmark was resolved to 1.1.0, which depends on
commonmarker
The text was updated successfully, but these errors were encountered: