我正在尝试在Ubuntu10.04LTS上构建并安装M2Crypto。我下载并解压了M2Crypto-0.20.2.tar,并从M2Crypto-0.20.2目录中尝试了 python setup.py build 。我得到了一个错误,因为我没有swig。所以我运行了 sudo apt-get install swig 。然后我再次尝试 python setup.py build ,得到了:
python setup.py build
sudo apt-get install swig
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) running build running build_py running build_ext building 'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -I/usr/include/python2.6 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i SWIG/_bio.i:64: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_rand.i:19: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_evp.i:156: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_dh.i:36: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_rsa.i:43: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_dsa.i:31: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_ssl.i:207: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_x509.i:313: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:42: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:42: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_util.i:9: Warning(454): Setting a pointer/reference variable may leak memory. SWIG/_ec.i:111: Warning(454): Setting a pointer/reference variable may leak memory.