Skip to content
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

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

Open
lt1231 opened this issue Mar 9, 2022 · 1 comment
Open

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

lt1231 opened this issue Mar 9, 2022 · 1 comment

Comments

@lt1231
Copy link

lt1231 commented Mar 9, 2022

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants