简体   繁体   English

安装puma(2.11.1)时发生错误,并且Bundler无法继续

[英]An error occurred while installing puma (2.11.1), and Bundler cannot continue

After running bundle install --path vendor it's showing following error. 运行bundle install --path vendor它显示以下错误。 I'm using macOS Sierra. 我正在使用macOS Sierra。 This problem occurred after update homebrew. 更新自制程序后发生此问题。 I've uninstalled currently installed puma from my gem list. 我已经从我的宝石列表中卸载了当前安装的puma。 But the same problem occurred here. 但是,这里也发生了同样的问题。

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/tanvirhasan/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20161114-22170-lrj70g.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling http11_parser.c
compiling io_buffer.c
io_buffer.c:119:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
  return rb_str_new(b->top, b->cur - b->top);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:796:20: note: expanded from macro 'rb_str_new'
        rb_str_new_static((str), (len)) : \
                          ^~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:727:37: note: passing argument to parameter here
VALUE rb_str_new_static(const char *, long);
                                    ^
io_buffer.c:119:10: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
  return rb_str_new(b->top, b->cur - b->top);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:797:13: note: expanded from macro 'rb_str_new'
        rb_str_new((str), (len));         \
                   ^~~~~
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:706:29: note: passing argument to parameter here
VALUE rb_str_new(const char*, long);
                            ^
2 warnings generated.
compiling mini_ssl.c
In file included from mini_ssl.c:3:
/Users/tanvirhasan/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/backward/rubyio.h:2:2: warning: use "ruby/io.h" instead of "rubyio.h" [-W#warnings]
#warning use "ruby/io.h" instead of "rubyio.h"
 ^
mini_ssl.c:4:10: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
         ^
1 warning and 1 error generated.
make: *** [mini_ssl.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/tanvirhasan/Git/Nascenia/cribber-web/vendor/ruby/2.2.0/gems/puma-2.11.1 for inspection.
Results logged to /Users/tanvirhasan/Git/Nascenia/cribber-web/vendor/ruby/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/puma-2.11.1/gem_make.out

You updated homebrew, but you probably didn't update XCode. 您更新了自制软件,但可能未更新XCode。 Pull up an instance of Terminal and run: 拉出Terminal的实例并运行:

brew doctor

Homebrew will probably warn you about one or more libraries that need to be updated, including XCode. Homebrew可能会警告您有关一个或多个需要更新的库,包括XCode。

Run: 跑:

xcode-select --install

Make sure you accept the license for the new version of XCode by running: 确保通过运行以下命令接受新版本XCode的许可证:

sudo xcodebuild -license

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装 puma (3.6.0) 时出错,Bundler 无法继续 - An error occurred while installing puma (3.6.0), and Bundler cannot continue 安装 puma (3.4.0) 时出错,Bundler 无法继续 - An error occurred while installing puma (3.4.0), and Bundler cannot continue 安装atomic(1.1.16)时发生错误,Bundler无法继续 - An error occurred while installing atomic (1.1.16) and Bundler cannot continue 安装RedCloth(4.2.7)时发生错误,并且Bundler无法继续 - An error occurred while installing RedCloth (4.2.7), and Bundler cannot continue 安装mysql(2.9.1)时出错,Bundler无法继续 - An error occurred while installing mysql (2.9.1), and Bundler cannot continue 安装mysql(2.9.1)时发生错误,Bundler无法继续 - An error occurred while installing mysql (2.9.1) and Bundler cannot continue n在安装atomic(1.1.14)时发生错误,并且Bundler无法继续 - n error occurred while installing atomic (1.1.14), and Bundler cannot continue 安装curb(0.8.5)时发生错误,Bundler无法继续 - An error occurred while installing curb (0.8.5), and Bundler cannot continue 安装 json (1.7.6) 时出错,Bundler 无法继续。 - An error occurred while installing json (1.7.6), and Bundler cannot continue. 安装pg(0.15.1)时发生错误,Bundler无法继续 - error occurred while installing pg (0.15.1), and Bundler cannot continue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM