OS X ElCapton上的Puma gem错误

时间:2016-03-14 12:21:29

标签: ruby macos rubygems puma

安装puma gem时出现以下错误:

ERROR:  Error installing puma:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling http11_parser.c
compiling io_buffer.c
io_buffer.c:119:21: 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);

任何线索,我应该寻找解决这个问题?

2 个答案:

答案 0 :(得分:5)

brew install openssl
brew link --force openssl

查看此GitHub问题,它帮助了我:https://github.com/puma/puma/issues/783

答案 1 :(得分:1)

正如maximf所建议的那样,这对我有用:

brew install openssl
brew link --force openssl