Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Install error #1

Closed
david-saracini opened this Issue June 21, 2012 · 3 comments

3 participants

David Saracini Randall Degges anakriya
David Saracini

Hello,

I'm unable to install the project from pip. Here is what I'm doing, what I'm using and the results.

Python 2.7.2
Django 1.3.1
Ubuntu 11.04
Memcached is installed locally.

Am I doing something wrong? Is there something I need to install before running pip install?

When I run:

$ pip install django-heroku-memcacheify

I get the following:

Requirement already satisfied (use --upgrade to upgrade): django-heroku-memcacheify in ./lib/python2.7/site-packages

Requirement already satisfied (use --upgrade to upgrade): Django>=1.2 in ./lib/python2.7/site-packages (from django-heroku-memcacheify)

Requirement already satisfied (use --upgrade to upgrade): django-pylibmc-sasl==0.2.4 in ./lib/python2.7/site-packages (from django-heroku-memcacheify)

Downloading/unpacking pylibmc==1.2.3 (from django-heroku-memcacheify)

Running setup.py egg_info for package pylibmc

Installing collected packages: pylibmc

Running setup.py install for pylibmc

building '_pylibmc' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c _pylibmcmodule.c -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing

In file included from _pylibmcmodule.c:34:0:

_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

Complete output from command /home/myusername/.venvs/myapp/bin/python -c "import setuptools;__file__='/home/myusername/.venvs/myapp/build/pylibmc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-v3QnHq-record/install-record.txt --install-headers /home/myusername/.venvs/myapp/include/site/python2.7:

running install

running build

running build_py

running build_ext

building '_pylibmc' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE_ZLIB -I/usr/include/python2.7 -c _pylibmcmodule.c -o build/temp.linux-i686-2.7/_pylibmcmodule.o -fno-strict-aliasing

In file included from _pylibmcmodule.c:34:0:

_pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1


Command /home/myusername/.venvs/myapp/bin/python -c "import setuptools;file='/home/myusername/.venvs/myapp/build/pylibmc/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-v3QnHq-record/install-record.txt --install-headers /home/myusername/.venvs/myapp/include/site/python2.7 failed with error code 1 in /home/myusername/.venvs/myapp/build/pylibmc

Storing complete log in /home/myusername/.pip/pip.log

(myapp)myusername@sprout-ubuntu-1110:~/.venvs/myapp$

Randall Degges
Owner

So, memcacheify requires the 'pylibmc' library to be installable (that's the driver that allows your code to talk to memcached). Anyhow, that's what is failing to install.

What you can do (on ubuntu) is run:

$ sudo apt-get -y install libmemcached-dev

Then try to re-install django-heroku-memcacheify, and everything should work fine. On Heroku, this isn't an issue--since they already have the C libraries installed for you :)

Randall Degges rdegges closed this June 21, 2012
David Saracini

That worked like a charm... thanks!

anakriya

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.