Skip to content

Commit 58ee43b

Browse files
Add description of build failure
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.
1 parent 3353826 commit 58ee43b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

JA/2_mri_structure.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ $ sudo apt-get install git ruby autoconf bison gcc make zlib1g-dev libffi-dev li
7979

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

82+
### 久しぶりに実行したビルドでエラーが起こる場合
83+
84+
以前にRubyを上記の方法でビルドしたことがある場合、 `make` コマンドが失敗する可能性があります。
85+
その場合は、
86+
```
87+
make clean
88+
make distclean
89+
```
90+
を実行してから再度 `make` コマンドを実行してみてください。
91+
8292
## 演習:ビルドした Ruby でプログラムを実行してみよう
8393

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

0 commit comments

Comments
 (0)