Apparently on my system this is needed to get ruby to be able to find the rugged.so shared object which gets installed in vendor/bundle/ruby/2.0.0/gems/rugged-0.19.0/ext/rugged/rugged.so This was the reason to start with the whole exercise.