Skip to content
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

Can't install on OS X 10.11 #677

Closed
cherring opened this issue Jan 15, 2016 · 1 comment
Closed

Can't install on OS X 10.11 #677

cherring opened this issue Jan 15, 2016 · 1 comment

Comments

@cherring
Copy link

Hi, I am unable to get event machine to install on El Capitan, and for the life of me cannot find a solution. It keeps looking for /usr/bin/g++-4.2, and I don't know why it keeps configuring that, as it does

gem install eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include
Fetching: eventmachine-1.0.9.1.gem (100%)
Building native extensions with: '--with-cppflags=-I/usr/local/opt/openssl/include'
This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.

/Users/chris/.rbenv/versions/2.1.8/bin/ruby extconf.rb --with-cppflags=-I/usr/local/opt/openssl/include

checking for main() in -lcrypto... yes
checking for main() in -lssl... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
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
checking for clock_gettime()... no
checking for gethrtime()... no
CXXFLAGS=$(cxxflags)
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling binder.cpp
make: /usr/bin/g++-4.2: No such file or directory
make: *** [binder.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/chris/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.9.1 for inspection.
Results logged to /Users/chris/.rbenv/versions/2.1.8/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-15/2.1.0-static/eventmachine-1.0.9.1/gem_make.out

@cherring
Copy link
Author

Ok, I had ruby in .rbenv/ that was installed from an older OS X that relied upon g++-4.2, deleting my .rbenv install and then re installing ruby and then my gems solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant