Here is how I did it to install it. Perhaps the previous answers already solve your problem. My step can help people who experience the same thing as me.
Frist, install the latest version of MacPort
>rvm uninstall ree >sudo port install apple-gcc42 >export CC=/opt/local/bin/gcc-apple-4.2 >rvm pkg install zlib openssl readline >rvm install --force ree
Result:
IronB:~ ...$ rvm install --force ree Installing Ruby Enterprise Edition from source to: /Users/.../.rvm/rubies/ree-1.8.7-2011.03 ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03) ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /Users/.../.rvm/src/ree-1.8.7-2011.03 Applying patch 'tcmalloc' (located at /Users/.../.rvm/patches/ree/1.8.7/tcmalloc.patch) Applying patch 'stdout-rouge-fix' (located at /Users/.../.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch) Applying patch 'no_sslv2' (located at /Users/.../.rvm/patches/ree/1.8.7/no_sslv2.diff) ree-1.8.7-2011.03 - #installing Removing old Rubygems files... Installing rubygems-1.8.10 for ree-1.8.7-2011.03 ... Installation of rubygems completed successfully. ree-1.8.7-2011.03 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake). ree-1.8.7-2011.03 - #importing default gemsets (/Users/.../.rvm/gemsets/)
I also put this in my ~ / .rvmrc next time
# Make this work with OS X Lion... for now... if [[ `uname -v` =~ "Darwin Kernel Version 11" ]] ; then export CC=/opt/local/bin/gcc-apple-4.2 fi
Jirapong Dec 03 2018-11-11T00: 00Z
source share