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

Add new post #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
45 changes: 45 additions & 0 deletions _posts/2014-05-03-reading-yamanetoshi.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
### [yamanetoshi](https://github.com/RHGReadingOkinawa/rhgreadingokinawa.github.com/issues/6)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Front-matterが抜けてて、レイアウトがあたってないようです。
レイアウトあたらないと<meta charset="utf-8">タグが入らないので、手元で確認したところ文字化けしてしまいました 🙈


#### 環境設定について

とりあえずソースを入手。Git リポジトリに 1.7.3 が含まれていると嬉しいのですが。

$ git clone https://github.com/ruby/ruby

git tag 見てみるに

v1_6_8
v1_7_1
v1_8_0

とのこと。[「Rubyソースコード完全解説」を読む(1)](http://rubyist.g.hatena.ne.jp/muscovyduck/20071109/p1) によると

- [http://i.loveruby.net/ja/rhg/ar/ruby-rhg.tar.gz](http://i.loveruby.net/ja/rhg/ar/ruby-rhg.tar.gz)

から入手可能とのことで wget で入手。

$ wget http://i.loveruby.net/ja/rhg/ar/ruby-rhg.tar.gz

展開。

$ tar zxvf ruby-rhg.tar.gz
$ cd ruby-rhg

一応コンパイルしておいて

$ ./configure
$ make

一応 make は正常終了しているようです。

make[1]: Leaving directory `/home/rms/tmp/RHG/ruby-rhg/ext/digest/rmd160'
make[1]: Entering directory `/home/rms/tmp/RHG/ruby-rhg'
gcc -g -O2 -rdynamic main.o libruby.a -ldl -lcrypt -lm -o ruby
make[1]: Leaving directory `/home/rms/tmp/RHG/ruby-rhg'


タグを作成。

$ gtags -v

これで準備完了でしょうか。make したのは一応 make しないと作成されないファイルがあるかも、という配慮によります。必要かどうかは不明です。