-
-
Save nelyj/e8769b1b875f9e3198c870f02ec6401f to your computer and use it in GitHub Desktop.
install puma gem on el capitan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install openssl | |
brew link --force openssl | |
gem install puma | |
ALternatively: | |
export CPPFLAGS="-I/usr/local/opt/openssl/include" | |
export LDFLAGS="-L/usr/local/opt/openssl/lib" | |
gem install puma | |
Or | |
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install puma | |
Building native extensions. This could take a while... | |
ERROR: Error installing puma: | |
ERROR: Failed to build gem native extension. | |
/Users/deepj/.rubies/ruby-2.2.3/bin/ruby -r ./siteconf20150913-90782-12h8n45.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/deepj/.rubies/ruby-2.2.3/include/ruby-2.2.0/ruby/intern.h:796:20: note: expanded from macro 'rb_str_new' | |
rb_str_new_static((str), (len)) : \ | |
^~~~~ | |
/Users/deepj/.rubies/ruby-2.2.3/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/deepj/.rubies/ruby-2.2.3/include/ruby-2.2.0/ruby/intern.h:797:13: note: expanded from macro 'rb_str_new' | |
rb_str_new((str), (len)); \ | |
^~~~~ | |
/Users/deepj/.rubies/ruby-2.2.3/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/deepj/.rubies/ruby-2.2.3/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/deepj/.gem/ruby/2.2.3/gems/puma-2.13.4 for inspection. | |
Results logged to /Users/deepj/.gem/ruby/2.2.3/extensions/x86_64-darwin-15/2.2.0-static/puma-2.13.4/gem_make.out | |
$ gcc --version | |
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
Apple LLVM version 7.0.0 (clang-700.0.72) | |
Target: x86_64-apple-darwin15.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment