[fpc-pascal] FPC 3.0.0 seed compiler for Rasperry Pi ARM?

Bo Berglund bo.berglund at gmail.com
Sun Jan 8 17:34:54 CET 2017


On Sun, 8 Jan 2017 11:25:58 +0100, Sven Barth
<pascaldragon at googlemail.com> wrote:

>> Is there a reason for this strange behaviour? Especially why the
>> actual new compiler was placed in such a remote place?
>> 
>
>The install make target places the main binaries in /bin and the ppcXXX
>binaries in /lib/fpc/$VERSION as this follows Posix principles.
>INSTALL_PREFIX does exactly what its name says: it adds a prefix to
>these paths.

So in order to get them collected into a single dir one needs to
either symlink or copy ppcarm there?

If I look at my existing installation of fpc I notice that most
binaries are placed directly inside /usr/bin except for ppcarm which
is symlinked into this directory, so it gets on path.
Is there a reason for this? One would think that *all* binaries of an
fpc install would get into the same directory without extra
afterwork...

Question:
Is there some agreed-upon Linux standard on where to place an fpc
installation when it is not made via sudo? I.e. when the install is
private to the current user.
Maybe ~/usr?

I am trying to change my setup script so it won't need sudo and so it
won't place stuff into globally accessible directories. The script is
designed to install first FPC and then Lazarus on a pristine Raspberry
Pi box by compiling from sources retrieved via svn.

The seed compiler (which this thread is really about) will be handled
by putting it into a tar file on my website so the script can download
it from there. Now only remains to find a sensible way to store the
installed system and set up a path to the binaries.

Thanks for any help and insight!

PS: I am using Linux on my RPi from time to time but I am not a versed
Linux user... DS

-- 
Bo Berglund
Developer in Sweden




More information about the fpc-pascal mailing list