install on linux with thread support

Thomas Wouters thomas at xs4all.net
Tue Aug 15 06:32:30 EDT 2000


On Tue, Aug 15, 2000 at 09:53:09AM +0530, Bhavin Turakhia wrote:
> At the moment I'm trying to install python on linux(Suse).

> # ./configure --prefix=/usr/local/python/ --with-thread

> # make
> .....
> .....
> gcc  -Xlinker -export-dynamic python.o \
>           ../libpython1.5.a  -lieee -ldl  -lpthread -lm  -o python
> ../libpython1.5.a(threadmodule.o): In function `t_bootstrap':
> /usr/local/python/Python-1.5.2/Modules/./threadmodule.c:223: undefined
> reference to `PyEval_AcquireThread'
> /usr/local/python/Python-1.5.2/Modules/./threadmodule.c:241: undefined
> reference to `PyEval_ReleaseThread'
> ../libpython1.5.a(threadmodule.o): In function
> `thread_PyThread_start_new_thread':
> /usr/local/python/Python-1.5.2/Modules/./threadmodule.c:281: undefined
> reference to `PyEval_InitThreads'
> collect2: ld returned 1 exit status
> make[1]: *** [link] Error 1
> make[1]: Leaving directory `/usr/local/python/Python-1.5.2/Modules' make:

Let me guess... You made Python from this source tree before, *without*
enabling threads. You can solve this by doing a 'make distclean' before
doing the configure. Make clean doesn't clean up enough :( If you modified
Modules/Setup (and it would be unwise not to!) be sure to back it up before
running 'make distclean', or re-edit it after the configure. 'make
distclean' will remove Modules/Setup. 

This will be less of a problem in 2.0, by the way, because threads are
enabled by default <wink>.

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list