Pages

Wednesday, 18 April 2012

在vps上编译ruby,然后安装gollum

(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,这里我新建一个示例仓库 :
# git init mywiki
# cd mywiki
# nohup /usr/local/ruby/bin/gollum &
然后访问 http://your-vps-ip:4567 即可访问 gollum 托管的 Wiki。 
示例: http://as3.brite.biz:4567/pages ,发表中文好像有编码问题。


参考

------------------------------------------------
First - install Ruby as explained here: http://www.ruby-lang.org/en/downloads/
Then check the ruby version
ruby -v
Then install rails :
# gem install rails
 
http://www.ruby-lang.org/en/libraries/, http://www.ruby-lang.org/en/downloads/ 好好读读此
二文。