wayneeseguin/rvm — Issue #626: Unable to install rubies
Author: rickthomasjr
Created: 2011-12-01 17:51:06+00:00
State: open

I recently started having all sorts of problems with ruby on my mbp, so I decided to get a clean slate. I imploded rvm. Next, I (erroneously) installed xCode 4.2, and obviously had all sorts of problems. I've removed that using this command: sudo /Developer/Library/uninstall-devtools --mode=all.

Then, I installed the version of xcode (4.1) linked in rvm requirements command.

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

Config.log contains (I believe this is the important part):
## ----------- ##
## Core tests. ##
## ----------- ##

configure:2409: checking for a BSD-compatible install
configure:2477: result: /usr/bin/install -c
configure:2488: checking whether build environment is sane
configure:2538: result: yes
configure:2679: checking for a thread-safe mkdir -p
configure:2718: result: config/install-sh -c -d
configure:2731: checking for gawk
configure:2761: result: no
configure:2731: checking for mawk
configure:2761: result: no
configure:2731: checking for nawk
configure:2761: result: no
configure:2731: checking for awk
configure:2747: found /usr/bin/awk
configure:2758: result: awk
configure:2769: checking whether make sets $(MAKE)
configure:2791: result: yes
configure:2947: checking for gcc
configure:2974: result: /usr/bin/gcc-4.2
configure:3203: checking for C compiler version
configure:3212: /usr/bin/gcc-4.2 --version >&5
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3223: $? = 0
configure:3212: /usr/bin/gcc-4.2 -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/gcc/gcc-5666.3~278/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
configure:3223: $? = 0
configure:3212: /usr/bin/gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:3223: $? = 1
configure:3212: /usr/bin/gcc-4.2 -qversion >&5
i686-apple-darwin11-gcc-4.2.1: no input files
configure:3223: $? = 1
configure:3243: checking whether the C compiler works
configure:3265: /usr/bin/gcc-4.2 -isysroot /Developer/SDKs/MacOSX10.7.sdk arch x86_64 -Wl,-syslibroot /Developer/SDKs/MacOSX10.7.sdk arch x86_64 conftest.c >&5
i686-apple-darwin11-gcc-4.2.1: arch: No such file or directory
i686-apple-darwin11-gcc-4.2.1: x86_64: No such file or directory
i686-apple-darwin11-gcc-4.2.1: arch: No such file or directory
i686-apple-darwin11-gcc-4.2.1: x86_64: No such file or directory
configure:3269: $? = 1
configure:3307: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "yaml"
| #define PACKAGE_TARNAME "yaml"
| #define PACKAGE_VERSION "0.1.4"
| #define PACKAGE_STRING "yaml 0.1.4"
| #define PACKAGE_BUGREPORT "http://pyyaml.org/newticket?component=libyaml"
| #define PACKAGE_URL ""
| #define PACKAGE "yaml"
| #define VERSION "0.1.4"
| #define YAML_VERSION_MAJOR 0
| #define YAML_VERSION_MINOR 1
| #define YAML_VERSION_PATCH 4
| #define YAML_VERSION_STRING "0.1.4"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3312: error: in `/Users/rickthomas/.rvm/src/yaml-0.1.4':
configure:3314: error: C compiler cannot create executables
See `config.log' for more details

Please help!