≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1669

Bug #1669: memcache gem build issues on 32-bit Fedora 8

Kind bug
Product wincent.dev
When Created 2010-08-31T07:30:58Z, updated 2010-09-01T19:38:08Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Installing this gem is causing a few nightmares and I am not sure what the best level to solve the problem is.

Upstream tickets:

  • http://github.com/ninjudd/memcache/issues/issue/4
  • https://bugs.launchpad.net/libmemcached/+bug/516774

Comments

  1. Greg Hurrell 2010-09-01T19:38:01Z

    As noted in the GitHub ticket, memcache 1.2.13 addresses this issue, and it is now possible to do:

    $ gem install memcache -- --disable-64bit "CFLAGS=\'-march=i686\'"

    And therefore also:

    $ bundle config build.memcache --disable-64bit "CFLAGS=\'-march=i686\'"

    (May be necessary to prefix that with sudo -u rails_user -H if you want the correct ~/.bundle/config file to be written to for the user your Rails app runs as.)

    For 1.2.12 the acceptable workaround is to build libmemcache first, then:

    $ env GEM_HOME=/path/to/shared/bundle/ruby/1.8 EXTERNAL_LIB=1 gem install memcache

    And then when running bundle install, pass it --path /path/to/shared/bundle.

  2. Greg Hurrell 2010-09-01T19:38:08Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets