简体   繁体   English

为什么在安装 Ruby 1.9.3 时出现配置错误?

[英]Why do I get a configure error when installing Ruby 1.9.3?

Anyone have an idea as to what this error means?任何人都知道这个错误意味着什么? I'm attempting to install Ruby 1.9.3我正在尝试安装 Ruby 1.9.3

Error running ' ./configure --prefix=/Users/coreycallahan/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/coreycallahan/.rvm/usr ', please read /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log
There has been an error while running configure. Halting the installation.

$ cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log

[2012-04-10 11:10:33]  ./configure --prefix=/Users/coreycallahan/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/coreycallahan/.rvm/usr 
configure: WARNING: unrecognized options: --with-libyaml
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking target system type... i386-apple-darwin11.3.0
checking whether the C compiler works... no
configure: error: in `/Users/coreycallahan/.rvm/src/ruby-1.9.3-p125':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: C compiler cannot create executables

Do you have permission to write in the directory where you're compiling?您是否有权在您正在编译的目录中写入?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM