$ sudo -u git -H bundle install --deployment --without development test mysql aws kerberos
I got the following error:
Using apollo_upload_server 2.0.0.beta.3
Using health_check 2.6.0
Using gettext_i18n_rails_js 1.3.0
Installing sassc 2.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sassc-2.0.1/ext
/usr/local/bin/ruby -rrubygems /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake RUBYARCHDIR\=/home/git/gitlab/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0-static/sassc-2.0.1
RUBYLIBDIR\=/home/git/gitlab/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0-static/sassc-2.0.1
/usr/local/bin/ruby: No such file or directory -- /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sassc-2.0.1 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0-static/sassc-2.0.1/gem_make.out
An error occurred while installing sassc (2.0.1), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.0.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
sassc-rails was resolved to 2.1.0, which depends on
sassc
I execute with user root the command from the error above:
It succeed but the same issue persist. So it seems my issue is related to rake because it cannot be found in /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake. I checked and rake gem is not installed. So did I missed a step ?
It looks like you’re attempting to follow the install from source guide? You may find it a better experience to install and manage using the OmniBus packages instead.