Cannot Install Ruby Enterprise Edition with RVM on OSX Lion

Here is what I have done so far.

  • Clean installation of OS X Lion
  • Download and install the latest version of Xcode from the App Store.
  • Installed Git
  • Installed Homebrew
  • Installed RVM

Now I'm trying to install Ruby Enterprise Edition for a project with rvm install ree and get the following error:

 $ rvm install ree ree-1.8.7-2011.03 - #installing ERROR: Error running './installer -a /Users/FaraazKhan/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems ', please read /Users/FaraazKhan/.rvm/log/ree-1.8.7-2011.03/install.log ERROR: There has been an error while trying to run the ree installer. Halting the installation. 

I already tried CC=/usr/bin/gcc-4.2 rvm install ree and with the same result.

+44
ruby osx-lion rvm macos ruby-enterprise-edition
Jul 24 2018-11-11T00:
source share
8 answers

I was able to repeat your mistake, only now. This solved it for me:

$ rvm remove ree
$ export CC = / usr / bin / gcc-4.2
$ rvm install --force ree

+85
Jul 24. '11 at 1:27
source share

Using MacPorts, you can install Ruby Enterprise Edition as well as Ruby 1.9.2 for a local user on OS X Lion, having Xcode 4.2 installed using the "Apple version of gcc 4.2."

Prerequisites:

  • OS X Lion (verified in 10.7.2)
  • Xcode 4.2
  • rvm 1.9.1
  • MacPorts 2.0.3

Run the following commands:

$ sudo port install apple-gcc42

$ export CC = / opt / local / bin / gcc-apple-42

then

$ rvm install ree

$ rvm use ree

or

$ rvm install 1.9.2

$ rvm use 1.9.2

not necessary

$ rvm use ree --default

or

$ rvm use 1.9.2 --default

Hope this helps.

-Joe

+4
Oct 30 2018-11-11T00:
source share

There is no need to install MacPorts or downgrade to 4.1 to get GCC, I used the installation package https://github.com/kennethreitz/osx-gcc-installer with xCode 4.2 already installed, and there were no problems installing 1.9.2-head and 1.9 .2-p290.

+4
Dec 02 '11 at 6:27
source share

Please DO NOT use sudo with RVM, and you do not need to use rvmsudo EXCEPT to update RVM itself. See and read https://rvm.io/support/faq/ (I need to use sudo to record gems) and https://rvm.io/support/troubleshooting/ (multi-user installations - using the sudo command command)

Please delete the current installation and start with it, since using sudo will certainly ruin the permissions structure for RVM. Please see the very bottom of https://rvm.io/support/troubleshooting/ (How to completely clear all RVM traces from my system, including for installation on the system?)

Then, start again strictly after the multi-user installation segment https://rvm.io/rvm/install/

Thank.

+2
Oct 09 '11 at 17:30
source share

I did something similar to what jbg advised. Only I did not use MacPorts. I just used the latest GCC package for Lion here .

This was after we spent about a day and a half trying to fulfill all the other proposals, dropping to Xcode 4.1, etc., but to no avail.

By the way, a direct link to Xcode 4.1 on the Apple website gave me the wrong checksum error, which I downloaded three times. I saw a Twitter post from someone else who had the same issue.

+2
Nov 01 '11 at 18:38
source share

At the risk of redundancy, I will also post my answer, since I tried everything on this page (and many others), and eventually a hybrid of some of them appeared that seemed to work most likely. Note that some of these steps may not have been explicitly necessary, but they were sufficient (i.e. I didn’t go back and removed the potentially unnecessary steps to get the simplest path to success).

Environment: Mac OS Lion 10.7.3, Homebrew components, rvm 1.10.2, ree 1.8.7-2012.01, Xcode 4.2.1 with legacy gcc-4.2 available.

Steps:

  • Make sure stable Ruby is current. Used 1.9.2 (using rvm 1.9.2), since problem 1.9.3 was a potential problem.
  • rm -fr $ rvm_path / usr
  • rvm pkg install ree_dependencies
  • rvm remove ree
  • export CC = / usr / bin / gcc-4.2
  • rvm install ree \ --with-openssl-dir = $ rvm_path / usr \ --with-readline-dir = $ rvm_path / usr \ --with-iconv-dir = $ rvm_path / usr \ --with-zlib-dir = $ rvm_path / usr

I previously tried brew-specific solutions, but this did not work for me. Hope this helps someone!

+2
Feb 16 '12 at 23:30
source share

If you are on Lion 10.7.2 and installed Xcode 4.2, you need to downgrade Xcode to 4.1

Here's how I did it (it was harder than you might think):

  • Download Xcode 4.1 from the Apple Dev Center (you will need to log in with your Dev Center credit centers)
  • uninstall Xcode 4.2

    $ sudo /Developer/Library/uninstall-devtools --mode=all

  • remove the Xcode installer from the /Applications directory

  • run the downloaded Xcode 4.1 package, this will install the new Xcode installer in /Applications
  • run the Xcode installer in /Applications
  • When it stops asking you to exit iTunes, you need to exit iTunes and also use Activity Monitor to force exit iTunes Helper
  • Wait for Xcode 4.1 to install
  • Use the steps above to install ree

Cheers, Ian

+1
Oct 26 '11 at 9:55
source share

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 
+1
Dec 03 2018-11-11T00:
source share



All Articles