新しい Mac に Ruby をインストールしようとしていますが、いくつか問題が発生しています。
主なエラーは次のとおりです。
Right now Ruby requires gcc to compile, but Xcode 4.2 and later no longer ship with gcc.
Instead they ship with llvm-gcc (to which gcc is a symlink) and clang, neither of which are
supported for building Ruby. Xcode 4.1 was the last version to ship gcc, which was
/usr/bin/gcc-4.2.
この投稿のアドバイスを使用してエラーを解決しようとしました"シンボリックリンクエラーのため Mac OSX 10.8.1 に ruby-1.9.2 をインストールできません" が、homebrew 経由で gcc をインストールした後でも、前述のエラーが発生します。
と入力するとgcc - v
、次のメッセージが表示されます。
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
最後に、/usr/bin フォルダーを確認したところ、約 104KB の gcc-4.2 unix 実行可能ファイルが見つかりました。これは私が持つべきものですか?