May 20, 2015

Windows下安装Jekyll

安装Ruby/DevKit 首先从 http://rubyinstaller.org/downloads/ 下载以下两个文件进行安装 rubyinstaller-1.9.3-p194.exe DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Ruby安装在D:\Ruby200, DevKit安装在D:\rubydevkit 打开CMD进入到DevKit目录,开始初始化安装 D:\rubydevkit>ruby dk.rb init [INFO] found RubyInstaller v2.0.0 at d:/Ruby200 Initialization complete! Please review and modify the auto-generated 'config.yml' file to ensure it contains the root directories to all of the installed Rubies you want enhanced by the DevKit. D:\rubydevkit>ruby dk.rb install [INFO] Updating convenience notice gem override for 'd:/Ruby200' [INFO] Installing 'd:/Ruby200/lib/ruby/site_ruby/devkit.rb' 替换Gem源 天朝网路可能会引起gem安装失败,建议更换为ruby.taobao,org源 $gem sources -r http://rubygems. Read more

September 21, 2013

Windows下Jekyll乱码问题

在Ruby目录中搜索convertible.rb,找到大概27行如下内容: self.content = File.read(File.join(base, name)) 替换为 self.content = File.read(File.join(base, name), :encoding => 'utf-8') 在windows环境变量中,添加以下两个环境变量 LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8

September 6, 2013

Debian下安装Jekyll

安装Rvm $sudo aptitude install curl $curl -L get.rvm.io | bash -s stable 加载Rvm $source ~/.rvm/scripts/rvm 检查安装必备组件 $rvm requirements 安装 Ruby 1.9.3 $rvm install 1.9.3 $ruby -v $gem -v 更改Gem软件源 $gem sources -a http://ruby.taobao.org/ $gem sources -r http://rubygems.org/ $gem sources -l 安装Jekyll $gem install jekyll $jekyll -v 打完收工!

© unixetc.com 2012 - 2019
README