先安装gem:
$ sudo apt install gem
如果国外的源用不了,换成淘宝的:
$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***
https://ruby.taobao.org
确保只有 ruby.taobao.org
然后就可以放心安装了:
$ sudo gem install gollum
如果缺ruby-dev和zlib也需要安装:
$ sudo apt install ruby-dev zlib1g-dev