MacOSX 10.10.3 にアップデート

会社のMain MacOSX Serverを10.9から、ようやく10.10にアップデートした。

特に問題も無くOSはアップデート完了

しかし再起動後、Guardが動かない。

gem install guard

# gem install guard
Fetching: thor-0.19.1.gem (100%)
Successfully installed thor-0.19.1
Fetching: hitimes-1.2.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing guard:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin14/ruby/config.h', needed by `hitimes.o'.  Stop.


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

エラー出るです。
hitimes.oが必要やと?
gem をアップデートとかできんのやっけ?

調べてみる。
そのまでに、Xcodeをアップデートして、もう一度 gem installしてみます。

Building native extensions.  This could take a while...
ERROR:  Error installing guard:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hitimes-1.2.2/ext/hitimes/c/gem_make.out

エラーは減ったけど、肝心の ERROR: Failed to build gem native extension. 治ってない。

gem updateしてみる。

gem update
Updating installed gems
Updating CFPropertyList
Fetching: CFPropertyList-2.3.1.gem (100%)
Successfully installed CFPropertyList-2.3.1
Parsing documentation for CFPropertyList-2.3.1
Installing ri documentation for CFPropertyList-2.3.1
Installing darkfish documentation for CFPropertyList-2.3.1
Updating bigdecimal
Fetching: bigdecimal-1.2.7.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing bigdecimal:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/bigdecimal-1.2.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/bigdecimal-1.2.7/./gem_make.out
Updating json
Fetching: json-1.8.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing json:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/json-1.8.2/ext/json/ext/generator/gem_make.out
Updating libxml-ruby
Fetching: libxml-ruby-2.8.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing libxml-ruby:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/libxml-ruby-2.8.0 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/libxml-ruby-2.8.0/ext/libxml/gem_make.out
Updating minitest
Fetching: minitest-5.6.1.gem (100%)
Successfully installed minitest-5.6.1
Parsing documentation for minitest-5.6.1
Installing ri documentation for minitest-5.6.1
Installing darkfish documentation for minitest-5.6.1
Updating nokogiri
Fetching: mini_portile-0.6.2.gem (100%)
Successfully installed mini_portile-0.6.2
Fetching: nokogiri-1.6.6.2.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/gem_make.out
Updating psych
Fetching: psych-2.0.13.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing psych:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/psych-2.0.13 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/psych-2.0.13/ext/psych/gem_make.out
Updating rake
Fetching: rake-10.4.2.gem (100%)
rake's executable "rake" conflicts with /usr/bin/rake
Overwrite the executable? [yN]  
Updating rdoc
Fetching: rdoc-4.2.0.gem (100%)
rdoc's executable "rdoc" conflicts with /usr/bin/rdoc
Overwrite the executable? [yN]  
ERROR:  Error installing rdoc:
	"rdoc" from rdoc conflicts with /usr/bin/rdoc
Updating sqlite3
Fetching: sqlite3-1.3.10.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
	ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.10 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/sqlite3-1.3.10/ext/sqlite3/gem_make.out
Updating test-unit
Fetching: power_assert-0.2.3.gem (100%)
Successfully installed power_assert-0.2.3
Fetching: test-unit-3.0.9.gem (100%)
Successfully installed test-unit-3.0.9
Parsing documentation for power_assert-0.2.3
Installing ri documentation for power_assert-0.2.3
Installing darkfish documentation for power_assert-0.2.3
Parsing documentation for test-unit-3.0.9
Installing ri documentation for test-unit-3.0.9
Installing darkfish documentation for test-unit-3.0.9
Gems updated: CFPropertyList minitest mini_portile power_assert test-unit

やっぱ、ERROR: Failed to build gem native extension. が出るので、googleに聞いてみる。

その前に、xcodeのコンポーネントをアップデートあるはず。
xcodeを起動したら、思惑通りupdateの画面でた。
osx10-10

ここまで出来たから、
gemを再実行する。

