methodmissing / rbczmq

Ruby extension that wraps the official high level ZeroMQ C API ( http://czmq.zeromq.org/ )
http://github.com/methodmissing/rbczmq
MIT License
125 stars 32 forks source link

Won't compile on OSX yosemite (pre-release) #30

Closed skandragon closed 10 years ago

skandragon commented 10 years ago

in' libtool: install: /usr/bin/install -c makecert /Users/explorer/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rbczmq-1.7.6/ext/rbczmq/dst/bin/makecert make[2]: Nothing to be done for install-data-am'. make[2]: Nothing to be done forinstall-exec-am'. make[2]: Nothing to be done for `install-data-am'. checking for rb_thread_blocking_region()... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

mattconnolly commented 10 years ago

I just compiled the gem and passed all tests on Mac OS X Yosemite using Xcode 6 build chain and ruby 2.1.1-p76 (installed through RVM) and it worked fine.

I'm not familiar with rbenv, and I haven't tried in ruby 2.1.2 yet. Can you confirm if it works for you in ruby 2.1.1?

mattconnolly commented 10 years ago

I've also just compiled it and passed all tests using ruby 2.1.2 on OS X 10.10 with Xcode 6 build chain.

skandragon commented 10 years ago

I fixed this by ensuring I did not have gcc-4.2 in my path and then re-installing ruby via "rbenv install 2.1.2"

I had gcc-4.2 in my path, probably from a bad idea (or a previous OS X install) so I had to fist remove gcc. I put them in a directory called "disabled-sma" so if needed, I could recover them.

From reports on other gems, I suspect I'm not the only one with a now ancient gcc-4.2 in their path, which for some reason Ruby prefers over plain old gcc.