slatedocs / slate

Beautiful static documentation for your API
https://slatedocs.github.io/slate
Apache License 2.0
36.02k stars 112 forks source link

Bundle install的时候报了以下错误 #1593

Open lt1231 opened 2 years ago

lt1231 commented 2 years ago

Installing fast_blank 1.0.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/fast_blank-1.0.1/ext/fast_blank C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/3.1.0 -r ./siteconf20220309-188824-lsizuc.rb extconf.rb creating Makefile

current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/fast_blank-1.0.1/ext/fast_blank make DESTDIR\= clean

current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/fast_blank-1.0.1/ext/fast_blank make DESTDIR\= generating fast_blank-x64-mingw-ucrt.def compiling fast_blank.c make: gcc: No such file or directory make: *** [Makefile:246:fast_blank.o] 错误 127

make failed, exit code 2

Gem files will remain installed in C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/fast_blank-1.0.1 for inspection. Results logged to C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/fast_blank-1.0.1/gem_make.out

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

In Gemfile: middleman was resolved to 4.4.2, which depends on middleman-core was resolved to 4.4.2, which depends on fast_blank

MasterOdin commented 2 years ago

make: gcc: No such file or directory

Sounds like you need to install gcc on your computer. I don't use Windows and so cannot offer any direct advice on that route.