postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

How do I install from a git url? #371

Closed NullVoxPopuli closed 7 years ago

NullVoxPopuli commented 7 years ago

I want to test out the depotimization code: https://github.com/shyouhei/ruby/tree/deoptimization

how do I tell chruby to use this code?

I've tried downloading the code, and compiling, installing, and adding the path to RUBIES, but there was an error re: rubygems.rb. I'm new to compiling ruby manually, so It's totally possible I messed something up.

skull-squadron commented 7 years ago

Just Install it manually like a regular Ruby to /opt/rubies/deopt-head or something, and open a new shell. Probably want

ruby-install -u https://github.com/shyouhei/ruby/archive/deoptimization.tar.gz ... -- ...
postmodern commented 7 years ago

You could also compile it manually:

./configure --prefix="$HOME/.rubies/ruby-deoptimized"
make
make install