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

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

Closed
mimikq opened this issue Mar 16, 2021 · 1 comment
Closed

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

mimikq opened this issue Mar 16, 2021 · 1 comment

Comments

@mimikq
Copy link

mimikq commented Mar 16, 2021

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

current directory: /home/mimik/spina/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/ext/racc/cparse

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210316-19712-13uk1fy.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 /home/mimik/spina/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2 for inspection.
Results logged to /home/mimik/spina/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/racc-1.5.2/gem_make.out

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

In Gemfile:
rails was resolved to 5.2.4.5, which depends on
actioncable was resolved to 5.2.4.5, which depends on
actionpack was resolved to 5.2.4.5, which depends on
actionview was resolved to 5.2.4.5, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri was resolved to 1.11.2, which depends on
racc
mimik@mimik:/spina$ gem install racc
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.7.0 directory.
mimik@mimik:
/spina$ sudo gem install racc
[sudo] password for mimik:
Building native extensions. This could take a while...
ERROR: Error installing racc:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.7.0/gems/racc-1.5.2/ext/racc/cparse

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20210316-19809-7ptndh.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/2.7.0/gems/racc-1.5.2 for inspection.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/racc-1.5.2/gem_make.out

me new in gem ruby and rails and i dont know how to move on to install spina CMS.

@mimikq
Copy link
Author

mimikq commented Mar 16, 2021

ok it looks like i fix it with : sudo apt-get install ruby-dev

@mimikq mimikq closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant