由于配置错误,我的 rvm 无法安装任何东西:
configure:3489: error: C compiler cannot create executables
看着config.log
,我看到:
ac_cv_build=x86_64-apple-darwin11.4.2
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/local/bin/gcc-4.2
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/davidholmgren/.rvm/usr/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
似乎 configure 正在破坏标志变量的解析,但这发生在任何 rvm 安装中,所以我怀疑问题不在 rvm 的调用中configure.in
,而是在 rvm 的调用中,但是config.log
说
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --enable-shared --disable-install-doc --prefix=/Users/davidholmgren/.rvm/rubies/ruby-1.9.3-p327
我怎样才能解决这个问题?
谢谢!
在rvm install 1.9.3中找到修复(编辑 /etc/rvmrc)失败
谢谢!