[fpc-pascal] Linux installation, where to put fpc?
Bo Berglund
bo.berglund at gmail.com
Sat Dec 31 23:30:32 CET 2016
On Sat, 31 Dec 2016 23:13:22 +0100 (CET),
marcov at stack.nl (Marco van de Voort) wrote:
>> You can specify the installation directory to the Makefile using
>> INSTALL_PREFIX. You then need to have the bin and (AFAIK) lib/<version>
>> directory of that directory in PATH.....
>
>Yesno. On *nix a symlink should be made from the bin directory to the
>lib/<version>/ppc<arch> binary.
>
>If you have multiple versions, the default one gets the symlink above, the
>rest get them with version number attached (e.g. ppc386-3.0 ->
>/usr/local/lib/fpc/3.0.0/ppc386)
>
>Such versioned ones can be selected with fpc -V3.0 <file to compile>
>
My script has a line like this after compiling FPC:
sudo ln -sf /usr/lib/fpc/$FPCVER/ppcarm /usr/bin/ppcarm
In this case $FPCVER is a value like 3.0.0
Is this what you mean? And if so can I create the same just altering
the source dir:
sudo ln -sf /home/pi/fpc/$FPCVER/ppcarm /usr/bin/ppcarm
/home/pi/fpc/ would be the top node of the fpc sources and the
compiled binary.
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list