-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eventmachine v1.0.7 build fails on Mac OS/X with IRB Ruby 2.2.1: rb_thread_select undeclared #588
Comments
I notice that ext/extconf.rb doesn't find rb_wait_for_single_fd(), but this is declared in ruby/io.h
|
Sorry - clicked on the wrong button |
Weird, I wonder if the function header moved in 2.2.1? Can you try this? diff --git a/ext/extconf.rb b/ext/extconf.rb
index c21cdf1..953cb6e 100644
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -77,7 +77,7 @@ add_define 'HAVE_WRITEV' if have_func('writev', 'sys/uio.h')
add_define 'HAVE_RB_THREAD_FD_SELECT' if have_func('rb_thread_fd_select')
add_define 'HAVE_RB_FDSET_T' if have_type('rb_fdset_t', 'ruby/intern.h')
-have_func('rb_wait_for_single_fd')
+have_func('rb_wait_for_single_fd', 'ruby/io.h')
have_func('rb_enable_interrupt')
have_func('rb_time_new')
|
Does anyone know of a fix for this? Same issue here. |
I was able to fix this by downloading the xcode command line tools for xcode 6.2 on apple's developer server. The ones for 6.3 don't include the right header for some reason. |
@skunkworker do you know what libraries are included with the xcode command line tools that got this working? I don't really want to have to download xcode when I don't actually use it. |
@WillSewell you don't have to download xcode per se, just the command line utilities for 10.10.2/xcode 6.2. its only about 110mb. |
I see. Thanks. |
Same issue with ruby 2.2.2 |
Please update to Xcode 6.3.1 and/or Command Line Tools 6.3 with release date of Apr 21, 2015. The original buggy CLT 6.3 was released on Apr 9, 2015. |
Ruby 2.2.2, this did it for me. brew link openssl --force |
|
Unfortunately the homebrew workaround did not work for me :/ I'm trying to install eventmachine version 1.0.8 over ruby 2.2.3 on OSx 10.11.1 with command line tools Command_Line_Tools_OS_X_10.11_for_Xcode_7.1 |
brew link openssl --force , did the trick for me too |
|
|
|
worked for me 👍 |
it worked! thanks |
I am locking this issue. The original issue was resolved regarding XCode versions. The ongoing posts about solving the OpenSSL issue in OS X El Capitan by way of replacing the system OpenSSL with the HomeBrew OpenSSL libraries is probably not a good idea. Further discussion in #661 to find a better alternative for a forthcoming release that will work automatically on El Capitan. |
Regarding the El Capitan / OpenSSL issues, please try eventmachine-1.0.9, it should compile and install without error now. Discuss issues on #668. |
'gem install eventmachine' produces the following errors on Mac OS/X Yosemite 10.10.2, Ruby 2.2.1. This appears to be a similar issue as that for the move to Ruby 2.2 corrected by eventmachine v1.0.4
The text was updated successfully, but these errors were encountered: