–prefix=/Users/darth/.rvm/rubies/ruby-1.9.3-p0 --enable-shared
–disable-install-doc --with-libyaml-dir=/Users/darth/.rvm/usr ', please
read /Users/darth/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the
installation.
–prefix=/Users/darth/.rvm/rubies/ruby-1.9.3-p0 --enable-shared
–disable-install-doc --with-libyaml-dir=/Users/darth/.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/darth/.rvm/src/ruby-1.9.3-p0': configure: error: C compiler cannot create executables Seeconfig.log’ for more details
It looks like 1.9.3 doesn’t like my C compiler, but I have no idea why.
Could this be caused by wrong version of Xcode? I’m running on 4.2
(4D199) on OS X Lion.
It looks like 1.9.3 doesn’t like my C compiler, but I have no idea why.
Could this be caused by wrong version of Xcode? I’m running on 4.2
(4D199) on OS X Lion.
Well, on Snow Leopard I have 7 flavours of C compiler to choose from
with
Xcode 3. Try passing a flag at ./configure & see which one Lion deems
fit
for purpose (I’ve installed 1.9.3 via rvm so I don’t reckon it’s that).
I struggled with this also. I eventually just resorted to installing
osx-gcc-installer over the top of Xcode 4.2 which seems to have worked.
All the other work arounds like --with-gcc=clang didn’t work for me.
I struggled with this also. I eventually just resorted to installing
osx-gcc-installer over the top of Xcode 4.2 which seems to have worked.
All the other work arounds like --with-gcc=clang didn’t work for me.
The problem wasn’t with clang, but with a buggy version of autoconf. It
is fixed now so I’d recommend against your workaround.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.