Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue installing Ruby rvm (error while running configure) [closed]

Tags:

ruby

rvm

ruby-1.9.3-p0 - #configuring 
*ERROR: Error running ' ./configure --prefix=/Users/davedelich/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/davedelich/.rvm/usr ', please read /Users/davedelich/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation.*

SupremeOverlord:~ davedelich$ cat /Users/davedelich/.rvm/log/ruby-1.9.3-p0/configure.log
[2011-12-03 22:09:03]  ./configure --prefix=/Users/davedelich/.rvm/rubies/ruby-1.9.3-p0 --
enable-shared --disable-install-doc --with-libyaml-dir=/Users/davedelich/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml-dir
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking target system type... x86_64-apple-darwin11.2.0
checking whether the C compiler works... no
configure: error: in `/Users/davedelich/.rvm/src/ruby-1.9.3-p0':
configure: error: C compiler cannot create executables
See `config.log' for more details
like image 767
ironmayne Avatar asked Dec 04 '11 03:12

ironmayne


People also ask

Can you use RVM on Windows?

RVM supports most UNIX like systems and Windows (with Cygwin or Bash on Ubuntu on Windows). The basic requirements are bash , curl , gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.

What does RVM stand for ruby?

RVM stands for Ruby Version Manager. It is a command line tool which allows you to easily install, manage and work with different Ruby environments. With RVM, you can easily install different versions of Ruby and easily switch between them.


1 Answers

There is no C compiler installed on your system -- this means that you have to install XCode on your Mac!! It contains all development tools, including the compiler.

check your OSX DVD or memory stick for XCode, or check online at Apple:

http://developer.apple.com/xcode/

http://developer.apple.com/technologies/tools/

http://www.macworld.com/article/46286/2005/08/installxcode.html

http://developer.apple.com/support/xcode/

like image 62
Tilo Avatar answered Nov 15 '22 12:11

Tilo