Created
October 31, 2011 22:42
-
-
Save huynguyen/1329273 to your computer and use it in GitHub Desktop.
ruby-1.9.3-p0 ruby-debug and rvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Need the latest version so it knows where to get ruby-1.9.3 | |
rvm get head | |
curl -O https://github.com/ruby/ruby/pull/56.diff | |
rvm install ruby-1.9.3-p0 --patch 56.diff | |
cd ~/.rvm/src/ruby-1.9.3-p0 | |
# Need to recompile because rvm doesn't force autoconf? | |
autoconf -f && ./configure --prefix="$HOME/.rvm/rubies/ruby-1.9.3-p0" && make -j3 && make install | |
I just have updated RVM, you should try:
rvm get head && rvm reload
rvm reinstall 1.9.3 --force-autoconf --patch debug -j 3
@mpapis Worked like a charm, thank you sir!
There is a new version of ruby-debug which fixes 1.9.3, no recompilation needed: http://rubyforge.org/frs/?group_id=8883
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yea it's not installed properly, ruby-debug is bombing looking for symbols in the binary.
I ran into the same thing the first time I wrote the gist. I did a quick look through the rvm source and there is an autoconf function defined
scripts/functions/pkg
, but it's not used or is called implicitly somewhere. Maybe it's not doing the -f (force) flag?Yea so to make it work I guess you do need to run the manual process.