Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EppO/200248 to your computer and use it in GitHub Desktop.
Save EppO/200248 to your computer and use it in GitHub Desktop.
require 'memcached' error on SnowLeopard
# ruby bench.rb
/opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle: dlopen(/opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle, 9): Symbol not found: _memcached_free (LoadError)
Referenced from: /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle
Expected in: flat namespace
in /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle - /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/memcached.rb:19
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from bench.rb:2
# ruby bench.rb
/opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle: dlopen(/opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle, 9): no suitable image found. Did find: (LoadError)
/opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle: no matching architecture in universal wrapper - /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/rlibmemcached.bundle
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/memcached-0.17.3/lib/memcached.rb:19
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from bench.rb:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment