Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seeing GemWrappers error when doing bundle install

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?

like image 288
Obromios Avatar asked Jun 23 '26 08:06

Obromios


1 Answers

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
 
like image 181
Maxence Avatar answered Jun 25 '26 01:06

Maxence



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!