File: setup.xml

package info (click to toggle)
php-doc 20140201-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 74,084 kB
  • ctags: 4,040
  • sloc: xml: 998,137; php: 20,812; cpp: 500; sh: 177; makefile: 63; awk: 28
file content (188 lines) | stat: -rw-r--r-- 4,144 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 331305 $ -->

<chapter xml:id="fann.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 &reftitle.setup;

 <section xml:id="fann.requirements">
  &reftitle.required;
  <para>
   PHP &gt;= 5.2.0 and libfann &gt;= 2.1.0
  </para>
 </section>

 <section xml:id="fann.installation">
  &reftitle.install;
  <para>
   The FANN PHP extension should work on all Linux systems.
 </para>

  <simplelist>
   <member>
    <xref linkend="fann.installation.lib" />
   </member>
   <member>
    <xref linkend="fann.installation.pecl" />
   </member>
   <member>
    <xref linkend="fann.installation.manual" />
   </member>
  </simplelist>

  <section xml:id="fann.installation.lib">

   <title>FANN Library Installation</title>

   <para>
    Before you start installation make sure that <emphasis>libfann</emphasis> is installed
    on your system. It's part of the main repository in the most Linux distributions
    (search for `fann`). You need a development version.
   </para>
   <para>
    If it is not installed, you need to install it first. Either download it from the
    <link xlink:href="&url.fann.lib;">official site</link> or get it from your distro
    repository. For example on Fedora:
    <programlisting>
<![CDATA[

$ sudo yum install fann-devel

]]>
    </programlisting>
    or Ubuntu:
    <programlisting>
<![CDATA[

$ sudo apt-get install libfann-dev

]]>
    </programlisting>
   </para>
  </section>

  <section xml:id="fann.installation.pecl">

   <title>PECL Installation</title>

   <para>
    This extension is available on PECL. The installation is very simple. Just run:
    <programlisting>
<![CDATA[

$ sudo pecl install fann

]]>
    </programlisting>
   </para>
  </section>

  <section xml:id="fann.installation.manual">

   <title>Manual Installation</title>

   <para>
    For developers and people interested in the latest changes, you
    can compile the driver from the latest source code on
    <link xlink:href="&url.fann.github;">Github</link>.
    Go to Github and click the "Download ZIP" button. Then run:

    <programlisting>
<![CDATA[

$ unzip php-fann-master.zip
$ cd php-fann-master
$ phpize
$ ./configure
$ make all
$ sudo make install

]]>
    </programlisting>
   </para>

   <para>
    Make the following changes to php.ini:
   </para>
   <itemizedlist>
    <listitem>
     <para>
      Make sure the <emphasis>extension_dir</emphasis> variable is pointing to
      the directory containing <emphasis>fann.so</emphasis>. The build will display where
      it is installing the PHP driver with output that looks something like:
      <programlisting>
<![CDATA[

Installing '/usr/lib/php/extensions/no-debug-non-zts-20060613/fann.so'

]]>
      </programlisting>

      Make sure that it is the same as the PHP extension directory by runnning:

      <programlisting>
<![CDATA[

$ php -i | grep extension_dir
  extension_dir => /usr/lib/php/extensions/no-debug-non-zts-20060613 =>
                   /usr/lib/php/extensions/no-debug-non-zts-20060613

]]>
      </programlisting>

      If it's not, change the <emphasis>extension_dir</emphasis> in php.ini or
      move <emphasis>fann.so</emphasis>.
     </para>
    </listitem>
    <listitem>
     <para>
      To load the extension on PHP startup, add a line:

      <programlisting>
<![CDATA[

extension=fann.so

]]>
      </programlisting>

     </para>
   </listitem>

   </itemizedlist>
  </section>
 </section>

 <section xml:id="fann.configuration">
  &reftitle.runtime;
  &no.config;
 </section>

 <section xml:id="fann.resources">
  &reftitle.resources;
  <para>

  </para>
 </section>

</chapter>

<!-- 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
-->