Seeing GemWrappers error when doing bundle install
Asked Answered
Z

1

5

Doing bundle install using rails 6.1.5.11 and ruby 2.7.6, I keeping seeing a GemWrappers error after installing each gem e.g.

    Fetching sprockets 4.0.3
    Installing sprockets 4.0.3
    GemWrappers: Can not wrap not executable file: rake
    Fetching sprockets-rails 3.4.2
    Installing sprockets-rails 3.4.2
    GemWrappers: Can not wrap not executable file: rake

The bundle install works, but how do I eliminate this error/warning?

Zebe answered 9/7, 2022 at 14:38 Comment(0)
O
8

Gem gem-wrappers is not actively maintained it seems. Last update was in 2017. As per Rubygems it relies on rake < 11.

https://rubygems.org/gems/gem-wrappers

Although Rails 6.1.5.1 installs rake 13.0.6

https://rubygems.org/gems/rails/versions/6.1.5.1

so if you have gem-wrappers as a dependency, try removing it.

If gem-wrappers is not in your Gemfile and you do not need it, try:

gem uninstall gem-wrappers
 
Obsession answered 10/7, 2022 at 9:42 Comment(6)
i have the same problem, after update at ruby-3.3.5 and i never install gem-wrappersCestode
@Cestode same here. bundle worked but I get that error and no gem-wrappersFinedrawn
rvm repair wrappers fixed the issue for meCullis
This worked for me: gem uninstall -i /Users/richard/.rvm/rubies/ruby-3.3.5/lib/ruby/gems/3.3.0 gem-wrappersSharla
I made this answer a long time ago mostly based on gemwrappers being obsolete. It it popping up again, and seems linked to Ruby 3.4.0 through RVM. Please don't consider this answer as a solution. I have never used gemwrappers and I have no clue why it is being used today or appear anywhere. Especially it is 7 years old.Obsession
gem uninstall -i /usr/share/rvm/rubies/ruby-3.3.5/lib/ruby/gems/3.3.0 gem-wrappers did the trick for the Linux installation. Thank you @BeerMeDupont

© 2022 - 2024 — McMap. All rights reserved.