代码之家  ›  专栏  ›  技术社区  ›  Shane

无法在Django生产VPS上安装egenix mx

  •  5
  • Shane  · 技术社区  · 14 年前

    我一直在跟踪这些 instructions 用于使用postgres、apache、nginx和memcache设置Django生产服务器。我的问题是我无法安装egenix mx base,没有它,我无法让psycopg2工作,因此无法访问数据库:(。

    我正在一个运行Ubuntu Hardy(8.04)的干净安装的VPS上尝试这一点,并且已经遵循了站点上的所有说明。

    错误消息如下:

    $ easy_install egenix-mx-base
    Searching for egenix-mx-base
    Reading http://pypi.python.org/simple/egenix-mx-base/
    Reading http://www.egenix.com/products/python/mxBase/
    Reading http://www.lemburg.com/python/mxExtensions.html
    Reading http://www.egenix.com/
    Best match: egenix-mx-base 3.1.3
    Downloading http://downloads.egenix.com/python/egenix-mx-base-3.1.3.tar.gz
    Processing egenix-mx-base-3.1.3.tar.gz
    Running egenix-mx-base-3.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iF7qzl/egenix-mx-base-3.1.3/egg-dist-tmp-laxvcS
    Warning: Can't read registry to find the necessary compiler setting
    Make sure that Python modules _winreg, win32api or win32con are installed.
    In file included from mx/TextTools/mxTextTools/mxte.c:42:
    mx/TextTools/mxTextTools/mxte_impl.h: In function ‘mxTextTools_TaggingEngine’:
    mx/TextTools/mxTextTools/mxte_impl.h:345: warning: pointer targets in initialization differ in signedness
    mx/TextTools/mxTextTools/mxte_impl.h:364: warning: pointer targets in initialization differ in signedness
    mx/URL/mxURL/mxURL.c: In function ‘mxURL_SetFromString’:
    mx/URL/mxURL/mxURL.c:676: warning: pointer targets in initialization differ in signedness
    mx/UID/mxUID/mxUID.c: In function ‘mxUID_Verify’:
    mx/UID/mxUID/mxUID.c:333: warning: pointer targets in passing argument 1 of ‘sscanf’ differ in signedness
    mx/UID/mxUID/mxUID.c: In function ‘mxUID_New’:
    mx/UID/mxUID/mxUID.c:462: warning: pointer targets in passing argument 1 of ‘mxUID_CRC16’ differ in signedness
    error: Setup script exited with error: build/bdist.linux-x86_64-py2.5_ucs4/dumb/egenix_mx_base-3.1.3-py2.5.egg-info: Is a directory
    

    2 回复  |  直到 14 年前
        1
  •  3
  •   m1k3lm    14 年前

    手动安装:

    cd /usr/src
    wget http://downloads.egenix.com/python/egenix-mx-base-3.1.3.tar.gz
    tar -xzvf egenix-mx-base-3.1.3.tar.gz
    cd egenix-mx-base-3.1.3
    python setup.py install
    
        2
  •  0
  •   iElectric    13 年前

    将Python2.7 virtualenv转换为Python2.6解决了这个问题。

    推荐文章