php-doc-en/reference/eio/configure.xml

93 lines
2.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="eio.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.install;
<para>Basically, <option role="configure">--with-eio[=DIR]</option> option is
enough to install the extension. But you might want to make output more
verbose(to debug), or change shared memory key and permissions used for
internal event loop. The following is a list of additional configuration
flags and options.</para>
<para><option role="configure">--enable-eio-debug</option> makes output(logging)
more verbose.</para>
<para>On <emphasis>Gentoo</emphasis> you may have problems
compiling(<emphasis>`make`</emphasis>) the code. If so, you've likely got output
similar to the following:
<screen>
<![CDATA[
$ make
/bin/sh /home/ruslan/projects/pecl/svn/eio/libtool --mode=compile cc -Wall -g
-ggdb -O0 -DEIO_DEBUG -I. -I/home/ruslan/projects/pecl/svn/eio -DPHP_ATOM_INC
-I/home/ruslan/projects/pecl/svn/eio/include
-I/home/ruslan/projects/pecl/svn/eio/main -I/home/ruslan/projects/pecl/svn/eio
-I/usr/lib64/php5.3/include/php -I/usr/lib64/php5.3/include/php/main
-I/usr/lib64/php5.3/include/php/TSRM -I/usr/lib64/php5.3/include/php/Zend
-I/usr/lib64/php5.3/include/php/ext
-I/usr/lib64/php5.3/include/php/ext/date/lib -I/usr/local/include
-DHAVE_CONFIG_H -Wall -g -ggdb -O0 -DEIO_DEBUG -c
/home/ruslan/projects/pecl/svn/eio/eio.c -o eio.lo
/home/ruslan/projects/pecl/svn/eio/libtool: line 481: CDPATH: command not
found
libtool: Version mismatch error. This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make: *** [eio.lo] Error 63
]]>
</screen>
The following fixes it:
<screen>
<![CDATA[
$ phpize --clean ; phpize
$ aclocal
$ libtoolize --force
$ autoreconf
$ ./configure --with-eio # further optional parameters ...
$ make && make test
$ su -
# make install
]]>
</screen>
</para>
<note xmlns="http://docbook.org/ns/docbook">
<para>
It's good idea to check for actual <emphasis>configure</emphasis> parameters, since
documentation is not always up to date. E.g.:
<screen>
<![CDATA[
$ ./configure --help | grep eio
--enable-eio-debug Enable eio debug support
--with-eio Include eio support
]]>
</screen>
</para>
</note>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->