相关疑难解决方法(0)

无法在Lion下使用RVM安装Ruby - GCC问题

关于这个问题的大多数问题是由于缺少Xcode; 我安装了Xcode 4.2.

安装尝试:

rvm install 1.9.3
Installing Ruby from source to: /Users/jamie/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracted to /Users/jamie/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/jamie/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/jamie/.rvm/src
Configuring yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/jamie/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/jamie/.rvm/usr
ruby-1.9.3-p0 - #configuring 
ERROR: Error running ' ./configure --prefix=/Users/jamie/.rvm/rubies/ruby-1.9.3-p0 --enable-shared --disable-install-doc --with-libyaml-dir=/Users/jamie/.rvm/usr ', please read /Users/jamie/.rvm/log/ruby-1.9.3-p0/configure.log
ERROR: There has been an error while running configure. Halting the installation. …
Run Code Online (Sandbox Code Playgroud)

ruby gcc rvm xcode4.2 osx-lion

268
推荐指数
4
解决办法
8万
查看次数

什么是osx上的config.log以及它在哪里?

任何人都可以解释'配置'是什么和做什么config.log,一般可以找到文件的位置?

这与特定问题有关(gcc不起作用 - Xcode 3.2.6 - Snow Leopard)但我认为这个问题可能更普遍:

当尝试使用RVM安装rubies时,我认为可能涉及Xcode的gcc编译器,或者甚至可能更常见,如果有错误,那么日志通常会引用一个config.log文件.例如,在我/yaml/configure.log得到:

configure: error: in `/Users/duncanstuart/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)

谷歌搜索周围表明这个文件是特定于正在安装的软件包,但各种帖子提供了许多不同的位置,我的机器上都没有 - 例如错误在Mac OS X 10.5上使用MacPorts安装PostgreSQL说它在某处/opt/local/var/

无法使用RVM在Lion下安装Ruby - GCC问题包含一个示例config.log:

此文件包含编译器在运行configure时生成的任何消息,以便在configure出错时帮助调试.

macos xcode gcc configure

9
推荐指数
1
解决办法
8171
查看次数

标签 统计

gcc ×2

configure ×1

macos ×1

osx-lion ×1

ruby ×1

rvm ×1

xcode ×1

xcode4.2 ×1