【问题标题】:Why do I get a configure error when installing Ruby 1.9.3?为什么在安装 Ruby 1.9.3 时出现配置错误?
【发布时间】:2012-04-10 15:28:18
【问题描述】:

有人知道这个错误是什么意思吗?我正在尝试安装 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

【问题讨论】:

  • 您使用的是什么操作系统?
  • Mac OS X Lion 10.7.3 (11D50d)
  • 您可能应该执行cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log 并将该输出也打印到问题中。或者,cat /Users/coreycallahan/.rvm/log/ruby-1.9.3-p125/configure.log|pbcopy,这样您就不必复制它了。
  • 试试看this

标签: ruby


【解决方案1】:
configure: error: C compiler cannot create executables

您是否有权在您正在编译的目录中写入?

【讨论】:

  • 尝试将文件复制到您知道您有权写入的目录中。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-15
  • 2012-05-30
  • 1970-01-01
  • 1970-01-01
  • 2012-02-24
相关资源
最近更新 更多