ERROR: Error installing byebug: ERROR: Failed to build gem native extension.

Asked 2 months ago, Updated 2 months ago, 1 views

gem install byebug-v'11.1.3' --source'https://rubygems.org/' and I get the following error:

ERROR:Error installing byebug:
        ERROR—Failed to build gem native extension.

    current directory: /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/byebug-11.1.3/ext/byebug
/home/tarou/.rbenv/versions/2.7.0/bin/ruby-I/home/tarou/.rbenv/versions/2.7.0/lib/ruby/2.7.0-r./siteconf20200607-10292-48tqbx.rbextconf.rb
creating Makefile

current directory: /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/byebug-11.1.3/ext/byebug
make "DESTDIR=" clean

current directory: /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/byebug-11.1.3/ext/byebug
make "DESTDIR="
compiling breakpoint.c
compiling byebug.c
compiling context.c
compiling locker.c
compiling threads.c
linking shared-object byebug/byebug.so

current directory: /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/byebug-11.1.3/ext/byebug
make "DESTDIR=" install
/usr/bin/install-c-m0755 byebug.so./.gem.20200607-10292-1 pvedcx/byebug

Permission denied @rb_file_s_rename - (./.gem.20200607-10292-1 pvedcx/byebug, /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/bybug-11.3.bybug)

Gem files will remain installed in /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/byebug-11.1.3 for inspection.
Results logged to/home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/gem_make.out

I don't know the solution, so please let me know.

Environment
·Windows 10
.ruby 2.7.0
.rails 6.0.3.1

ruby-on-rails

2022-09-30 11:41

1 Answers

in /home/tarou/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/byebug Gem_make.out was successfully installed by granting execution permission.


2022-09-30 11:41

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.