Building native extensions. This could take a while... Exception `Gem::InstallError' at /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:623 - extconf failed: ruby extconf.rb install --debug cairo -- --with-cairo-dir=/opt/local checking for GCC... yes checking for cairo version (>= 1.2.0)... *** 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 --without-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=/opt/local/bin/ruby --with-pkg-config --without-pkg-config no Exception `Gem::Installer::ExtensionBuildError' at /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/installer.rb:334 - ERROR: Failed to build gem native extension. ruby extconf.rb install --debug cairo -- --with-cairo-dir=/opt/local checking for GCC... yes checking for cairo version (>= 1.2.0)... *** 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 --without-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=/opt/local/bin/ruby --with-pkg-config --without-pkg-config no Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/cairo-1.5.0 for inspection. Results logged to /opt/local/lib/ruby/gems/1.8/gems/cairo-1.5.0/gem_make.out ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension. ruby extconf.rb install --debug cairo -- --with-cairo-dir=/opt/local checking for GCC... yes checking for cairo version (>= 1.2.0)... *** 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 --without-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=/opt/local/bin/ruby --with-pkg-config --without-pkg-config no Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/cairo-1.5.0 for inspection. Results logged to /opt/local/lib/ruby/gems/1.8/gems/cairo-1.5.0/gem_make.out ==================ログはここまで================= cat /opt/local/lib/ruby/gems/1.8/gems/cairo-1.5.0/mkmf.log "gcc -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.10.0 -I. -I/opt/local/include -O2 -fno-common -pipe -fno-common -c conftest.c" checked program was: /* begin */ 1: /*top*/ 2: #ifndef __GNUC__ 3: # error 4: >>>>>> __GNUC__ undefined <<<<<< 5: #endif /* end */ port installed cairo The following ports are currently installed: cairo @1.4.10_0 (active) ruby -v ruby 1.8.6 (2007-09-23 patchlevel 110) [powerpc-darwin8.10.0] gcc -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5370)