由于配置错误,我的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正在解析flags变量,但是对于任何rvm安装都会发生这种情况,所以我怀疑问题不在configure.in
中,而是在rvm的调用中,但是config.log
说1} p>
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
我该如何解决这个问题?
谢谢!
找到修复程序(编辑/ etc / rvmrc)谢谢!