我正在尝试构建最新版本的pylibmc(1.2.2)以支持CentOS 6上的SASL。文档说构建需要libsasl2,我在/ usr / lib64 /中,但是,构建过程因为python包似乎没有识别库是否存在。
我用以下内容构建包: python setup.py install --with-libmemcached = / usr / local / lib --with-zlib --with-sasl2
然后运行测试: python runtests.py
nose.plugins.pylibmc: INFO: injected path: build/lib.linux-x86_64-2.6
nose.plugins.pylibmc: INFO: loaded _pylibmc from build/lib.linux-x86_64-2.6/_pylibmc.so
nose.plugins.pylibmc: INFO: libmemcached version: 0.51
nose.plugins.pylibmc: INFO: pylibmc version: 1.2.2
nose.plugins.pylibmc: INFO: support compression: True
nose.plugins.pylibmc: INFO: support sasl auth: False
....................
----------------------------------------------------------------------
Ran 20 tests in 4.839s
OK
有什么想法吗?
答案 0 :(得分:1)
pylibmc使用libmemcached,因此对于支持saml,您应该使用saml重建libmemcached,因为您需要安装saml libries,然后从源代码重建libmemcached。