Skip to content

Commit

Permalink
Add description of build failure
Browse files Browse the repository at this point in the history
I stumbled upon the issue where I built Ruby several months ago
and the build failed due to old things generated by the old build.
It's resolved by `make clean && make distclean` so I found it helpful
for some people.
  • Loading branch information
okuramasafumi authored Sep 8, 2020
1 parent 3353826 commit 58ee43b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions JA/2_mri_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ $ sudo apt-get install git ruby autoconf bison gcc make zlib1g-dev libffi-dev li

なお、この 2 回の `make` については、`make all install` とすると、1回の呼び出しで終わります。

### 久しぶりに実行したビルドでエラーが起こる場合

以前にRubyを上記の方法でビルドしたことがある場合、 `make` コマンドが失敗する可能性があります。
その場合は、
```
make clean
make distclean
```
を実行してから再度 `make` コマンドを実行してみてください。

## 演習:ビルドした Ruby でプログラムを実行してみよう

ビルドした Ruby で実際に Ruby スクリプトを実行する方法はいくつかあります。
Expand Down

0 comments on commit 58ee43b

Please sign in to comment.