Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed bitnami gitlab, and then I was trying to update some packages to install compass and sass. I think I have broken gitlab now. Seems I have the wring version of ruby.

Most of it seems ok, but when I try to push changes, I get...

POST git-receive-pack (903 bytes)

remote: /opt/bitnami/ruby/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb:7: ruby lib version (1.9.3) doesn't match executable version (1.8.7) (RuntimeError)
remote:     from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:31:in `require'
remote:     from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/rubygems.rb:31
remote:     from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/ubygems.rb:10:in `require'

remote:     from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/ubygems.rb:10
remote: error: hook declined to update refs/heads/master

What can I do to get my bitnami gitlab to accept pushes once more?

share|improve this question

1 Answer 1

This worled for me...

From here: http://leonard.io/blog/2012/05/installing-ruby-1-9-3-on-ubuntu-12-04-precise-pengolin/

sudo apt-get update

sudo apt-get install ruby1.9.1 ruby1.9.1-dev \
  rubygems1.9.1 irb1.9.1 ri1.9.1 rdoc1.9.1 \
  build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev

sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 400 \
         --slave   /usr/share/man/man1/ruby.1.gz ruby.1.gz \
                        /usr/share/man/man1/ruby1.9.1.1.gz \
        --slave   /usr/bin/ri ri /usr/bin/ri1.9.1 \
        --slave   /usr/bin/irb irb /usr/bin/irb1.9.1 \
        --slave   /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1

# choose your interpreter
# changes symlinks for /usr/bin/ruby , /usr/bin/gem
# /usr/bin/irb, /usr/bin/ri and man (1) ruby
sudo update-alternatives --config ruby
sudo update-alternatives --config gem

# now try
ruby --version
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.