ko1 / rubyhackchallenge

464 stars 83 forks source link

Add an instruction to rebuild ruby command #81

Closed genya0407 closed 10 months ago

genya0407 commented 2 years ago

If we follow the current instructions, we get NoMethodError: undefined method second for [1,2,3]:Array. It seems we need to execute make install before make test-all.

Without make install, build/ruby are still old even if we execute make -j. I think it's because build/ruby loads install/lib/libruby.3.2.dylib (in macOS), and make -j does not update it.

ko1 commented 10 months ago

気づいていなくてすみません。

make test-all (および make run, make run-ruby など) はビルドしたものを使うので不要です。 NoMethodError が出るのは、ビルドした ruby をそのまま使ってはいないでしょうか。 そのあたりの詳細を記述するのはいいと思いますが、ここでは test-all してみましょう、ということですので、それで進めたいと思います。