Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update github-pages dependency to work with latest Ruby (2.5.1) #57

Open
@RaevLogic

Description

@RaevLogic

After cloning the nodegit.github.io repo onto my system, I kept getting this error when runningscript/bootstrap ||

$ script/bootstrapSuccessfully installed bundler-1.16.5Parsing documentation for bundler-1.16.5Done installing documentation for bundler after 3 seconds1 gem installedFetching gem metadata from https://rubygems.org/...........Fetching gem metadata from https://rubygems.org/.Resolving dependencies...Using RedCloth 4.2.9Using i18n 0.7.0Fetching json 1.8.2Installing json 1.8.2 with native extensionsGem::Ext::BuildError: ERROR: Failed to build gem native extension.current directory:C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/json-1.8.2/ext/json/ext/generatorC:/Ruby25-x64/bin/ruby.exe -r ./siteconf20180923-15396-s6e9th.rb extconf.rbcreating Makefilecurrent directory:C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/json-1.8.2/ext/json/ext/generatormake "DESTDIR=" cleancurrent directory:C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/json-1.8.2/ext/json/ext/generatormake "DESTDIR="generating generator-x64-mingw32.defcompiling generator.cgenerator.c: In function 'generate_json':generator.c:867:25: error: 'rb_cFixnum' undeclared (first use in this function);did you mean 'mFixnum'?     } else if (klass == rb_cFixnum) {                         ^~~~~~~~~~                         mFixnumgenerator.c:867:25: note: each undeclared identifier is reported only once foreach function it appears ingenerator.c:869:25: error: 'rb_cBignum' undeclared (first use in this function);did you mean 'mBignum'?     } else if (klass == rb_cBignum) {                         ^~~~~~~~~~                         mBignummake: *** [Makefile:242: generator.o] Error 1make failed, exit code 2Gem files will remain installed inC:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/json-1.8.2 for inspection.Results logged toC:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/json-1.8.2/gem_make.outAn error occurred while installing json (1.8.2), and Bundler cannot continue.Make sure that `gem install json -v '1.8.2' --source 'https://rubygems.org/'`succeeds before bundling.In Gemfile:  github-pages was resolved to 33, which depends on    jekyll-mentions was resolved to 0.2.1, which depends on      html-pipeline was resolved to 1.9.0, which depends on        activesupport was resolved to 4.2.0, which depends on          json

To fix, I had tobundle update github-pages. Looking through the difs forGemfile.lock, the dependenciesredcarpet andpygments are deleted. So moving toscript/server command, I get errors because I'm missing those two dependencies. To fix those errors, I went to the_config.yml and changed it tomarkdown: kramdown andhighlighter: rouge. The commandscript/server now works and the site is generated. I was curious if you'd like me to submit a PR for these dependency updates.
dependency issue config change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp