【问题标题】:Can't install egenix-mx-base on Django production VPS无法在 Django 生产 VPS 上安装 egenix-mx-base
【发布时间】:2010-04-15 22:27:26
【问题描述】:

我一直在关注这些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

感谢所有花时间帮助我的人。

【问题讨论】:

    标签: django postgresql deployment ubuntu-8.04


    【解决方案1】:

    手动安装:

    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】:

      将 Python2.7 virtualenv 切换到 Python2.6 解决了这个问题。

      【讨论】:

        猜你喜欢
        • 2020-09-13
        • 2013-01-22
        • 2014-12-28
        • 2012-08-05
        • 1970-01-01
        • 2021-06-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多