# svn checkout http://svn.usrportage.de/php-mogilefs/trunk
# cd trunk
# phpize
# ../configure --with-php-config=/opt/php/bin/php-config
/**
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for mogilefs support... yes, shared
configure: error: Cannot find libneon
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for mogilefs support... yes, shared
configure: error: Cannot find libneon
如果是报了这样的错误就要安装neon-devel包。
yum install neon-devel就解决了。
**/
# make
# make install
修改/opt/php/etc/php.ini配置文件,添加以下内容:
extension=mogilefs.so