问题描述
我最近升级到 OS Mountain Lion.我正在处理的项目需要 gem sys-proctable 作为依赖项,但是当我运行 bundle install
我得到:
从 https://rubygems.org/获取 gem 元数据...............使用本机扩展安装 sys-proctable (0.9.2)Gem::Installer::ExtensionBuildError: 错误: 无法构建 gem 原生扩展./Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb检查 ruby.h 中的 rb_pid_t ... *** extconf.rb 失败 ***由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件.查看 mkmf.log 文件了解更多信息细节.您可能需要配置选项.提供的配置选项:--with-opt-dir--with-opt-include--without-opt-include=${opt-dir}/include--with-opt-lib--without-opt-lib=${opt-dir}/lib--with-make-prog--没有-make-prog--srcdir=.--curdir--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do':编译器无法生成可执行文件.(运行时错误)您必须先安装开发工具.来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checks_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `推迟阻止'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'来自 extconf.rb:3:in `<main>'Gem 文件将继续安装在/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin 以供检查.结果记录到/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out安装 sys-proctable (0.9.2) 时出错,Bundler 无法继续.在捆绑之前确保 `gem install sys-proctable -v '0.9.2'` 成功.
但我确实安装了开发人员工具!运行 gem install sys-proctable -v '0.9.2'
给了我几乎相同的错误:
构建原生扩展.这可能需要一段时间...错误:安装 sys-proctable 时出错:错误:无法构建 gem 原生扩展./Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb检查 ruby.h 中的 rb_pid_t ... *** extconf.rb 失败 ***由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件.查看 mkmf.log 文件了解更多信息细节.您可能需要配置选项.提供的配置选项:--with-opt-dir--with-opt-include--without-opt-include=${opt-dir}/include--with-opt-lib--without-opt-lib=${opt-dir}/lib--with-make-prog--没有-make-prog--srcdir=.--curdir--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do':编译器无法生成可执行文件.(运行时错误)您必须先安装开发工具.来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checks_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `推迟阻止'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'来自 extconf.rb:3:in `<main>'Gem 文件将继续安装在/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin 以供检查.结果记录到/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out[sample_app(filling-in-layout)]$/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/rubyA [sample_app(filling-in-layout)]$ gem install sys-proctable -v '0.9.2'构建原生扩展.这可能需要一段时间...错误:安装 sys-proctable 时出错:错误:无法构建 gem 原生扩展./Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb检查 ruby.h 中的 rb_pid_t ... *** extconf.rb 失败 ***由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件.查看 mkmf.log 文件了解更多信息细节.您可能需要配置选项.提供的配置选项:--with-opt-dir--with-opt-include--without-opt-include=${opt-dir}/include--with-opt-lib--without-opt-lib=${opt-dir}/lib--with-make-prog--没有-make-prog--srcdir=.--curdir--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do':编译器无法生成可执行文件.(运行时错误)您必须先安装开发工具.来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checks_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `推迟阻止'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `推迟'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'来自/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'来自 extconf.rb:3:in `<main>'Gem 文件将继续安装在/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin 以供检查.结果记录到/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out
这是我的 mkmf.log
文件的内容:
"/usr/bin/gcc-4.2 -o conftest -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin11.4.0 -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I. -I/Users/mgriffel/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/sm/pkg/active/include -fno-common -pipe conftest.c-L.-L/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib -L/Users/mgriffel/.rvm/usr/lib -L.-L/opt/sm/pkg/active/lib -L/usr/local/lib -lruby.1.9.1 -lpthread -ldl -lobjc "检查的程序是:/* 开始 */1:#includeruby.h"2:3: int main() {返回 0;}/* 结尾 */
现在我最近重新安装了 XCode 和命令行工具,但我担心我以某种方式搞砸了我的 C 编译器,因为当我尝试运行 rvm --force install 1.9.3
时,我得到了以下错误:
没有可用的二进制红宝石:downloads/ruby-1.9.3-p194.继续编译.请阅读rvm mount"以获取有关二进制红宝石的更多信息.lipo:无法打开输入文件:(没有这样的文件或目录)获取 yaml-0.1.4.tar.gz 到/Users/mgriffel/.rvm/archives提取yaml到/Users/mgriffel/.rvm/src/yaml-0.1.4在/Users/mgriffel/.rvm/src/yaml-0.1.4 中配置 yaml.错误运行 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/Users/mgriffel/.rvm/usr',请阅读/Users/mgriffel/.rvm/log/ruby-1.9.3-p194/yaml/configure.log在/Users/mgriffel/.rvm/src/yaml-0.1.4 中编译 yaml.将 yaml 安装到/Users/mgriffel/.rvm/usr从源代码安装 Ruby 到:/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194,这可能需要一段时间,具体取决于您的 CPU...ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194,这可能需要一段时间,具体取决于您的连接...ruby-1.9.3-p194 - #extracted to/Users/mgriffel/.rvm/src/ruby-1.9.3-p194(已经提取)补丁 cflags 已应用.ruby-1.9.3-p194 - #configuring错误运行 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang',请阅读/Users/mgriffel/.rvm/log/ruby-1.9.3-p194/configure.log运行配置时出现错误.停止安装.
configure.log
[2012-11-07 18:02:12] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang检查构建系统类型... x86_64-apple-darwin12.2.0检查主机系统类型... x86_64-apple-darwin12.2.0检查目标系统类型... x86_64-apple-darwin12.2.0检查 C 编译器是否工作...否配置:错误:在`/Users/mgriffel/.rvm/src/ruby-1.9.3-p194'中:配置:错误:C 编译器无法创建可执行文件有关更多详细信息,请参阅config.log"
最后是config.log
的内容:
此文件包含编译器生成的任何消息,而运行configure,以在configure出错时帮助调试.它是由 configure 创建的,它是由 GNU Autoconf 2.69 生成.调用命令行是$ ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang## --------- #### 平台.#### --------- ##主机名 = Mattans-MacBook-Air.localunname -m = x86_64unname -r = 12.2.0uname -s = 达尔文uname -v = 达尔文内核版本 12.2.0:2012 年 8 月 25 日星期六 00:48:52 PDT;根:xnu-2050.18.24~1/RELEASE_X86_64/usr/bin/uname -p = i386/bin/uname -X = 未知/bin/arch = 未知/usr/bin/arch -k = 未知/usr/convex/getsysinfo = 未知/usr/bin/hostinfo = Mach 内核版本:达尔文内核版本 12.2.0:2012 年 8 月 25 日星期六 00:48:52 PDT;根:xnu-2050.18.24~1/RELEASE_X86_64内核配置为最多 4 个处理器.2 个处理器是物理可用的.4 个处理器在逻辑上可用.处理器类型:i486(英特尔 80486)处理器活动:0 1 2 3可用主内存:4.00 GB默认处理器集:138 个任务、703 个线程、4 个处理器平均负载:3.07,马赫系数:1.53/bin/machine = 未知/usr/bin/oslevel = 未知/bin/universe = 未知路径:/Users/mgriffel/.rvm/usr/bin路径:/opt/local/bin路径:/opt/local/sbin路径:/usr/local/bin路径:/usr/local/sbin路径:/usr/local/mysql/bin路径:/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/bin路径:/Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@global/bin路径:/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin路径:/用户/mgriffel/.rvm/bin路径:/usr/bin路径:/bin路径:/usr/sbin路径:/sbin路径:/opt/sm/bin路径:/opt/sm/pkg/active/bin路径:/opt/sm/pkg/active/sbin## ----------- #### 核心测试.#### ----------- ##配置:2788:检查构建系统类型配置:2802:结果:x86_64-apple-darwin12.2.0配置:2870:检查主机系统类型配置:2883:结果:x86_64-apple-darwin12.2.0配置:2903:检查目标系统类型配置:2916:结果:x86_64-apple-darwin12.2.0配置:3395:检查 C 编译器版本配置:3404:clang --version >&5Apple clang 版本 4.1 (tags/Apple/clang-421.11.66) (基于 LLVM 3.1svn)目标:x86_64-apple-darwin12.2.0线程模型:posix配置:3415:$?= 0配置:3404:clang -v >&5Apple clang 版本 4.1 (tags/Apple/clang-421.11.66) (基于 LLVM 3.1svn)目标:x86_64-apple-darwin12.2.0线程模型:posix配置:3415:$?= 0配置:3404:铿锵-V>&5clang:错误:缺少-V"的参数(预期为 1 个值)铿锵声:错误:没有输入文件配置:3415:$?= 1配置:3404:clang -qversion >&5铿锵声:错误:没有输入文件配置:3415:$?= 1configure:3435: 检查 C 编译器是否工作配置:3457:clang -L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib conftest.c >&5clang:错误:没有这样的文件或目录:'CFLAGS=-I/opt/sm/pkg/active/include'clang:错误:没有这样的文件或目录:'CPATH=/opt/sm/pkg/active/include'配置:3461:$?= 1配置:3499:结果:否配置:失败的程序是:|/* confdefs.h */|#define PACKAGE_NAME ""|#define PACKAGE_TARNAME ""|#define PACKAGE_VERSION ""|#define PACKAGE_STRING ""|#define PACKAGE_BUGREPORT ""|#define PACKAGE_URL ""|#define CANONICALIZATION_FOR_MATHN 1|/* 结束 confdefs.h.*/||整数|主要的 ()|{||;|返回0;|}配置:3504:错误:在/Users/mgriffel/.rvm/src/ruby-1.9.3-p194"中:配置:3506:错误:C 编译器无法创建可执行文件有关更多详细信息,请参阅config.log"## ---------------- #### 缓存变量.#### ---------------- ##ac_cv_build=x86_64-apple-darwin12.2.0ac_cv_env_CCC_set=ac_cv_env_CCC_value=ac_cv_env_CC_set=ac_cv_env_CC_value=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=setac_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/mgriffel/.rvm/usr/lib'ac_cv_env_LIBS_set=ac_cv_env_LIBS_value=ac_cv_env_build_alias_set=ac_cv_env_build_alias_value=ac_cv_env_host_alias_set=ac_cv_env_host_alias_value=ac_cv_env_target_alias_set=ac_cv_env_target_alias_value=ac_cv_host=x86_64-apple-darwin12.2.0ac_cv_prog_CC=clangac_cv_target=x86_64-apple-darwin12.2.0## ----------------- #### 输出变量.#### ----------------- ##分配=''AR=''ARCHFILE=''ARCH_FLAG=''作为=''ASFLAGS=''BASERUBY='红宝石'BUILTIN_ENCOBJS=''BUILTIN_TRANSOBJS=''BUILTIN_TRANSSRCS=''资本目标=''抄送='铿锵声'CCDLFLAGS=''CFLAGS=''CHDIR=''COMMON_HEADERS=''COMMON_LIBS=''COMMON_MACROS=''COUTFLAG=''CP=''CPP=''CPPFLAGS=''CPPOUTFILE=''CXX=''CXXFLAGS=''DEFS=''DLDFLAGS=''DLLIBS=''DLEXT2=''DLEXT=''DLLWRAP=''点=''氧气=''ECHO_C='c'ECHO_N=''ECHO_T=''EGREP=''ENABLE_SHARED=''EXECUTABLE_EXTS=''EXEEXT=''EXPORT_PREFIX=''EXTOUT=''EXTSTATIC=''GCC=''GNU_LD=''GREP=''安装文档=''INSTALL_DATA=''安装程序=''INSTALL_SCRIPT=''LDFLAGS='-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib'LDSHARED=''LDSHAREDXX=''LIBEXT=''LIBOBJS=''LIBPATHENV=''LIBPATHFLAG=''图书馆=''图书馆=''LIBRUBYARG_SHARED=''LIBRUBYARG_STATIC=''LIBRUBY_A=''LIBRUBY_ALIASES=''LIBRUBY_DLDFLAGS=''LIBRUBY_LDSHARED=''LIBRUBY_RELATIVE=''LIBRUBY_SO=''图书馆=''LINK_SO=''LN_S=''LTLIBOBJS=''主库=''主要='1'MAKEDIRS=''MAKEFILES=''人型=''MINIOBJS=''MINIRUBY=''次要='9'MKDIR_P=''纳米=''NROFF=''NULLCMD=''对象复制=''OBJDUMP=''对象=''OUTFLAG=''包=''PACKAGE_BUGREPORT=''PACKAGE_NAME=''PACKAGE_STRING=''PACKAGE_TARNAME=''PACKAGE_URL=''PACKAGE_VERSION=''PATH_SEPARATOR=':'PKG_CONFIG=''准备=''RANLIB=''RDOCTARGET=''RI_BASE_NAME=''RM=''RMALL=''RMDIR=''RMDIRS=''RPATHFLAG=''RUBYW_BASE_NAME='rubyw'RUBYW_INSTALL_NAME=''RUBY_BASE_NAME='红宝石'RUBY_INSTALL_NAME=''RUBY_PROGRAM_VERSION='1.9.3'RUBY_RELEASE_DATE='2012-04-20'RUBY_SO_NAME=''RUNRUBY=''SET_MAKE=''SHELL='/bin/sh'固体=''静态=''条=''SYMBOL_PREFIX=''青少年='1'TEST_RUNNABLE=''线程模型=''TRY_LINK=''UNIVERSAL_ARCHNAMES=''UNIVERSAL_INTS=''USE_RUBYGEMS=''错误标志=''风=''XCFLAGS=''XLDFLAGS=''XRUBY=''XRUBY_LIBDIR=''XRUBY_RUBYHDRDIR=''XRUBY_RUBYLIBDIR=''ac_ct_CC=''ac_ct_CXX=''ac_ct_OBJCOPY=''ac_ct_OBJDUMP=''拱=''bindir='${exec_prefix}/bin'build='x86_64-apple-darwin12.2.0'build_alias=''build_cpu='x86_64'build_os='darwin12.2.0'build_vendor='苹果'cflags=' ${optflags} ${debugflags} ${warnflags}'配置参数=''cppflags=''cxxflags=' ${optflags} ${debugflags} ${warnflags}'datadir='${datarootdir}'datarootdir='${前缀}/share'调试标志=''docdir='${datarootdir}/doc/${PACKAGE}'dvidir='${docdir}'执行=''exec_prefix='无'主机='x86_64-apple-darwin12.2.0'主机别名=''host_cpu='x86_64'host_os='darwin12.2.0'host_vendor='苹果'htmldir='${docdir}'includeir='${前缀}/include'infodir='${datarootdir}/info'libdir='${exec_prefix}/lib'libexecdir='${exec_prefix}/libexec'localedir='${datarootdir}/locale'localstatedir='${前缀}/var'mandir='${datarootdir}/man'oldincludedir='/usr/include'optflags=''pdfdir='${docdir}'前缀='/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194'program_transform_name='s&^&&'psdir='${docdir}'骑手=''ruby_pc=''ruby_version=''rubyhdrdir=''rubylibprefix=''rubyw_install_name=''sbindir='${exec_prefix}/sbin'设置=''sharedstatedir='${prefix}/com'网站架构=''站点目录=''站点hdrdir =''sysconfdir='${前缀}/etc'目标='x86_64-apple-darwin12.2.0'目标别名=''target_cpu='x86_64'target_os='darwin12.2.0'target_vendor='苹果'try_header=''供应商目录=''供应商hdrdir =''警告标志=''## ----------- #### confdefs.h.#### ----------- ##/* confdefs.h */#define PACKAGE_NAME ""#define PACKAGE_TARNAME ""#define PACKAGE_VERSION ""#define PACKAGE_STRING ""#define PACKAGE_BUGREPORT ""#define PACKAGE_URL ""#define CANONICALIZATION_FOR_MATHN 1配置:退出 77
原来这是 RailsInstaller OSX 1.0.3 中的一个错误 - (在阅读 在 Mountain Lion 上安装 Ruby 的问题 - ruby 1.9.3 无法编译)p>
我需要更改 /etc/rvmrc
以包含以下内容:
umask g+w导出 -a rvm_configure_envrvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
有关详细信息,请参阅:https://github.com/railsinstaller/railsinstaller-nix/issues/10
I recently upgraded to OS Mountain Lion. A project I'm working on requires gem sys-proctable as a dependency, but when I run bundle install
I get:
Fetching gem metadata from https://rubygems.org/.........
.
.
.
Installing sys-proctable (0.9.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_pid_t in ruby.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'
from extconf.rb:3:in `<main>'
Gem files will remain installed in /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin for inspection.
Results logged to /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out
An error occurred while installing sys-proctable (0.9.2), and Bundler cannot continue.
Make sure that `gem install sys-proctable -v '0.9.2'` succeeds before bundling.
But I do have developer tools installed! Running gem install sys-proctable -v '0.9.2'
gives me nearly the same error:
Building native extensions. This could take a while...
ERROR: Error installing sys-proctable:
ERROR: Failed to build gem native extension.
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_pid_t in ruby.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'
from extconf.rb:3:in `<main>'
Gem files will remain installed in /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin for inspection.
Results logged to /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out
[sample_app(filling-in-layout)]$ /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
A [sample_app(filling-in-layout)]$ gem install sys-proctable -v '0.9.2'
Building native extensions. This could take a while...
ERROR: Error installing sys-proctable:
ERROR: Failed to build gem native extension.
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for rb_pid_t in ruby.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1022:in `try_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1050:in `block in have_type'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:1049:in `have_type'
from extconf.rb:3:in `<main>'
Gem files will remain installed in /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin for inspection.
Results logged to /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/sys-proctable-0.9.2-universal-darwin/ext/darwin/gem_make.out
Here's the content of my mkmf.log
file:
"/usr/bin/gcc-4.2 -o conftest -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/x86_64-darwin11.4.0 -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward -I/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I. -I/Users/mgriffel/.rvm/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/sm/pkg/active/include -fno-common -pipe conftest.c -L. -L/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/lib -L/Users/mgriffel/.rvm/usr/lib -L. -L/opt/sm/pkg/active/lib -L/usr/local/lib -lruby.1.9.1 -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */
Now I recently reinstalled XCode and Command Line Tools, but I'm worried that I somehow fucked up my C compiler, because when I try to run rvm --force install 1.9.3
I get the following errors:
No binary rubies available for: downloads/ruby-1.9.3-p194.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
lipo: can't open input file: (No such file or directory)
Fetching yaml-0.1.4.tar.gz to /Users/mgriffel/.rvm/archives
Extracting yaml to /Users/mgriffel/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/mgriffel/.rvm/src/yaml-0.1.4.
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/Users/mgriffel/.rvm/usr', please read /Users/mgriffel/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /Users/mgriffel/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/mgriffel/.rvm/usr
Installing Ruby from source to: /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracted to /Users/mgriffel/.rvm/src/ruby-1.9.3-p194 (already extracted)
Patch cflags was already applied.
ruby-1.9.3-p194 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang', please read /Users/mgriffel/.rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
Contents of configure.log
[2012-11-07 18:02:12] env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
checking target system type... x86_64-apple-darwin12.2.0
checking whether the C compiler works... no
configure: error: in `/Users/mgriffel/.rvm/src/ruby-1.9.3-p194':
configure: error: C compiler cannot create executables
See `config.log' for more details
Finally, contents of config.log
:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --enable-shared --disable-install-doc --prefix=/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194 --with-gcc=clang
## --------- ##
## Platform. ##
## --------- ##
hostname = Mattans-MacBook-Air.local
uname -m = x86_64
uname -r = 12.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 4.00 gigabytes
Default processor set: 138 tasks, 703 threads, 4 processors
Load average: 3.07, Mach factor: 1.53
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/mgriffel/.rvm/usr/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/local/mysql/bin
PATH: /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/bin
PATH: /Users/mgriffel/.rvm/gems/ruby-1.9.3-p194@global/bin
PATH: /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194/bin
PATH: /Users/mgriffel/.rvm/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/sm/bin
PATH: /opt/sm/pkg/active/bin
PATH: /opt/sm/pkg/active/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2788: checking build system type
configure:2802: result: x86_64-apple-darwin12.2.0
configure:2870: checking host system type
configure:2883: result: x86_64-apple-darwin12.2.0
configure:2903: checking target system type
configure:2916: result: x86_64-apple-darwin12.2.0
configure:3395: checking for C compiler version
configure:3404: clang --version >&5
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
configure:3415: $? = 0
configure:3404: clang -v >&5
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
configure:3415: $? = 0
configure:3404: clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3415: $? = 1
configure:3404: clang -qversion >&5
clang: error: no input files
configure:3415: $? = 1
configure:3435: checking whether the C compiler works
configure:3457: clang -L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib conftest.c >&5
clang: error: no such file or directory: 'CFLAGS=-I/opt/sm/pkg/active/include'
clang: error: no such file or directory: 'CPATH=/opt/sm/pkg/active/include'
configure:3461: $? = 1
configure:3499: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3504: error: in `/Users/mgriffel/.rvm/src/ruby-1.9.3-p194':
configure:3506: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin12.2.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
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/mgriffel/.rvm/usr/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin12.2.0
ac_cv_prog_CC=clang
ac_cv_target=x86_64-apple-darwin12.2.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
AS=''
ASFLAGS=''
BASERUBY='ruby'
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CC='clang'
CCDLFLAGS=''
CFLAGS=''
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS=''
CPPOUTFILE=''
CXX=''
CXXFLAGS=''
DEFS=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
DOT=''
DOXYGEN=''
ECHO_C='c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GNU_LD=''
GREP=''
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/mgriffel/.rvm/usr/lib'
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='1'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='9'
MKDIR_P=''
NM=''
NROFF=''
NULLCMD=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PREP=''
RANLIB=''
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_BASE_NAME='ruby'
RUBY_INSTALL_NAME=''
RUBY_PROGRAM_VERSION='1.9.3'
RUBY_RELEASE_DATE='2012-04-20'
RUBY_SO_NAME=''
RUNRUBY=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
SYMBOL_PREFIX=''
TEENY='1'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WERRORFLAG=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
arch=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin12.2.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin12.2.0'
build_vendor='apple'
cflags=' ${optflags} ${debugflags} ${warnflags}'
configure_args=''
cppflags=''
cxxflags=' ${optflags} ${debugflags} ${warnflags}'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-apple-darwin12.2.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin12.2.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/Users/mgriffel/.rvm/rubies/ruby-1.9.3-p194'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyhdrdir=''
rubylibprefix=''
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitedir=''
sitehdrdir=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin12.2.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin12.2.0'
target_vendor='apple'
try_header=''
vendordir=''
vendorhdrdir=''
warnflags=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define CANONICALIZATION_FOR_MATHN 1
configure: exit 77
It turns out this is a bug in RailsInstaller OSX 1.0.3 - (Found that out while reading Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile)
I needed to change /etc/rvmrc
to contain this:
umask g+w
export -a rvm_configure_env
rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include')
For more info see: https://github.com/railsinstaller/railsinstaller-nix/issues/10
这篇关于编译器未能生成可执行文件.(运行时错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!