I just ran in the same issue. Here is what I did (maybe too overkill but I’m not an expert ^^)
- Install rbenv and ruby-build :
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
- Install a new version of ruby :
rbenv install 3.2.2
rbenv global 3.2.2
-
Install the correct bundler version
gem install bundler:2.4.13 -
As I had some permissions issues using “bundle install”, I needed to temporary fix that with :
sudo chmod -R 777 /home/boris/.bundle -
bundle install
Hope it helps