美文网首页
安装gollum

安装gollum

作者: 风小钻 | 来源:发表于2018-01-25 09:24 被阅读0次

安装gollum

1.安装命令

gem install gollum

1)如果有错误,按照提示,会有brew install icu4c or 的提示,所以之后再运行命令

brew install icu4c,然后再运行gollum安装命令

2)如果还有错误,若提示

Building native extensions.  This could take a while...
ERROR:  Error installing gollum:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180111-37826-uqvu55.rb extconf.rb
checking for main() in -licui18n... no
checking for main() in -licui18n... yes
checking for unicode/ucnv.h... yes
checking for main() in -lz... yes
checking for main() in -licuuc... yes
checking for main() in -licudata... yes
creating Makefile

current directory: /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
make "DESTDIR=" clean
......

则需要安装charlock_holmes,命令如下

sudo gem install charlock_holmes -- --with-icu-dir=/usr/local/opt/icu4c --with-cxxflags=\'-Wno-reserved-user-defined-literal -std=c++11\'
Building native extensions with: '--with-icu-dir=/usr/local/opt/icu4c --with-cxxflags='-Wno-reserved-user-defined-literal -std=c++11''

然后再安装gollum即可

参考:

https://github.com/gollum/gollum/issues/1257

https://github.com/brianmario/charlock_holmes/issues/122

2.克隆wiki工程到本地

git clone git@**.wiki.git
cd **.wiki

3.输入gollum命令,可见控制台输出如下:

gollum
[2018-01-11 19:44:29] INFO  WEBrick 1.3.1
[2018-01-11 19:44:29] INFO  ruby 2.3.3 (2016-11-21) [universal.x86_64-darwin17]
== Sinatra (v1.4.8) has taken the stage on 4567 for development with backup from WEBrick
[2018-01-11 19:44:29] INFO  WEBrick::HTTPServer#start: pid=38633 port=4567

4.在浏览器中输入http://localhost:4567/Home即可

相关文章

  • 安装gollum

    安装gollum 1.安装命令 gem install gollum 1)如果有错误,按照提示,会有brew in...

  • 安装Gollum

    sudo gem gollum 一直报错: $gem install gollum ERROR: Could no...

  • gollum安装教程

    gollum 在线markdown编辑器,可以直接将该程序安装在服务器上,直接编辑完之后保存在gollum目录下 ...

  • gollum安装笔记

    安装 我是ubuntu平台,其他平台请参考官方安装文档 gem的官方源被和谐了,需要先切换到淘宝源,请参考为gem...

  • Git+Gollum

    git 和gollum结合,轻松实现wiki编辑系统 Install Gollum Install github-...

  • Ubuntu 16.04 LTS 安装gollum

    先安装gem 如果国外的源用不了,换成淘宝的 确保只有 ruby.taobao.org 然后就可以放心安装了 如果...

  • gollum:给wiki插上git的翅膀

    gollum 是github的使用的一个基于markdown的 wiki系统的构造工具,简单实用。gollum直接...

  • [Github-干货]-持续更新

    gollum: 是github的使用的一个基于markdown的 wiki系统。 最重要的是gollum直接和gi...

  • Gollum → Gunnm

  • The real me.

    The real me. The Hobbit Gollum -- My Precious The Seven d...

网友评论

      本文标题:安装gollum

      本文链接:https://www.haomeiwen.com/subject/fbvmaxtx.html