在 Mac 下安装缺失的 Gem, 但是安装成功后,ruby 程序还是无法加载,gem list 里面也没有。
安装过程:
16:25 WuQi@MBP ~/code/ruby/bdd/5 (master) $ sudo gem install shoulda
Password:
Fetching: shoulda-context-1.1.4.gem (100%)
Successfully installed shoulda-context-1.1.4
Fetching: i18n-0.6.4.gem (100%)
Successfully installed i18n-0.6.4
Fetching: multi_json-1.7.7.gem (100%)
Successfully installed multi_json-1.7.7
Fetching: tzinfo-0.3.37.gem (100%)
Successfully installed tzinfo-0.3.37
Fetching: atomic-1.1.10.gem (100%)
Building native extensions. This could take a while...
Successfully installed atomic-1.1.10
Fetching: thread_safe-0.1.0.gem (100%)
Successfully installed thread_safe-0.1.0
Fetching: activesupport-4.0.0.gem (100%)
Successfully installed activesupport-4.0.0
Fetching: shoulda-matchers-2.2.0.gem (100%)
Successfully installed shoulda-matchers-2.2.0
Fetching: shoulda-3.5.0.gem (100%)
Successfully installed shoulda-3.5.0
Parsing documentation for shoulda-context-1.1.4
Installing ri documentation for shoulda-context-1.1.4
Parsing documentation for i18n-0.6.4
Installing ri documentation for i18n-0.6.4
Parsing documentation for multi_json-1.7.7
Installing ri documentation for multi_json-1.7.7
Parsing documentation for tzinfo-0.3.37
Installing ri documentation for tzinfo-0.3.37
Parsing documentation for atomic-1.1.10
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for lib/atomic_reference.bundle, skipping
Installing ri documentation for atomic-1.1.10
Parsing documentation for thread_safe-0.1.0
Installing ri documentation for thread_safe-0.1.0
Parsing documentation for activesupport-4.0.0
unable to convert "\x80" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
Installing ri documentation for activesupport-4.0.0
Parsing documentation for shoulda-matchers-2.2.0
Installing ri documentation for shoulda-matchers-2.2.0
Parsing documentation for shoulda-3.5.0
Installing ri documentation for shoulda-3.5.0
9 gems installed
但是 gem list 还是找不到:
16:45 WuQi@MBP ~/code/ruby/bdd/4 (master) $ gem list shoulda
*** LOCAL GEMS ***
16:49 WuQi@MBP ~/code/ruby/bdd/4 (master) $