- Install FPC and FPC-SRC from repo. Thats 3.2.2
- As root, run the commands he mentions.
Don't run the make all as root, only the make install (though even that isn't necessary if you install to a user writable location).
If he has installed from the repo, and is using FPC322, then the FPC source will be in read only space, therefore to make anything there requires root. Building as root is certainly undesirable, but as PascalDragon greatly simplified the process and we determined slackware had FPC322 in its repo it seems like its the better approach.
If I was doing it, I would certainly -
- Install FPC322 from the repo. That ends up in root space and brings required dependencies.
- Download and untar FPC main source from gitlab into user space.
- Use 322 to build and install main in user space, as per PD's instructions.
- Edit .bashrc to add path to new fpc ahead of existing path, eg
export PATH=$USER/bin/FPC/fpc-main/bin;$PATH
and if using lazarus, manually point it to use the new FPC too.
Davo