Installation Instructions
If you have a RPM-based distribution (such as Fedora or Mandravia) and you
install FreePascal as root, we recommend using the
Indy RPM. As a user, setup
your user account to build RPM's with the advice from
http://www.rpm.org/hintskinks/buildtree/ and then use the makeindyrpm.sh script
to build the
Indy RPM's. Then install the
indy-fpc and
indy-fpc-src RPM's that
you created. We do NOT distribute precompiled
Indy RPM binaries. We do permit
others to build RPM's for distribution.
If you have a Debian-based Linux distribution and you have installed Free
Pascal as a Debian
package, you can make .deb packages with "chmod 755
fpc/debian/rules", "dpkg-buildpackag -rfakeroot" and than install them with
"dpkg -install
indy*.deb".
Otherwise, do the following:
Change directory to "fpc" and run "make all". If you are using
Windows, you must use the GNU BinUtils Make program that is included in most
FreePascal distributions.
Run "make all" followed by "make install" from the fpc directory. You may
be able to specify an install prefix by adding "INSTALL_PREFIX=fpcbasedir".
If you are running Lazarus, you may install the
design-time package into
Lazarus. Just open, compile, and install the indylaz.lpk file located in the
lazarus directory. Those
design-time packages have not been tested yet.
You probably should read the Development Tutorial (aka Build FAQ) at
http://www.stack.nl/~marcov/buildfaq.pdf for more information about the
FreePascal build process.
In your programs, you should have the following in your main program file:
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
defined as the first entry in your uses clause. Then when compiling, use the
"-dUseCThreads" parameter. This is important on Unix systems because
Indy uses
multithreading in most servers and in some client components.