備忘録..

$ rbenv install 1.9.3-rc1

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1

Downloading yaml-0.1.4.tar.gz...

-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b

Installing yaml-0.1.4...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20131031113021.62319

Results logged to /tmp/ruby-build.20131031113021.62319.log

Last 10 log lines:

checking for gawk... no

checking for mawk... no

checking for nawk... no

checking for awk... awk

checking whether make sets $(MAKE)... yes

checking for gcc... /usr/local/bin/gcc-4.2

checking whether the C compiler works... no

configure: error: in `/tmp/ruby-build.20131031113021.62319/yaml-0.1.4:

configure: error: C compiler cannot create executables

See `config.log for more details

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20131031113021.62319

Results logged to /tmp/ruby-build.20131031113021.62319.log

Last 10 log lines:

checking for mawk... no

checking for nawk... no

checking for awk... awk

checking whether make sets $(MAKE)... yes

checking for gcc... /usr/local/bin/gcc-4.2

checking whether the C compiler works... no

configure: error: in `/tmp/ruby-build.20131031113021.62319/yaml-0.1.4:

configure: error: C compiler cannot create executables

See `config.log for more details

make: *** No targets specified and no makefile found. Stop.

どうやら mavericks用の command line tools があるようなのでインストールする(要デベロッパーID)

https://developer.apple.com/downloads/index.action

コマンドラインツールをインストールしたあと色々やったけど覚えてないので brew list と CONFIGURE_OPTS のせておきます

$ brew list

apple-gcc42 freetype jpeg libksba libtool openssl rbenv ruby-build

autoconf imagemagick libgpg-error libpng mysql pkg-config readline

CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl` --with-gcc=clang" rbenv install 1.9.3-rc1

これでうまくいった