Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jul 2011 18:56:21 +0200
From:      "Michael Ross" <michael.ross@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: error in installation of uwsgi
Message-ID:  <op.vya7z7slhalquq@michael-think>
In-Reply-To: <CAOturPzToPO-EOSOYF6kPHFWP-qPvJ6GTWEG0DTSMvFKkZP51A@mail.gmail.com>
References:  <CAOturPzToPO-EOSOYF6kPHFWP-qPvJ6GTWEG0DTSMvFKkZP51A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 08.07.2011, 17:23 Uhr, schrieb Zhong Yubin <zhongyb@gmail.com>:

> Hi,  I'm going to setup machine for developing web application in python.
> But some errors appear when I install uwsgi using ports. The following is
> the first I met:
>
> *cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> -pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra
> -Wno-unused-parameter -Wno-missing-field-initializers
> -DUWSGI_BUILD_DATE="\"08 July 2011 23:09:03\"" -DUWSGI_HAS_IFADDRS
> -DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE
> -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE
> -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION="\"0.9.8.1\""
> -DUWSGI_VERSION_BASE="0" -DUWSGI_VERSION_MAJOR="9"  
> -DUWSGI_VERSION_MINOR="8"
> -DUWSGI_VERSION_REVISION="1" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC
> -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML
> -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE  
> -I/usr/local/include/libxml2
> -I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3
> -DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER
> -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen);"
> -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen);"
> -In file included from plugins/python/uwsgi_python.h:2,*
> *                 from plugins/python/python_plugin.c:1:*
> */usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such  
> file or
> directory*
> *o spooler.o spooler.c*
> **** uWSGI compiling embedded plugins ****
> *
> *
> After sort of searching in google, I used following command to solve this
> problem.
>
> *ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.7/pth.h*
>
>
> Then I rebuilt this port again. The second error appeared.


I hit that one a few days ago. Haven't solved it.

If it's an option for you, you can compile Python without GNU Pth support.
This will solve your uwsgi installation problem.

Regards,

Michael



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vya7z7slhalquq>