Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6636445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:11:13+00:00 2026-05-25T23:11:13+00:00

While trying to follow the python-libmemcached instructions at http://code.google.com/p/python-libmemcached/ I run into trouble at

  • 0

While trying to follow the python-libmemcached instructions at http://code.google.com/p/python-libmemcached/ I run into trouble at step 3 (“python setup.py install”)

    (gigmash_venv)m:python-libmemcached matthewparrilla$ python setup.py build
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.3-fat-2.7
    copying cmemcached.py -> build/lib.macosx-10.3-fat-2.7
    running build_ext
    building 'cmemcached_imp' extension
    creating build/temp.macosx-10.3-fat-2.7
    gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cmemcached_imp.c -o build/temp.macosx-10.3-fat-2.7/cmemcached_imp.o
    powerpc-apple-darwin9-gcc-4.0.1: cmemcached_imp.c: No such file or directory
    powerpc-apple-darwin9-gcc-4.0.1: no input files
    i686-apple-darwin9-gcc-4.0.1: cmemcached_imp.c: No such file or directory
    i686-apple-darwin9-gcc-4.0.1: no input files
    lipo: can't figure out the architecture type of: /var/folders/0o/0oHT3RmJF80rpIJtdbegzE+++TI/-Tmp-//cc9xQqQ6.out
    error: command 'gcc-4.0' failed with exit status 1

I have next to no idea what this means or what to do. I do have multiple versions of gcc on my comp (4.0 and 4.2) and have gleaned enough from googling it that that might matter. Totally lost otherwise.

Thanks in advance.

[Edit: After following @phihag’s instructions]

I’m now receiving an altogether different though still confusing error:

    (gigmash_venv)m:python-libmemcached matthewparrilla$ python setup.py build
    running build
    running build_py
    running build_ext
    building 'cmemcached_imp' extension
    gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cmemcached_imp.c -o build/temp.macosx-10.3-fat-2.7/cmemcached_imp.o
    cmemcached_imp.c:237:36:cmemcached_imp.c:237:36: error:  error: libmemcached/memcached.h: No such file or directory
    libmemcached/memcached.h: No such file or directory
    In file included from cmemcached_imp.c:238:
    split_mc.h:14: warning: ‘struct memcached_st’ declared inside parameter list
    split_mc.h:14: warning: its scope is only this definition or declaration, which is probably not what you want
    split_mc.h:17: warning: ‘struct memcached_st’ declared inside parameter list
    In file included from cmemcached_imp.c:238:
    split_mc.h:14: warning: ‘struct memcached_st’ declared inside parameter list
    (and this goes on for many many more lines)...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:11:13+00:00Added an answer on May 25, 2026 at 11:11 pm

    The error occurs because the file cmemcached_imp.c is not there, but must be compiled in this step.

    First, edit the file cmemcached_imp.pyx and fix the typo in line 506. Instead of

    sys.stderr.write("[cmemcached]%s only support string: %s" % (cmd, key))
    

    , it should say

    sys.stderr.write("[cmemcached]%s only support string: %s" % (cmd, keys))
    

    Then, install cython and execute

    $ cython cmemcached_imp.pyx
    

    cython should silently generate the file cmemcached_imp.c.

    While this will fix the immediate error, you may also need to replace

    ext_modules=[Extension('cmemcached_imp',
                ['cmemcached_imp.pyx', 'split_mc.c'],
    

    in setup.py with

    ext_modules=[Extension('cmemcached_imp',
                ['cmemcached_imp.c', 'split_mc.c'],
    

    In response to the edit:

    If you follow the instructions verbatim, you’ll additionally need to have libmemcached in your local directory. Execute

    $ ln -s $(pwd)/../libmemcached-0.40/libmemcached
    

    in python-libmemcached to achieve that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to integrate Yahoo Media Player into my own website, I want to
While trying to make one of my python applications a bit more robust in
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
I am an XCode novice. I am trying to follow these instructions . Clearly
I'm trying to insert items into a custom linked list, while keeping the list
While going through one of the problems in Python Challenge , I am trying
I'm trying to do some IP-lookup on Python Google Appengine like this: import pygeoip
Hey, I'm trying to learn a bit about Python so I decided to follow
I just installed Android NDK, r5b , and while trying to follow the steps
the body of my SP as follow...when i trying to run it then i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.