2

MountainLionを使用してRuby1.9.3-p385を作業用マシンにインストールしようとしています。

RVMをインストールして実行しました

rvm install 1.9.3

しかし、私はこのエラーを受け取ります...

Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p385 --with-opt-dir=/usr/local/rvm/usr --disable-shared', please read /usr/local/rvm/log/ruby-1.9.3-p385/configure.log
There has been an error while running configure. Halting the installation.

これは、エラーが指しているconfigure.logの内容です...

[2013-02-18 10:10:50] ./configure
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/usr/local/rvm/src/ruby-1.9.3-p385':
configure: error: C compiler cannot create executables
See `config.log' for more details

それはすべて私には少し不可解です。誰かが助けることができればそれはありがたいです。

4

2 に答える 2

2

これはrailsinstallerのデフォルト設定に問題があります。この回答を確認してくださいhttps://stackoverflow.com/a/12929017/497756

于 2013-02-17T23:05:09.193 に答える
0

この質問と私の答えを参照してください。

要約すると、MacPortsをインストールして実行します。

sudo port selfupdate
sudo port install gcc-apple42
CC=/opt/local/bin/gcc-apple-4.2 rvm install ruby-1.9.3-p194 --enable-shared --without-tk --without-tcl
于 2013-02-17T21:31:13.880 に答える