Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl環境の構築方法を追記した #79

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,45 @@ markdown2inao.pl 改め md2inao.pl のこれまでについては https://gist.g

### CUI版

CPANからインストール
#### CPANからインストールして使う場合

% cpanm Text::Md2Inao
% md2inao.pl your_markdown.md > path/to/output.txt


リポジトリからインストール
#### リポジトリからインストールして使う場合

% cpanm Carton
% carton
% carton exec -- perl bin/md2inao.pl your_markdown.md > path/to/output.txt

cpanmは以下のコマンドでインストールできます
#### 参考:Perl環境の構築

##### Perlのインストール(Perlbrew)

% curl -kL http://install.perlbrew.pl | bash
% perlbrew init
% perlbrew install 5.18.2(使いたいバージョン)
% perlbrew switch 5.18.2

zshで使う場合は、上記`perlbrew init`の前に、`~/.zshrc`に以下の1行を追記し、

source $HOME/perl5/perlbrew/etc/bashrc

以下のコマンドを実行してください。

% source ~/.zshrc

##### cpanmのインストール

・Perlbrewなどローカルperlで使う場合
% curl -L http://cpanmin.us | perl - App::cpanminus
・★○○の場合★
% curl -L http://cpanmin.us > ~/bin/cpanm && chmod +x ~/cpanm

##### 参考文献
* 『[Perl徹底攻略](http://gihyo.jp/magazine/wdpress/plus/978-4-7741-5864-8)』(技術評論社)pp.8-9、pp.25-26
* [perlbrewコマンドをzshで使えるようにする - eratostennis's blog](http://eratostennis.hatenablog.com/entry/2014/01/21/215640)

### Web版

- http://md2inao.bloghackers.net/
Expand Down