Discussion:
Webboard: Fix PHP Extension Debian Squeeze 64bit
b***@mnogosearch.org
2013-03-01 05:56:44 UTC
Permalink
Author: Alexander Barkov
Email: ***@mnogosearch.org
Message:
Hi,
Hi,
anyony having trouble compiling the php extension on a 64 bit system with a relocation / fpic error caused by libmnogosearch?
do this: run the install.pl script with shared lib creation turned on
and set these environment variables before running make.
export CC='gcc -fPIC'
export CXX=_g++ -fPIC'
then go into the php extensions source directory and run phpize, configure, make.
Hope this helps you save some time.
Just tried on Ubuntu 64, it compiled without problems.

Can you please post output of these commands:

udm-config --version
udm-config --libs
udm-config --cflags


Also, try without install.pl, just run configure directly,
on a fresh source tree. For example,

rm -rf mnogosearch-3.3.13
tar -zxf mnogosearch-3.3.13.tar.gz
cd mnogosearch-3.3.13
./configure --with-mysql --prefix=/tmp/mnogosearch33test
make
make install
cd php
phpize
./configure --with-mnogosearch=/tmp/mnogosearch33test
make
Cheers
Jens
Reply: <http://www.mnogosearch.org/board/message.php?id=21514>

Loading...