I have recently installed MacPorts and been playing with a few things I do not understand (doh!). I am now not able to install any new gems. I have looked at this answer: Why does Ruby 1.9.2 blow up with a JSON gem dependency?
But I still cannot install it. here is what terminal spits back at me:
c028004:me richardjburton$ sudo gem install twitter_oauth
Fetching: twitter_oauth-0.4.3.gem (100%)
Successfully installed twitter_oauth-0.4.3
1 gem installed
Installing ri documentation for twitter_oauth-0.4.3...
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
-- control frame ----------
c:0019 p:---- s:0074 b:0074 l:000073 d:000073 CFUNC :callcc
c:0018 p:0080 s:0071 b:0071 l:0002e0 d:0002e0 TOP /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38
c:0017 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0016 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC :require
c:0015 p:0053 s:0062 b:0062 l:001a78 d:001a78 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0014 p:0030 s:0055 b:0055 l:0026c8 d:0026c8 METHOD /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:5
c:0013 p:0080 s:0052 b:0052 l:000048 d:000048 METHOD /Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:59
c:0012 p:0021 s:0049 b:0049 l:000af8 d:000af8 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116
c:0011 p:0037 s:0046 b:0046 l:001bb0 d:000ec0 BLOCK /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148
c:0010 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0009 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC :each
c:0008 p:0200 s:0038 b:0038 l:001bb0 d:001bb0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147
c:0007 p:0076 s:0032 b:0032 l:000f30 d:000f30 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278
c:0006 p:0193 s:0028 b:0028 l:000fb0 d:000fb0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147
c:0005 p:0013 s:0022 b:0022 l:001028 d:001028 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117
c:0004 p:0178 s:0017 b:0017 l:0010b0 d:0010b0 METHOD /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65
c:0003 p:0267 s:0009 b:0009 l:0004e8 d:001d60 EVAL /Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/bin/gem:25
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0004e8 d:0004e8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/bin/gem:25:in `<main>'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `process_args'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `execute'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `each'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148:in `block in execute'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116:in `generate_ri'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:59:in `install_ri_yard'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard/rubygems/doc_manager.rb:5:in `load_yardoc'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/richardjburton/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38:in `<top (required)>'
/Users/richardjburton/.rvm/gems/ruby-1.9.2-p290/gems/yard-0.7.3/lib/yard.rb:38:in `callcc'
-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x00000001097834ae rb_vm_bugreport + 110
1 libruby.1.9.1.dylib 0x00000001096774c3 report_bug + 259
2 libruby.1.9.1.dylib 0x0000000109677631 rb_bug + 161
3 libruby.1.9.1.dylib 0x0000000109719f42 sigbus + 18
4 libsystem_c.dylib 0x00007fff91a97cfa _sigtramp + 26
5 ??? 0x00007fff6924313e 0x0 + 140734957367614
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
As always, any help would be be amazing.
Seems your gem installed succeeded, but failed at generating RI document. If you still want to use macport ,you can try install with --no-ri to skip it. It maybe OK for you.
Another, please try to uninstall the ruby with macport, and only use rvm. Maybe you need to try to reinstall rvm too.
Related
I've tried install cocoapods many different ways but am running into a nasty error
When I run pod list i get the following error
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0039 p:---- s:0221 e:000220 CFUNC :getdtablesize
c:0038 p:0050 s:0217 e:000216 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
c:0037 p:0075 s:0214 e:000213 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27
c:0036 p:0007 s:0211 e:000210 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3
c:0035 p:0007 s:0208 e:000207 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:2 [FINISH]
c:0034 p:---- s:0205 e:000204 CFUNC :require
c:0033 p:0110 s:0200 e:000199 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0032 p:0128 s:0188 e:000187 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:29
c:0031 p:0007 s:0185 e:000184 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:14
c:0030 p:0049 s:0182 e:000181 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:9 [FINISH]
c:0029 p:---- s:0179 e:000178 CFUNC :require
c:0028 p:0110 s:0174 e:000173 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0027 p:0049 s:0162 e:000161 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:16 [FINISH]
c:0026 p:---- s:0159 e:000158 CFUNC :require
c:0025 p:0110 s:0154 e:000153 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0024 p:0013 s:0142 e:000141 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0023 p:---- s:0139 e:000138 CFUNC :require
c:0022 p:0110 s:0134 e:000133 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0021 p:0006 s:0122 e:000121 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440
c:0020 p:0045 s:0114 e:000113 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372
c:0019 p:0318 s:0103 e:000102 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365
c:0018 p:0006 s:0093 e:000092 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338
c:0017 p:0059 s:0088 e:000087 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53
c:0016 p:0021 s:0084 e:000083 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31
c:0015 p:0030 s:0079 e:000078 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30 [FINISH]
c:0014 p:---- s:0074 e:000073 CFUNC :new
c:0013 p:0068 s:0069 e:000065 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315 [FINISH]
c:0012 p:0039 s:0061 E:0023b8 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322
c:0011 p:0007 s:0054 e:000053 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331 [FINISH]
c:0010 p:---- s:0050 e:000049 CFUNC :map
c:0009 p:0006 s:0046 e:000045 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331
c:0008 p:0008 s:0040 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26
c:0007 p:0015 s:0036 e:000035 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/list.rb:23
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:001dc0 EVAL /usr/local/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:000df0 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/pod:23:in `<main>'
/usr/local/bin/pod:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/list.rb:23:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26:in `aggregate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `aggregate_with_repos'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331:in `block in aggregate_with_repos'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322:in `source_from_path'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315:in `block in source_from_path'
*** NOTE DELETED MANY LINES AS EXCEEDED QUESTION LIMIT***
551 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/libc.rb
552 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/codes.rb
553 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/options.rb
554 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/infos.rb
555 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/form_options.rb
556 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/messages.rb
557 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/functions.rb
558 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/constants.rb
559 /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/settings.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
[1] 13276 abort pod list
Does anybody have a clue what I might have done wrong when installing cocoapods on m1? I haven't seen this being an issue with others.
Any help greatly appreciated!
for anyone else who runs into this issue, I was able to solve via this post
https://github.com/CocoaPods/CocoaPods/issues/9890
Specifically by running the following command
arch -x86_64 pod install in my terminal running on x86 via Rosetta
The issue seemed to stem from ethon dependency which was not playing nice until I did the above
I have same problem, and It's fine after upgrade ruby to 3.0.3.
brew update
brew install ruby
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
Like Derek Chen wrote, the problem is solved by upgrading to Ruby 3.
I suggest using rvm for this purpose.
Install rvm:
curl -sSL https://get.rvm.io | bash
Install the latest stable version of Ruby using rvm:
rvm install 3.1.2
rvm use 3.1.2 --default
Install CocoaPods:
gem install cocoapods
I am following a tutorial to create an IOS app using a Google Maps with cocoa pods.
The command pod install crashes. I am thinking of a env problem because the command pod env crashes...
I have tried to open an issue on cocoa github but they as closed it immediately as "not an issue of cocoa pods" without giving any help...
I have tried to reinstall homebrew, ruby, xcode command tools line as I have seen it on some posts.
➜ ~ which ruby
/opt/homebrew/opt/ruby/bin/ruby
➜ ~ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin21]
Here is the log trace
➜ ~ pod env
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x00000001041ec000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0044 p:---- s:0260 e:000259 CFUNC :getdtablesize
c:0043 p:0050 s:0256 e:000255 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
c:0042 p:0075 s:0253 e:000252 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27
c:0041 p:0007 s:0250 e:000249 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3
c:0040 p:0007 s:0247 e:000246 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:2 [FINISH]
c:0039 p:---- s:0244 e:000243 CFUNC :require
c:0038 p:0110 s:0239 e:000238 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0037 p:0128 s:0227 e:000226 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:29
c:0036 p:0007 s:0224 e:000223 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:14
c:0035 p:0049 s:0221 e:000220 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curl.rb:9 [FINISH]
c:0034 p:---- s:0218 e:000217 CFUNC :require
c:0033 p:0110 s:0213 e:000212 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0032 p:0049 s:0201 e:000200 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon.rb:16 [FINISH]
c:0031 p:---- s:0198 e:000197 CFUNC :require
c:0030 p:0110 s:0193 e:000192 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0029 p:0013 s:0181 e:000180 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0028 p:---- s:0178 e:000177 CFUNC :require
c:0027 p:0110 s:0173 e:000172 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0026 p:0006 s:0161 e:000160 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:440
c:0025 p:0045 s:0153 e:000152 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:372
c:0024 p:0318 s:0142 e:000141 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:365
c:0023 p:0006 s:0132 e:000131 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:338
c:0022 p:0059 s:0127 e:000126 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:53
c:0021 p:0021 s:0123 e:000122 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source.rb:31
c:0020 p:0030 s:0118 e:000117 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb:30 [FINISH]
c:0019 p:---- s:0113 e:000112 CFUNC :new
c:0018 p:0068 s:0108 e:000104 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:315 [FINISH]
c:0017 p:0039 s:0100 E:0005a8 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:322
c:0016 p:0007 s:0093 e:000092 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331 [FINISH]
c:0015 p:---- s:0089 e:000088 CFUNC :map
c:0014 p:0006 s:0085 e:000084 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:331
c:0013 p:0008 s:0079 e:000078 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:26
c:0012 p:0004 s:0075 e:000074 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60
c:0011 p:0016 s:0071 e:000070 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173
c:0010 p:0070 s:0067 e:000051 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77
c:0009 p:0012 s:0045 e:000044 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:38
c:0008 p:0006 s:0041 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:26
c:0007 p:0011 s:0036 e:000034 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:20
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:000cc0 EVAL /usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:000770 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in `<main>'
/usr/local/Cellar/cocoapods/1.11.2_1/libexec/bin/pod:23:in `load'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:20:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:26:in `report'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb:38:in `stack'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:77:in `stack'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:173:in `repo_information'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/source/manager.rb:60:in `all'
[...]
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
[1] 19216 abort pod env
PS : I am on Mac M1 version 12.0.1 and Xcode 13.1
OK so the solution is following:
I enabled Rosetta for the Terminal app. (Don't forget to re-open the app afterwards.) I don't know if this is step is necessary but I did it like that and it worked so if you skip this step and the following steps are not working, try also this one 😊
Install ffi
sudo arch -x86_64 gem install ffi
Re-install dependencies
arch -x86_64 pod install
The original solution is here: How to running CocoaPods on Apple Silicon (M1)
(Edited to include full error msg)
All of a sudden any gem command throws the following error:
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-12/2.0.0/psych-2.0.6/psych.bundle: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.5.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
-- Control frame information -----------------------------------------------
c:0014 p:-17529742134590 s:0075 e:000074 TOP [FINISH]
c:0013 p:---- s:0073 e:000072 CFUNC :require
c:0012 p:0115 s:0069 e:000068 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0011 p:0007 s:0059 e:000058 TOP /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:1 [FINISH]
c:0010 p:---- s:0057 e:000056 CFUNC :require
c:0009 p:0115 s:0053 e:000052 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55
c:0008 p:0078 s:0043 e:000042 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb:601
c:0007 p:0013 s:0039 e:000038 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:328
c:0006 p:0145 s:0033 e:000032 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:197 [FINISH]
c:0005 p:---- s:0022 e:000021 CFUNC :new
c:0004 p:0018 s:0018 e:000016 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74
c:0003 p:0018 s:0013 e:000012 METHOD /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:39
c:0002 p:0115 s:0007 E:0015e0 EVAL /usr/local/Cellar/ruby/2.0.0-p353/bin/gem:21 [FINISH]
c:0001 p:0000 s:0002 E:000278 TOP [FINISH]
/usr/local/Cellar/ruby/2.0.0-p353/bin/gem:21:in <main>'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:39:inrun'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:in do_configuration'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb:74:innew'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:197:in initialize'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb:328:inload_file'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb:601:in load_yaml'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/psych-2.0.6/lib/psych.rb:1:in'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'
/usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
Loaded script: /usr/local/Cellar/ruby/2.0.0-p353/bin/gem
Loaded features:
0 enumerator.so
1 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/enc/encdb.bundle
2 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/enc/trans/transdb.bundle
3 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/rbconfig.rb
4 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/compatibility.rb
5 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/defaults.rb
6 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/deprecate.rb
7 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/errors.rb
8 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/version.rb
9 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/requirement.rb
10 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/platform.rb
11 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb
12 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/stub_specification.rb
13 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/util/stringio.rb
14 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb
15 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/exceptions.rb
16 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
17 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/thread.rb
18 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/monitor.rb
19 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb
20 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb
21 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/optparse.rb
22 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/io/console.bundle
23 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/user_interaction.rb
24 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/command.rb
25 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/command_manager.rb
26 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/2.0.0/x86_64-darwin12.5.0/etc.bundle
27 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb
28 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/path_support.rb
29 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb
30 /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/gem_runner.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap: 6
Any insight is greatly appreciated.
In comments, the OP said:
Actually, checking the app/updates it appears my Xcode was updated. However I have not upgraded to Yosemite.
Upgrades to Apple's Xcode can break things in surprising ways. Whenever Xcode is updated, or OS X system libraries are upgraded, it can often help to do some or all of the following:
Accept the new Xcode license agreement. You need to do this after each upgrade, even if you've accepted the agreement before.
Installing the Xcode command line tools again.
Re-install any non-system Ruby versions, and recompile gems with native extensions.
I'm developing ruby application in vim. When I run rspec from vim (using :!rspec), I got this strange error. Can anyone point me to the right direction and find out what the problem is? And why its fine if I use spec outside of vim?
rspec spec/telepresence_api/user_spec.rb
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
-- Control frame information -----------------------------------------------
c:0021 p:-17587624402138 s:0089 e:000088 TOP [FINISH]
c:0020 p:---- s:0087 e:000086 CFUNC :require
c:0019 p:0073 s:0083 e:000082 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45
c:0018 p:0186 s:0073 e:000072 TOP /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri.rb:28 [FINISH]
c:0017 p:---- s:0071 e:000070 CFUNC :require
c:0016 p:0059 s:0067 e:000066 BLOCK /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110
c:0015 p:0286 s:0064 e:000063 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35
c:0014 p:0007 s:0054 e:000053 TOP /Users/runfor/Projects/telepresence_api/lib/telepresence_api.rb:1 [FINISH]
c:0013 p:---- s:0052 e:000051 CFUNC :require_relative
c:0012 p:0007 s:0048 e:000047 TOP /Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1 [FINISH]
c:0011 p:---- s:0046 e:000045 CFUNC :require
c:0010 p:0073 s:0042 e:000041 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45
c:0009 p:0007 s:0032 e:000031 TOP /Users/runfor/Projects/telepresence_api/spec/telepresence_api/user_spec.rb:1 [FINISH]
c:0008 p:---- s:0030 e:000029 CFUNC :load
c:0007 p:0018 s:0026 e:000025 BLOCK /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896 [FINISH]
c:0006 p:---- s:0023 e:000022 CFUNC :each
c:0005 p:0011 s:0020 e:000019 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896
c:0004 p:0054 s:0017 e:000016 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22
c:0003 p:0101 s:0012 e:000011 METHOD /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80
c:0002 p:0044 s:0005 e:000004 BLOCK /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17 [FINISH]
c:0001 p:0000 s:0002 E:0005d8 TOP [FINISH]
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in `run'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in `run'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load_spec_files'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `each'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in `load'
/Users/runfor/Projects/telepresence_api/spec/telepresence_api/user_spec.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1:in `<top (required)>'
/Users/runfor/Projects/telepresence_api/spec/spec_helper.rb:1:in `require_relative'
/Users/runfor/Projects/telepresence_api/lib/telepresence_api.rb:1:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
/Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
-- C level backtrace information -------------------------------------------
-- Other runtime information -----------------------------------------------
* Loaded script: /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/bin/rspec
* Loaded features:
0 enumerator.so
1 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/enc/encdb.bundle
2 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/enc/trans/transdb.bundle
3 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb
4 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/compatibility.rb
5 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/defaults.rb
6 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/deprecate.rb
7 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/errors.rb
8 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/version.rb
9 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/requirement.rb
10 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/platform.rb
11 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb
12 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/exceptions.rb
13 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
14 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
15 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems.rb
16 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb
17
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/path_support.rb
18 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/set.rb
19 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/date_core.bundle
20 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/date/format.rb
21 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/date.rb
22 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/time.rb
23 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/filter_manager.rb
24 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/dsl.rb
25 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/kernel.rb
26 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/instance_eval_with_args.rb
27 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/module_eval_with_args.rb
28 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/extensions/ordered.rb
29 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/deprecation.rb
30 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/backward_compatibility.rb
31 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/reporter.rb
32 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/metadata_hash_builder.rb
33 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/hooks.rb
34 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/memoized_helpers.rb
35 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/metadata.rb
36 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/pending.rb
37 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/formatters.rb
38 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/world.rb
39 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/etc.bundle
40 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb
41 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/backtrace_cleaner.rb
42 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/pathname.bundle
43 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb
44 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/ruby_project.rb
45 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/formatters/deprecation_formatter.rb
46 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb
47 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/project_initializer.rb
48 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/optparse.rb
49 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/option_parser.rb
50 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/cgi/util.rb
51 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/strscan.bundle
52 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/erb.rb
53 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/shellwords.rb
54 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/configuration_options.rb
55 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb
56 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb
57 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/example.rb
58 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group/collection.rb
59 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/shared_example_group.rb
60 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/example_group.rb
61 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core/version.rb
62 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/core.rb
63 /Users/runfor/.rvm/gems/ruby-2.0.0-p247#telepresence/gems/rspec-core-2.14.7/lib/rspec/autorun.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Command terminated
Press ENTER or type command to continue
It occurs, that vim loads the different ruby version.
The ruby version I use is:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]
but vim loads this one:
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal-darwin13.0.0]
This article explains why this happen. One of the reasons is that I'm using zsh. So basically to fix this I added set shell=/bin/sh to my .vimrc file. Now it loads the right ruby.
seems to be linked with native library provided by Apple.
I've fixed this problem by reinstall ruby.
rvm reinstall 2.0.0-p247 --disable-binary --autolibs=3
I am using rugged gem which uses libgit2 to operate on a git repository. It works fine, but the extension does something weird and interfere in other library's functionality. In my case net/http starts to throw exceptions.
In my case this is the test code:
require 'net/http'
require 'uri'
require 'rugged'
#repo = Rugged::Repository.new(".")
#commits = []
#i = 0
walker = #repo.walk(#repo.head.target)
walker.each { |c|
#commits << c
break if #i > 2
#i += 1
}
while true
resource_uri = URI.parse("http://twitter.com/BigDataSG/status/182426904740102144")
response = Net::HTTP.start(resource_uri.host, resource_uri.port) do |http|
http.get(resource_uri.path, {'X-Token' => "TacoBell"}).....
end
puts response.body[0...140]
end
It results in
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141: [BUG] rb_gc_mark(): unknown data type 0x12(0x7fd31213aeb0) non object
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
-- Control frame information -----------------------------------------------
c:0020 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC :read_nonblock
c:0019 p:0025 s:0091 b:0090 l:000089 d:000089 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141
c:0018 p:0090 s:0087 b:0087 l:000086 d:000086 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:92
c:0017 p:0067 s:0079 b:0079 l:000078 d:000078 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2755
c:0016 p:0102 s:0074 b:0074 l:000073 d:000073 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2710
c:0015 p:0043 s:0068 b:0068 l:001ee0 d:000067 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1029
c:0014 p:0017 s:0064 b:0064 l:000048 d:000063 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1322
c:0013 p:0042 s:0062 b:0062 l:000061 d:000061 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2671
c:0012 p:0106 s:0057 b:0057 l:000048 d:000056 BLOCK /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1321
c:0011 p:---- s:0055 b:0055 l:000054 d:000054 FINISH
c:0010 p:---- s:0053 b:0053 l:000052 d:000052 CFUNC :catch
c:0009 p:0025 s:0049 b:0049 l:000048 d:000048 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316
c:0008 p:0097 s:0043 b:0043 l:000042 d:000042 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293
c:0007 p:0094 s:0036 b:0036 l:001ee0 d:001ee0 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1026
c:0006 p:0026 s:0028 b:0028 l:0015d8 d:000027 BLOCK test.rb:19
c:0005 p:0057 s:0025 b:0025 l:000024 d:000024 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745
c:0004 p:0182 s:0022 b:0022 l:000021 d:000021 METHOD /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557
c:0003 p:0174 s:0009 b:0009 l:0015d8 d:000610 EVAL test.rb:18
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0015d8 d:0015d8 TOP
-- Ruby level backtrace information ----------------------------------------
test.rb:18:in `<main>'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in `start'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in `start'
test.rb:19:in `block in <main>'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1026:in `get'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in `request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1321:in `block in transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2671:in `reading_body'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1322:in `block (2 levels) in transport_request'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1029:in `block in get'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2710:in `read_body'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2755:in `read_body_0'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:92:in `read'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock'
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
-- Other runtime information -----------------------------------------------
* Loaded script: test.rb
* Loaded features:
0 enumerator.so
1 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/encdb.bundle
2 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/enc/trans/transdb.bundle
3 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb
4 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/rbconfig.rb
5 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb
6 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb
7 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb
8 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb
9 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/socket.bundle
10 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/socket.rb
11 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb
12 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb
13 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/common.rb
14 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/generic.rb
15 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ftp.rb
16 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/http.rb
17 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/https.rb
18 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldap.rb
19 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/ldaps.rb
20 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri/mailto.rb
21 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/uri.rb
22 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/zlib.bundle
23 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.3.0/stringio.bundle
24 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb
25 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/version.rb
26 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb
27 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb
28 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb
29 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb
30 /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb
31 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/rugged.bundle
32 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/index.rb
33 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/objects.rb
34 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/version.rb
35 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/repository.rb
36 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/walker.rb
37 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged/tree.rb
38 /Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rugged-0.16.0/lib/rugged.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Abort trap: 6
This problem happens because the native extension is compiled against old libgit2.
What you need to do is clone latest rugged repository , rake compile and then "gem build rugged.gemspec". Finally just install the resultant gem using 'gem i rugged-x.x.x.gem'