How do I recompile a ruby with RVM?

前端 未结 4 1465
挽巷
挽巷 2021-01-31 02:16

I installed Ruby 1.9.3 with RVM, and it works fine. I then made some changes in a ruby C source file, and I want to recompile and re-install it so I can use the changes. I haven

4条回答
  •  抹茶落季
    2021-01-31 03:14

    The problem with using rvm [reinstall|install] is that it will fetch and use precompiled binaries if it can find any. Sometimes, you really want to rebuild from source, probably because you're trying to use a more recent version of GCC (e.g. 4.8 or 4.9).

    The correct flag is --disable-binary, not --force:

    rvm reinstall --disable-binary 2.1
    

提交回复
热议问题