通过rvm OSX Lion 10.7.2 XCode 4.2安装Ruby 1.9.2时出错 [英] Make error installing Ruby 1.9.2 via rvm OSX Lion 10.7.2 XCode 4.2
问题描述
尝试通过rvm安装1.9.2时出现以下错误
I'm getting the following error when trying to install 1.9.2 with rvm
/Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found
Installing yaml to /Users/craigspaeth/.rvm/usr
/Users/craigspaeth/.rvm/scripts/functions/utility: line 152: date: command not found
ERROR: Error running 'make install', please read /Users/craigspaeth/.rvm/log/ruby-1.9.2-p290/yaml/make.install.log
这是yaml/configure.log
And here is the yaml/configure.log
[] make install
Making install in include
make[2]: Nothing to be done for `install-exec-am'.
test -z "/Users/craigspaeth/.rvm/usr/include" || ../config/install-sh -c -d "/Users/craigspaeth/.rvm/usr/include"
/usr/bin/install -c -m 644 yaml.h '/Users/craigspaeth/.rvm/usr/include/.'
Making install in src
test -z "/Users/craigspaeth/.rvm/usr/lib" || ../config/install-sh -c -d "/Users/craigspaeth/.rvm/usr/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c libyaml.la '/Users/craigspaeth/.rvm/usr/lib'
libtool: install: /usr/bin/install -c .libs/libyaml-0.2.dylib /Users/craigspaeth/.rvm/usr/lib/libyaml-0.2.dylib
libtool: install: (cd /Users/craigspaeth/.rvm/usr/lib && { ln -s -f libyaml-0.2.dylib libyaml.dylib || { rm -f libyaml.dylib && ln -s libyaml-0.2.dylib libyaml.dylib; }; })
../libtool: line 941: ln: command not found
../libtool: line 941: rm: command not found
libtool: install: /usr/bin/install -c .libs/libyaml.lai /Users/craigspaeth/.rvm/usr/lib/libyaml.la
libtool: install: /usr/bin/install -c .libs/libyaml.a /Users/craigspaeth/.rvm/usr/lib/libyaml.a
libtool: install: chmod 644 /Users/craigspaeth/.rvm/usr/lib/libyaml.a
../libtool: line 941: chmod: command not found
make[2]: *** [install-libLTLIBRARIES] Error 127
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
我在使用XCode 4.2的OSX lion 10.7.2.我尝试将export CC=/usr/bin/gcc-4.2
添加到我的bash_profile中,但没有帮助.
I'm on OSX lion 10.7.2 with XCode 4.2. I've tried adding export CC=/usr/bin/gcc-4.2
to my bash_profile, but it didn't help.
还有其他人遇到吗?为此,我将完全秃顶.
Has anyone else run into this? I'm about to go completely bald pulling my hair out for this.
愚蠢的我,我没有安装gcc独立版本吗?无论哪种方式,我现在都在上面得到新的错误.
Silly me I didn't have the gcc standalone installed? Either way I'm now getting the new errors above.
推荐答案
此错误已在1.9.2-head中修复,所以...
This error has been fixed in 1.9.2-head ... so just
rvm install 1.9.2-head && rvm use 1.9.2-head --default
我发现1.9.3与我使用的许多库不兼容.这适用于Xcode 4.2.
I'm finding 1.9.3 isn't compatible with a lot of the libraries I use yet. This works with Xcode 4.2.
这篇关于通过rvm OSX Lion 10.7.2 XCode 4.2安装Ruby 1.9.2时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!