使用rvm和Homebrew配置在Mac OS 10.10上安装Ruby 1.9.3的错误

时间:2015-02-04 23:55:01

标签: ruby rvm homebrew osx-yosemite

注意那些考虑标记此副本的人:是的,我的XCode工具已安装并且是最新的。


我今天早上开始使用的系统既没有rvm也没有自制软件,并且能够在覆盖默认的Homebrew安装目录后成功安装rvm和Ruby 1.9.3,并将其从/usr/local更改为/opt/brew

今天下午,在看到关于某些Homebrew食谱的可能奇怪行为的警告后,如果安装在/usr/local以外的任何地方,我决定将其全部吹掉,并在默认位置重新安装Homebrew。

现在,今天早上起作用不起作用:我收到以下错误(来自configure.log):

[2015-02-04 15:39:24] ./configure current path: /Users/dmoles/.rvm/src/ruby-1.9.3-p551 PATH=/usr/local/opt/gcc48/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/dmoles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/opt/bin:/opt/apache-ant-1.9/bin:/opt/apache-maven-3/bin:/opt/apache-tomcat-8.0.15/bin:/Users/dmoles/.rvm/bin:/usr/local/bin command(7): ./configure --prefix=/Users/dmoles/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin14.1.0 checking host system type... x86_64-apple-darwin14.1.0 checking target system type... x86_64-apple-darwin14.1.0 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/Users/dmoles/.rvm/src/ruby-1.9.3-p551': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'.

我的猜测是,今天早上它正在使用XCode工具链,而今天下午它正在使用Homebrew's,由于某种原因它不起作用。但是我不清楚这是怎么发生的,因为我可以看到上面rvm正在玩$PATH的各种游戏。 (我通常$PATH/Users/dmoles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/ImageMagick/bin:/opt/bin:/opt/apache-ant-1.9/bin:/opt/apache-maven-3/bin:/opt/apache-tomcat-8.0.15/bin:/Users/dmoles/.rvm/bin - 开头没有/usr/local/opt或者最后没有/usr/local/bin。)

我的rvm版本是1.26.10; gcc-48是Homebrew gcc48 4.8.4。

0 个答案:

没有答案