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$