# gem install guard
Building native extensions.  This could take a while...
Successfully installed hitimes-1.2.2
Fetching: timers-4.0.1.gem (100%)
Successfully installed timers-4.0.1
Fetching: celluloid-0.16.0.gem (100%)
Successfully installed celluloid-0.16.0
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: ffi-1.9.8.gem (100%)
Building native extensions.  This could take a while...
Successfully installed ffi-1.9.8
Fetching: rb-inotify-0.9.5.gem (100%)
Successfully installed rb-inotify-0.9.5
Fetching: listen-2.10.0.gem (100%)
Successfully installed listen-2.10.0
Fetching: coderay-1.1.0.gem (100%)
Successfully installed coderay-1.1.0
Fetching: slop-3.6.0.gem (100%)
Successfully installed slop-3.6.0
Fetching: method_source-0.8.2.gem (100%)
Successfully installed method_source-0.8.2
Fetching: pry-0.10.1.gem (100%)
Successfully installed pry-0.10.1
Fetching: lumberjack-1.0.9.gem (100%)
Successfully installed lumberjack-1.0.9
Fetching: formatador-0.2.5.gem (100%)
Successfully installed formatador-0.2.5
Fetching: nenv-0.2.0.gem (100%)
Successfully installed nenv-0.2.0
Fetching: shellany-0.0.1.gem (100%)
Successfully installed shellany-0.0.1
Fetching: notiffany-0.0.6.gem (100%)
Successfully installed notiffany-0.0.6
Fetching: guard-2.12.5.gem (100%)
Successfully installed guard-2.12.5
Parsing documentation for hitimes-1.2.2
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/hitimes/2.0/hitimes.bundle, skipping
Installing ri documentation for hitimes-1.2.2
Parsing documentation for timers-4.0.1
Installing ri documentation for timers-4.0.1
Parsing documentation for celluloid-0.16.0
Installing ri documentation for celluloid-0.16.0
Parsing documentation for rb-fsevent-0.9.4
Installing ri documentation for rb-fsevent-0.9.4
Parsing documentation for ffi-1.9.8
Installing ri documentation for ffi-1.9.8
Parsing documentation for rb-inotify-0.9.5
Installing ri documentation for rb-inotify-0.9.5
Parsing documentation for listen-2.10.0
Installing ri documentation for listen-2.10.0
invalid options: -SNw2
(invalid options are ignored)
Parsing documentation for coderay-1.1.0
Installing ri documentation for coderay-1.1.0
Parsing documentation for slop-3.6.0
Installing ri documentation for slop-3.6.0
Parsing documentation for method_source-0.8.2
Installing ri documentation for method_source-0.8.2
Parsing documentation for pry-0.10.1
Installing ri documentation for pry-0.10.1
Parsing documentation for lumberjack-1.0.9
Installing ri documentation for lumberjack-1.0.9
Parsing documentation for formatador-0.2.5
Installing ri documentation for formatador-0.2.5
Parsing documentation for nenv-0.2.0
Installing ri documentation for nenv-0.2.0
Parsing documentation for shellany-0.0.1
Installing ri documentation for shellany-0.0.1
Parsing documentation for notiffany-0.0.6
Installing ri documentation for notiffany-0.0.6
Parsing documentation for guard-2.12.5
Installing ri documentation for guard-2.12.5
17 gems installed
[\code]

guardは動くようになったのだが、guardのオプションが変わっているようだ。

# guard -help
Commands:
  _guard-core help [COMMAND]  # Describe available commands or one specific command
  _guard-core init [GUARDS]   # Generates a Guardfile at the current directory (if it is not alre...
  _guard-core list            # Lists Guard plugins that can be used with init
  _guard-core notifiers       # Lists notifiers and its options
  _guard-core show            # Show all defined Guard plugins and their options
  _guard-core start           # Starts Guard
  _guard-core version         # Show the Guard version

Usage:
  _guard-core start

Options:
  -c, [--clear=Auto clear shell before each action], [--no-clear]                                        
  -n, [--notify=Notifications feature], [--no-notify]                                                    
                                                                                                         # Default: true
  -d, [--debug=Show debug information], [--no-debug]                                                     
  -g, [--group=Run only the passed groups]                                                               
  -P, [--plugin=Run only the passed plugins]                                                             
  -w, [--watchdir=Specify the directories to watch]                                                      
  -G, [--guardfile=Specify a Guardfile]                                                                  
  -i, [--no-interactions=Turn off completely any Guard terminal interactions], [--no-no-interactions]    
  -B, [--no-bundler-warning=Turn off warning when Bundler is not present], [--no-no-bundler-warning]     
  -l, [--latency=Overwrite Listen's default latency]                                                     
  -p, [--force-polling=Force usage of the Listen polling listener], [--no-force-polling]                 
  -y, [--wait-for-delay=Overwrite Listen's default wait_for_delay]                                       
  -o, [--listen-on=Specify a network address to Listen on for file change events (e.g. for use in VMs)]  

Starts Guard

guard-shellが動かないのね。
OSX10.9 ruby version 1.8
OSX10.10 ruby version 2.0

これって、ruby gemでインストールしたものをすべて再インストールなのか?

やれるところまでやってみよう。

# gem install guard-shell
Fetching: guard-compat-1.2.1.gem (100%)
Successfully installed guard-compat-1.2.1
Fetching: guard-shell-0.7.1.gem (100%)
Successfully installed guard-shell-0.7.1
Parsing documentation for guard-compat-1.2.1
Installing ri documentation for guard-compat-1.2.1
Parsing documentation for guard-shell-0.7.1
Installing ri documentation for guard-shell-0.7.1
2 gems installed
# guard init shell
09:55:24 - INFO - Guardfile already includes shell guard

guard-shellはOK

gem install jabbot
Fetching: xmpp4r-0.5.6.gem (100%)
Successfully installed xmpp4r-0.5.6
Fetching: eventmachine-0.12.10.gem (100%)
Building native extensions.  This could take a while...
Successfully installed eventmachine-0.12.10
Fetching: jabbot-1.0.0.gem (100%)
Successfully installed jabbot-1.0.0
Parsing documentation for xmpp4r-0.5.6
Installing ri documentation for xmpp4r-0.5.6
Parsing documentation for eventmachine-0.12.10
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/fastfilereaderext.bundle, skipping
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/rubyeventmachine.bundle, skipping
Installing ri documentation for eventmachine-0.12.10
Parsing documentation for jabbot-1.0.0
Installing ri documentation for jabbot-1.0.0
3 gems installed

いろいろやったが動かん・・・
もう少し、調べて再チャレンジする。

カテゴリー: Mac

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

CAPTCHA