2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-09-24 04:34:30 +08:00
|
|
|
<title>Installation of <application>Nc<acronym>FTP</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-24 04:34:30 +08:00
|
|
|
<para>There are two ways to build <application>Nc<acronym>FTP</acronym></application>. The first
|
2003-09-17 23:38:21 +08:00
|
|
|
(and optimal) way, builds most of the functionality as a shared library and
|
|
|
|
then builds and installs the program linked against this library. The second
|
|
|
|
method simply links all of the functionality into the binary statically. This
|
2002-07-08 04:28:42 +08:00
|
|
|
doesn't make the dynamic library available for linking by other
|
|
|
|
applications. You need to choose which method best suits you. Note
|
|
|
|
that the second method does <emphasis>not</emphasis> create an entirely
|
2003-09-17 23:38:21 +08:00
|
|
|
statically linked binary; only the <filename>libncftp</filename> parts are
|
|
|
|
statically linked in, in this case. Be aware that building and using the shared
|
|
|
|
library is covered by the Clarified Artistic License; however, developing
|
|
|
|
applications that utilize the shared library is subject to a different license.
|
|
|
|
</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-24 04:34:30 +08:00
|
|
|
<para>To install <application>Nc<acronym>FTP</acronym></application> using the first (and optimal)
|
2003-09-17 23:38:21 +08:00
|
|
|
method, run the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-17 23:38:21 +08:00
|
|
|
<screen><userinput><command>./configure --prefix=/usr &&
|
2002-07-08 04:28:42 +08:00
|
|
|
cd libncftp &&
|
|
|
|
make shared &&
|
|
|
|
make soinstall &&
|
|
|
|
cd .. &&
|
|
|
|
make &&
|
2003-09-17 23:38:21 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-24 04:34:30 +08:00
|
|
|
<para>To install <application>Nc<acronym>FTP</acronym></application> using the second method (with
|
2003-09-17 23:38:21 +08:00
|
|
|
the <filename>libncftp</filename> functionality linked in statically) run the
|
|
|
|
following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-17 23:38:21 +08:00
|
|
|
<screen><userinput><command>./configure --prefix=/usr &&
|
2002-07-08 04:28:42 +08:00
|
|
|
make &&
|
2003-09-17 23:38:21 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|