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

Gemfile文件中添加了主题 bundle install报错 #414

Open
zhiting9420 opened this issue Aug 24, 2022 · 2 comments
Open

Gemfile文件中添加了主题 bundle install报错 #414

zhiting9420 opened this issue Aug 24, 2022 · 2 comments

Comments

@zhiting9420
Copy link

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/3.0.0/gems/racc-1.6.0/ext/racc/cparse

/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20220824-114716-txjyba.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/3.0.0/gems/racc-1.6.0 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/racc-1.6.0/gem_make.out

/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:95:in run' /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:47:in block in build'
/usr/lib/ruby/3.0.0/tempfile.rb:317:in open' /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:26:in build'
/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:164:in build_extension' /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:198:in block in build_extensions'
/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:195:in each' /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:195:in build_extensions'
/usr/lib/ruby/vendor_ruby/rubygems/installer.rb:851:in build_extensions' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:72:in build_extensions'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:28:in install' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/source/rubygems.rb:207:in install'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:54:in install' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:16:in install_from_spec'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:186:in do_install' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:177:in block in worker_pool'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/worker.rb:62:in apply_func' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/worker.rb:57:in block in process_queue'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/worker.rb:54:in loop' /var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/worker.rb:54:in process_queue'
/var/lib/gems/3.0.0/gems/bundler-2.3.20/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads'

An error occurred while installing racc (1.6.0), and Bundler cannot continue.

In Gemfile:
jekyll-text-theme was resolved to 2.2.6, which depends on
jemoji was resolved to 0.12.0, which depends on
html-pipeline was resolved to 2.14.2, which depends on
nokogiri was resolved to 1.13.8, which depends on
racc

@noonafter
Copy link

the same error

@noonafter
Copy link

同款问题已解决。首先安装依赖sudo apt install build-essential libssl-dev zlib1g-dev ruby-dev make,然后sudo bundle install

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