Chinaunix首页 | 论坛 | 博客
  • 博客访问: 733598
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-01-24 16:51:41

1. Requirements

  1. $ sudo apt-get install ruby ruby-dev build-essential

  1. # It is best to avoid installing Ruby Gems as the root user.
  2. # Therefore, we need to set up a gem installation directory for your user account.

  3. # The following commands will add environment variables
  4. # to your ~/.bashrc file
  5. # to configure the gem installation path.
  6. # Run them now:

  7. $ echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
  8. $ echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
  9. $ echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
  10. $ source ~/.bashrc


2. Install with RubyGems

  1. $ gem install jekyll bundler # 用bundler 管理 gem 安装及依赖
  2. ...
  3. Fetching: listen-3.0.8.gem (100%)
  4. listen's executable "listen" conflicts with sass-listen
    Overwrite the executable? [yN]  y
    Successfully installed listen-3.0.8
    ...


3. Quick-start

  1. $ mkdir jekyll; cd $_
    $ jekyll new myblog; cd $_
    $ bundle exec jekyll serve


4. Upgrade Jekyll

  1. # To find the currently installed version of Jekyll,
  2. # run one of these commands:

  3. $ jekyll --version
  4. $ gem list jekyll


  1. # You can use RubyGems to find the current version of Jekyll.
  2. # Another way to check if you have the latest version is
  3. # to run the command

  4. $ gem outdated

  5. # This will provide a list of all the gems on your system that need to be updated.


  1. # If you aren’t running the latest version, run this command:

  2. $ bundle update jekyll


  3. # Alternatively, if you don’t have Bundler installed run:

  4. $ gem update jekyll


  5. # To upgrade to latest Rubygems, run:

  6. $ sudo gem update --system




5. Reserved for future use...

6. Reserved for future use...

7. Reserved for future use...

8. Reserved for future use...

9. Reserved for future use...

10. Reserved for future use...

Reference: 
阅读(1125) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~