Python VS PHP
Guido van Rossum
guido at python.org
Tue Jan 1 00:12:10 EST 2002
"Cosmic_NTT" <sorpippo at libero.it> writes:
> Hi everybody and..... good 2K+2.
> OK, OK...Python & php cannot be used together : pcre linking
>
> It seems that python cannot be used in conjunction
> with PHP : the Make with both resulted in :
>
> ##########################
> /usr/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
> `pcre_study':
> /usr/src/bs/BUILD/Python-1.5.2/Modules/./pypcre.c:514: multiple definition
> of `pcre_malloc'
> modules/php4/libphp4.a(pcre.o):/tmp/php-4.1.0/ext/pcre/pcrelib/pcre.c:309:
> first defined here
> /usr/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
> `pcre_study':
> /usr/src/bs/BUILD/Python-1.5.2/Modules/./pypcre.c:516: multiple definition
> of `pcre_free'
> modules/php4/libphp4.a(pcre.o):/tmp/php-4.1.0/ext/pcre/pcrelib/pcre.c:309:
> first defined here
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[1]: *** [build-std] Error 2
> make: *** [build] Error 2
> #############################
>
> But how to solve the problem?
Try Python 2.0 or (preferably) later, they have a new regular
expression library (SRE) so you don't need pcre (it is still
available, but you can turn it off in the configuration easily).
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list