plurimath / mathml2asciimath

Convert MathML to AsciiMath
https://www.metanorma.com
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

bundle install issue #20

Closed Intelligent2013 closed 4 years ago

Intelligent2013 commented 4 years ago

Platform: Win7 x64 Ruby: ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]

I'm trying to run mathml2asciimath in my local environment, but when run bundle install --jobs 4 --retry 3 failed:

Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 12.3.3
Installing rake 12.3.3
Fetching ast 2.4.0
Using bundler 2.1.4
Fetching coderay 1.1.2
Fetching byebug 9.1.0
Installing ast 2.4.0
Installing coderay 1.1.2
Installing byebug 9.1.0 with native extensions
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching ffi 1.12.2 (x64-mingw32)
Installing ffi 1.12.2 (x64-mingw32)
Fetching formatador 0.2.5
Installing formatador 0.2.5
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching lumberjack 1.2.4
Installing lumberjack 1.2.4
Fetching nenv 0.3.0
Installing nenv 0.3.0
Fetching shellany 0.0.1
Installing shellany 0.0.1
Fetching method_source 1.0.0
Fetching thor 1.0.1
Installing method_source 1.0.0
Installing thor 1.0.1
Fetching guard-compat 1.2.1
Installing guard-compat 1.2.1
Fetching rspec-support 3.9.2
Installing rspec-support 3.9.2
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching nokogiri 1.11.0.rc2 (x64-mingw32) (was 1.10.9)
Fetching parallel 1.19.1
Installing parallel 1.19.1
Fetching powerpack 0.1.2
Fetching rainbow 3.0.0
Installing powerpack 0.1.2
Installing rainbow 3.0.0
Installing nokogiri 1.11.0.rc2 (x64-mingw32) (was 1.10.9)
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching simplecov-html 0.12.2
Installing simplecov-html 0.12.2
Fetching timecop 0.9.1
Installing timecop 0.9.1
Fetching parser 2.7.1.1
Installing parser 2.7.1.1
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.7.0/gems/byebug-9.1.0/ext/byebug
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r
./siteconf20200623-6264-a0jcqn.rb extconf.rb
creating Makefile

current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.7.0/gems/byebug-9.1.0/ext/byebug
make "DESTDIR=" clean
current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.7.0/gems/byebug-9.1.0/ext/byebug
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.7.0/gems/byebug-9.1.0
for inspection.
Results logged to
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.7.0/extensions/x64-mingw32/2.7.0/byebug-9.1.0/gem_make.out

An error occurred while installing byebug (9.1.0), and Bundler cannot continue.
Make sure that `gem install byebug -v '9.1.0' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  byebug

What did I do wrong and how can I fix it? Thank you.

ronaldtse commented 4 years ago

Maybe it's an incompatibility between byebug and Ruby 2.7... Not sure if there is anything we can do?

Intelligent2013 commented 4 years ago

@ronaldtse I'll try to install Ruby 2.6.

Intelligent2013 commented 4 years ago

Install Ruby 2.6. Same error:

Fetching parser 2.7.1.1
Installing parser 2.7.1.1
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.6.0/gems/byebug-9.1.0/ext/byebug
C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r
./siteconf20200623-5348-xc4eo1.rb extconf.rb
creating Makefile

current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.6.0/gems/byebug-9.1.0/ext/byebug
make "DESTDIR=" clean
current directory:
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.6.0/gems/byebug-9.1.0/ext/byebug
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.6.0/gems/byebug-9.1.0
for inspection.
Results logged to
C:/Metanorma/repositories/mathml2asciimath/vendor/bundle/ruby/2.6.0/extensions/x64-mingw32/2.6.0/byebug-9.1.0/gem_make.out

An error occurred while installing byebug (9.1.0), and Bundler cannot continue.
Make sure that `gem install byebug -v '9.1.0' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  byebug
Intelligent2013 commented 4 years ago

Solved. Ruby should be installed with Devkit.