$ export GEM_HOME=$HOME/env
$ sudo apt install ruby ruby-bundler ruby-dev build-essential
$ git clone https://github.com/akretion/shopinvader-deploy -b odoo-10-update
$ cd shopinvader-deploy/shopinvader
$ bundle install --without development
Fetching gem metadata from https://rubygems.org/.........
Using rake 12.3.1
Using RedCloth 4.3.2
Using concurrent-ruby 1.0.5
Using i18n 1.0.1
[...]
Using faraday 0.14.0
Using flash_cookie_session 1.1.6
Fetching sassc 1.11.4
Installing sassc 1.11.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/locomotivecms/env/gems/sassc-1.11.4/ext
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR=/home/locomotivecms/env/extensions/x86_64-linux/2.5.0/sassc-1.11.4
RUBYLIBDIR=/home/locomotivecms/env/extensions/x86_64-linux/2.5.0/sassc-1.11.4
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /home/locomotivecms/env/gems/sassc-1.11.4 for inspection.
Results logged to /home/locomotivecms/env/extensions/x86_64-linux/2.5.0/sassc-1.11.4/gem_make.out
An error occurred while installing sassc (1.11.4), and Bundler cannot continue.
Make sure that `gem install sassc -v '1.11.4'` succeeds before bundling.
In Gemfile:
locomotivecms was resolved to 3.4.0.rc1, which depends on
font-awesome-sass was resolved to 5.0.13, which depends on
sassc
export rake=/usr/bin/rake
fixes this.