2013-01-13 34 views
0

我目前在Heroku上使用uwsgi + gevent + bottle,python 2.7.3。它曾經工作得很好。由於heroku引入了'runtime.txt'功能,每當我將構建推送到heroku時,我都遇到了uWSGI編譯問題。有誰知道解決方法?ukugi on heroku無法編譯

Counting objects: 2717, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (1127/1127), done. 
Writing objects: 100% (2717/2717), 462.10 KiB | 144 KiB/s, done. 
Total 2717 (delta 2008), reused 2073 (delta 1572) 
-----> Python app detected 
-----> Preparing Python runtime (python-2.7.3) 

[...] 

    /usr/local/lib/libpython2.7.a(posixmodule.o): In function `posix_tmpnam': 

    /tmp/Python-2.7.2/./Modules/posixmodule.c:7370: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' 

    /usr/local/lib/libpython2.7.a(posixmodule.o): In function `posix_tempnam': 

    /tmp/Python-2.7.2/./Modules/posixmodule.c:7317: warning: the use of `tempnam' is dangerous, better use `mkstemp' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libldap.so: undefined reference to `[email protected]' 

    *** error linking uWSGI *** 
    collect2: ld returned 1 exit status 

    ---------------------------------------- 
    Command /app/.heroku/python/bin/python -c "import setuptools;__file__='/app/build/uWSGI/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-N4yIW1-record/install-record.txt failed with error code 1 in /app/build/uWSGI 

回答

1

它看起來像他們的libldap安裝中斷(它缺少sasl符號)。你可以重建uWSGI,迫使它不檢測ldap,編輯buildconf/base.ini