New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`rvm get head` didnt work for installing ruby 1.9.3 #577

Closed
luckydev opened this Issue Nov 7, 2011 · 4 comments

Comments

Projects
None yet
4 participants
@luckydev
Copy link

luckydev commented Nov 7, 2011

I use OSX lion and XCode 4.2.
I cannot downgrade to XCode 4.1 coz I have iOS development requirements with it. I looked at a previous issue #399. The solution proposed there didn't work for me.

$ gcc
i686-apple-darwin11-llvm-gcc-4.2: no input files

$ gcc-4.2
-bash: gcc-4.2: command not found

$ rvm get head
$ rvm reload
$ rvm install 1.9.3

The installation failed.

Here is the trace.

ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/Anand/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/Anand/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Anand/.rvm/src
Configuring yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/Anand/.rvm/usr
ruby-1.9.3-p0 - #configuring
ERROR: Error running ' ./configure --prefix=/Users/Anand/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/Anand/.rvm/usr ', please read /Users/Anand/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation.

$ rvm install 1.9.3 --with-gcc=clang
Installing Ruby from source to: /Users/Anand/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/Anand/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/Anand/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Anand/.rvm/src
Configuring yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/Anand/.rvm/usr
ruby-1.9.3-p0 - #configuring
ruby-1.9.3-p0 - #compiling
ERROR: Error running 'make ', please read /Users/Anand/.rvm/log/ruby-1.9.3-p0/make.log
ERROR: There has been an error while running make. Halting the installation.

@ddd

This comment has been minimized.

Copy link
Contributor

ddd commented Nov 7, 2011

Please run with rvm install 1.9.3 --skip-autoreconf

You can also add rvm_skip_autoreconf_flag=1 to your $HOME/.rvmrc

Closing this ticket as this is a known issue that has been previously solved.

@ddd ddd closed this Nov 7, 2011

@luckydev

This comment has been minimized.

Copy link

luckydev commented Nov 7, 2011

Same error happens again

$ rvm install 1.9.3 --skip-autoreconf
Installing Ruby from source to: /Users/Anand/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching
ruby-1.9.3-p0 - #extracted to /Users/Anand/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/Anand/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/Anand/.rvm/src
Configuring yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/Anand/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/Anand/.rvm/usr
ruby-1.9.3-p0 - #configuring
ERROR: Error running ' ./configure --prefix=/Users/Anand/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/Anand/.rvm/usr ', please read /Users/Anand/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation.

@mpapis

This comment has been minimized.

Copy link
Member

mpapis commented Nov 7, 2011

if you really want to use clang (we had only rare reports of clang compiled ruby to be working) you need to reinstall:

rvm reinstall 1.9.3 --with-gcc=clang

the proffered way would be to download https://github.com/kennethreitz/osx-gcc-installer and reinstall with:

rvm reinstall 1.9.3

rvm should now detect that you have gcc-4.2 and use it for in stallation

@jrep

This comment has been minimized.

Copy link
Contributor

jrep commented Nov 7, 2011

Just a note, which will probably seem obvious to some: to get this to work I actually had to do
rvm get head
rvm reload
rvm install ...

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