Ran into a problem installing 'landrush' with vagrant
OSX 10.11.6
Error with installing a dependency eventmachine (1.0.9.1)
Sample Error:
$ vagrant plugin install landrush Installing the 'landrush' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: An error occurred while installing eventmachine (1.0.9.1), and Bundler cannot continue. Make sure that `gem install eventmachine -v '1.0.9.1'` succeeds before bundling. ... ..skipping... /opt/vagrant/embedded/bin/ruby -r ./siteconf20160924-85278-6sy73w.rb extconf.rb checking for main() in -lcrypto... yes checking for main() in -lssl... yes checking for openssl/ssl.h... no checking for main() in -lcrypto... yes checking for main() in -lssl... yes checking for openssl/ssl.h... no checking for main() in -lcrypto... yes checking for main() in -lssl... yes checking for openssl/ssl.h... no checking for main() in -lcrypto... yes checking for main() in -lssl... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes ----- Found OpenSSL in path /usr/local/opt/openssl ----- checking for rb_trap_immediate in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... no checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... no /opt/vagrant/embedded/include/ruby-2.2.0/ruby/intern.h:454:42: note: passing argument to parameter here int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); ^ em.cpp:941:9: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'? return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv); ^~~~~~~~ rb_thread_fd_select ./em.h:29:22: note: expanded from macro 'EmSelect' #define EmSelect rb_thread_select ^ /opt/vagrant/embedded/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); ^ em.cpp:1065:6: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'? EmSelect (0, NULL, NULL, NULL, &tv); ^~~~~~~~ rb_thread_fd_select ./em.h:29:22: note: expanded from macro 'EmSelect' #define EmSelect rb_thread_select ^ /opt/vagrant/embedded/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); ^ 4 errors generated. make: *** [em.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/jmatthews/.vagrant.d/gems/gems/eventmachine-1.0.9.1 for inspection. Results logged to /Users/jmatthews/.vagrant.d/gems/extensions/universal-darwin-12/2.2.0/eventmachine-1.0.9.1/gem_make.out
Found a workaround here
https://github.com/eventmachine/eventmachine/issues/553#issuecomment-218450602
$ brew install openssl Warning: openssl-1.0.2g already installed $ brew link openssl --force Linking /usr/local/Cellar/openssl/1.0.2g... 1588 symlinks created $ vagrant plugin install landrush Installing the 'landrush' plugin. This can take a few minutes... Installed the plugin 'landrush (1.1.2)'!