ice799/memprof — Issue #18: Symbol not found: __mh_bundle_header
Author: jfirebaugh
Created: 2011-11-15 18:28:28+00:00
State: open

OS X 10.7.2, MRI 1.8.7-p249 via RVM, everything compiled with GCC 4.2, `require "memprof"` produces:

```
LoadError: dlopen(/Users/john/.rvm/gems/ruby-1.8.7-p249/gems/memprof-0.3.10/lib/memprof.bundle, 9): Symbol not found: __mh_bundle_header
Referenced from: /Users/john/.rvm/gems/ruby-1.8.7-p249/gems/memprof-0.3.10/lib/memprof.bundle
Expected in: flat namespace
in /Users/john/.rvm/gems/ruby-1.8.7-p249/gems/memprof-0.3.10/lib/memprof.bundle - /Users/john/.rvm/gems/ruby-1.8.7-p249/gems/memprof-0.3.10/lib/memprof.bundle
from /Users/john/.rvm/gems/ruby-1.8.7-p249/gems/memprof-0.3.10/lib/memprof.bundle
from /Users/john/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
from (irb):6
```

I followed the advice of [this SO answer](http://stackoverflow.com/questions/7907855/ruby-1-8-7-symbol-not-found-error/7947504#7947504) to get it to work.