(http://ftp.ruby-lang.org/pub/ruby/2.6/)
# wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
# tar zxvf ruby-1.9.3-p125.tar.gz
# cd ruby-1.9.3-p125
# ./configure --prefix=/usr/local/ruby
# make
# make install
# ln -s /usr/local/ruby/bin/ruby /usr/bin/ruby
# ln -s /usr/local/ruby/bin/gem /usr/bin/gem
# apt-get install libxml2-dev libxslt-dev
(yum install libxml2-devel libxslt-devel)
# gem install redcarpet --version=1.17.2
# gem install gollum
如此即安装完成gollum,这里我新建一个示例仓库 :
# wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
# tar zxvf ruby-1.9.3-p125.tar.gz
# cd ruby-1.9.3-p125
# ./configure --prefix=/usr/local/ruby
# make
# make install
# ln -s /usr/local/ruby/bin/ruby /usr/bin/ruby
# ln -s /usr/local/ruby/bin/gem /usr/bin/gem
# apt-get install libxml2-dev libxslt-dev
(yum install libxml2-devel libxslt-devel)
# gem install redcarpet --version=1.17.2
# gem install gollum
如此即安装完成gollum,这里我新建一个示例仓库 :
# git init mywiki # cd mywiki # nohup /usr/local/ruby/bin/gollum &
然后访问 http://your-vps-ip:4567
即可访问 gollum 托管的 Wiki。
示例: http://as3.brite.biz:4567/pages ,发表中文好像有编码问题。
参考
- 用Gollum搭建基于Git的Wiki
- Stackoverflow : Gollum Wiki - undefined method `new' for Redcarpet:Module
- 静态站点生成 : gollum-site
- Gollum Git Based Wiki
- https://github.com/github/gollum
- https://github.com/saberma/gollum (这是一个国人fork的gollum)
First - install Ruby as explained here: http://www.ruby-lang.org/en/downloads/
Then check the ruby version
Then install rails :
Then check the ruby version
ruby -v
# gem install rails
http://www.ruby-lang.org/en/libraries/,
http://www.ruby-lang.org/en/downloads/ 好好读读此
二文。