Search code examples
ruby-on-railsrubyfaye

Error while installing gem: Faye- Failed to build gem native extension


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

    /home/path/../ruby extconf.rb

checking for rb_thread_blocking_region()... no
checking for rb_str_set_len()... yes
checking for sys/select.h... yes
checking for poll.h... yes
checking for sys/epoll.h... yes
checking for sys/event.h... no
checking for port.h... no
checking for openssl/ssl.h... yes
creating Makefile

version details Rails 2.3.14, ruby 1.8.7

what am i missing?


Solution

  • Sounds like you are missing a native binary. It looks like you are using Linux, it could be openssl that you are missing.

    You can install openssl with sudo apt-get install libssl-dev or the equivalent in your package manager.

    You will find a full trace of what went wrong in your_gem_path/.gems/faye/ext/gem_make.out