El Capitanにしたらmailcatcherがなくなっていたので入れなおす

Macを新しくしたらEl Capitanに勝手になってました

とりあえず普通に mailcatcher を入れようとしてみる

$ gem install mailcatcher
Fetching: eventmachine-1.0.8.gem (100%)
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.



$ sudo gem install -n /usr/local/bin mailcatcher
Building native extensions. This could take a while…
ERROR: Error installing mailcatcher:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h… no
checking for rb_thread_blocking_region()… yes
checking for ruby/thread.h… yes
checking for rb_thread_call_without_gvl() in ruby/thread.h… 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 rb_thread_fd_select()… yes
checking for rb_fdset_t in ruby/intern.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 rb_wait_for_single_fd()… yes
checking for rb_enable_interrupt()… no
checking for rb_time_new()… yes
checking for sys/event.h… yes
checking for sys/queue.h… yes
CFLAGS= -g -Os -pipe -DHAVE_GCC_SYNC_BUILTINS -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result
CPPFLAGS=-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result
checking for clock_gettime()… no
checking for gethrtime()… no
creating Makefile

make “DESTDIR=”
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:116:10: fatal error: ‘openssl/ssl.h’ file not found
1 error generated.
make: *** [binder.o] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/eventmachine-1.0.8/ext/gem_make.out


$ brew link –force openssl
Linking /usr/local/Cellar/openssl/1.0.1j… 1146 symlinks created


$ sudo gem install -n /usr/local/bin mailcatcher
Building native extensions. This could take a while…
Successfully installed eventmachine-1.0.8
Fetching: mailcatcher-0.6.2.gem (100%)
Successfully installed mailcatcher-0.6.2
Parsing documentation for eventmachine-1.0.8
unable to convert “\xCA” from ASCII-8BIT to UTF-8 for lib/fastfilereaderext.bundle, skipping
unable to convert “\xCA” from ASCII-8BIT to UTF-8 for lib/rubyeventmachine.bundle, skipping
Installing ri documentation for eventmachine-1.0.8
Parsing documentation for mailcatcher-0.6.2
Installing ri documentation for mailcatcher-0.6.2
2 gems installed