Skip to content

Instantly share code, notes, and snippets.

@dplummer
Created June 30, 2011 20:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dplummer/1057203 to your computer and use it in GitHub Desktop.
Save dplummer/1057203 to your computer and use it in GitHub Desktop.
Fix for rvm install 1.8.7 with glibc 2.14
glibc 2.14 breaks the install process for ruby 1.8.7 and ree 1.8.7.
Fix for ruby 1.8.7 install with rvm:
1. Run `rvm install ruby-1.8.7-p334`
2. Wait for it to fail.
3. Fix the broken files with:
cd ~/.rvm/src/ree-1.8.7-2011.03/source/ext/dl
rm callback.func
touch callback.func
ruby mkcallback.rb >> callback.func
rm cbtable.func
touch cbtable.func
ruby mkcbtable.rb >> cbtable.func
4. Re-run `rvm install ree and the ruby files will not be re-extracted, so your changes to callback.func and cbtable.func will persist.
@dplummer
Copy link
Author

The fix for ree requires a patch to rvm too: rvm/rvm#317

@mwolfetech
Copy link

I think instead of the above workaround, this is now solved with this patch: http://redmine.ruby-lang.org/attachments/1931/stdout-rouge-fix.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment