LoginSignup
0
0

More than 5 years have passed since last update.

OctopressをWindows7にインストールしてみたメモ

Last updated at Posted at 2013-08-03

ちょっと興味があったのでOctopressをWindowsにインストールしてみた時のメモ。

Webで情報を探すとき

ブログでOctopressの導入手順を探すとMacの記事が多いので、Google先生に頼るときは「Windows」のキーワードもセットで検索するのがおすすめ。
私は公式サイトのセットアップ手順の他に以下の記事を参考にさせて頂きました。ただし、私はCygwinを使用せず、Ruby Installer for Windowsを使いました。

 bundle install

公式サイトのセットアップ手順を参考に"bundle install"を実行したところ、以下のメッセージが表示されました。

bundle install

Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (0.9.2.2)
Installing RedCloth (4.2.9)
Gem::InstallError: The 'RedCloth' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing RedCloth (4.2.9), and Bundler cannot
continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.

エラーメッセージの手順に従い、DevKitをダウンロードします。
私はhttp://rubyforge.org/frs/download.php/76808/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exeをダウンロードしました。
ダウンロードが完了したら、ファイルを実行します。自己解凍のファイルなので、沢山ファイルが展開されます。
解凍が完了したら再びエラーメッセージに従い、以下のWebページにアクセスします。

”Quick Start”の手順をみると、

“ruby dk.rb init” and “ruby dk.rb install”

のように記載されているので、先ほどDevKitを解凍したフォルダに移動してコマンドを実行します。

ruby dk.rb init

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.

ruby dk.rb install

[INFO] Installing 'C:/Ruby200-x64/lib/ruby/site_ruby/2.0.0/rubygems/defaults/ope
rating_system.rb'
[INFO] Installing 'C:/Ruby200-x64/lib/ruby/site_ruby/devkit.rb'
bundle install

Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (0.9.2.2)
Installing RedCloth (4.2.9)
Installing chunky_png (1.2.5)
Installing fast-stemmer (1.0.1)
Installing classifier (1.3.3)
Installing fssm (0.2.9)
Installing sass (3.2.9)
Using compass (0.12.2)
Installing directory_watcher (1.4.1)
Installing haml (3.1.7)
Installing kramdown (0.13.8)
Installing liquid (2.3.0)
Installing syntax (1.0.0)
Installing maruku (0.6.1)
Installing posix-spawn (0.3.6)
Installing yajl-ruby (1.1.0)
Installing pygments.rb (0.3.4)
Installing jekyll (0.12.0)
Installing rack (1.5.2)
Installing rack-protection (1.5.0)
Installing rb-fsevent (0.9.1)
Installing rdiscount (2.0.7.3)
Installing rubypants (0.2.0)
Installing sass-globbing (1.0.0)
Installing tilt (1.3.7)
Installing sinatra (1.4.2)
Installing stringex (1.4.0)
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.

どうやら成功しました。

面白かったけど実際使うかどうかは……

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0