[Fixed]-Memcached on Heroku w/ Django : can't install pylibmc / memcacheify

31👍

I’ve talked to the friendly folks at Heroku and it seems like my requirements.txt setup was causing all the havoc. Don’t use a requirements file in root that imports from another requirements file! At least for pylibmc that’s not working because libmemcached doesn’t get bootstrapped if there is no explicit line with pylibmc in the root requirements file. I hope this will help others avoid wasting the 10 hrs I’ve spent on this problem. Yay!

👤tiwei

10👍

You need libmemcached installed.

You don’t need the development headers or anything, the regular ones are more than enough!

If you can’t install libmemcached, you can’t install pylibmc. Sorry about that but there’s not much to do about it.

There is a way to get around this but it’s a crap idea so message me if you want the details.

4👍

Have you tried something like libmemcached-dev, memcached-dev ? You need SOURCES of libmemcached !

2👍

Try this:

sudo apt-get install libmemcached-dev
👤duyvk

Leave a comment