【问题标题】:bundle install error with conftest.cconftest.c 捆绑安装错误
【发布时间】:2016-03-17 15:51:39
【问题描述】:

目前无法捆绑,我无法确定如何解决问题。

╰─ rvm list

rvm rubies

=> ruby-1.9.3-p545 [ x86_64 ]
   ruby-2.0.0-p451 [ x86_64 ]
   ruby-2.0.0-p598 [ x86_64 ]
 * ruby-2.2.1 [ x86_64 ]

它在特定的 gem 上失败,并且不会将 gemfile 捆绑到我的 repo 中

╰─ gem install eventmachine
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
    ERROR: Failed to build gem native extension.

    /Users/Mark/.rvm/rubies/ruby-1.9.3-p545/bin/ruby -r ./siteconf20160317-25567-1hfkhwn.rb extconf.rb
-----
Using OpenSSL from pkg-config -I/usr/local/Cellar/openssl/1.0.2d/include && -L/usr/local/Cellar/openssl/1.0.2d/lib && -lssl -lcrypto
-----
checking for main() in -lcrypto... yes
checking for main() in -lssl... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... no
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... yes
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for clock_gettime()... no
checking for gethrtime()... no
CXXFLAGS=$(cxxflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result -Wno-address
creating Makefile

make  clean

make
compiling conftest.c
conftest.c:3:21: fatal error: utility: No such file or directory
   #include <utility>

问题是我不太确定去哪里找,而且谷歌也没有找到任何有用的东西。

小修改

我试过了:

brew unlink openssl
brew link openssl --force

但无济于事

【问题讨论】:

    标签: ruby-on-rails ruby rubygems ruby-1.9.3


    【解决方案1】:

    我现在解决了这个问题:

    rvm uninstall ruby-1.9.3-p545
    

    (和其他红宝石)

    然后使用 rvm 重新安装。它有效!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-14
      • 2017-02-21
      • 1970-01-01
      • 1970-01-01
      • 2013-09-05
      • 2021-12-28
      相关资源
      最近更新 更多