我正在尝试使用Dokku部署Django应用程序。
我的requirements.txt包含需要预安装libmemcached的django-pylibmc。因此,当我推送我的repo时,它会失败,并显示以下消息:
remote: In file included from _pylibmcmodule.c:34:0:
remote:
remote: _pylibmcmodule.h:42:36: fatal error: libmemcached/memcached.h: No such file or directory
remote:
remote: compilation terminated.
remote:
remote: error: command 'gcc' failed with exit status 1
remote:我想用memcached plugin来解决这个问题,但据我所知,它只是创建了一个单独的容器来安装memcached。
所以问题是:我需要做什么才能使pip安装正常工作?我可以在独酷推送中加入apt-get install libmemcached步骤吗?
发布于 2014-02-01 05:32:38
找到解决方案here。这似乎也是Heroku的情况。正如答案所述,问题是heroku(dokku) python buildpack需要在requirements.txt中显式的pylibmc规范。
https://stackoverflow.com/questions/21487359
复制相似问题