PDA

View Full Version : Another Mac User wanting help



Euler
09-10-2015, 02:55 PM
So I know that many mac\avalon users have trouble with gtk bindings... and more importantly, Narost. I am one of them. So, I upgraded to yosemite today, hoping that would fix the problem, but sadly, I get this:


AwesomeGUY-MacBook-Air:~ AwesomeGuy$ sudo gem install gtk2 -v 2.2.0
Building native extensions. This could take a while...
ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.

/usr/local/opt/ruby/bin/ruby -r ./siteconf20150910-10097-1vzer6a.rb extconf.rb
checking for -Wall option to compiler... *** 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.

Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/Cellar/ruby/2.2.2/bin/$(RUBY_BASE_NAME)
/usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:571:in `block in try_compile'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:524:in `with_werror'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:571:in `try_compile'
from /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0/lib/mkmf-gnome2.rb:21:in `block in try_compiler_option'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:321:in `open'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:347:in `postpone'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for'
from /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0/lib/mkmf-gnome2.rb:20:in `try_compiler_option'
from /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0/lib/mkmf-gnome2.rb:25:in `<top (required)>'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from extconf.rb:15:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.2.0/gems/glib2-2.2.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-10/2.2.0/glib2-2.2.0/gem_make.out


so, what to do?

Gnomad
09-10-2015, 10:43 PM
My mac setup is completely fucked too, but I use rbenv to run multiple versions of ruby for more important shit, so I haven't bothered to try to sort it. Shame.