Simple bash script to manage multiple active Free Pascal Compiler versions
curl https://raw.githubusercontent.com/megahertz/fvm/master/install.sh | bash
-
Download fvm script
-
Set exec flag
chmod +x fvm -
(Optional)
./fvm install-fvminstalls fvm and makes alias for you shell
``
Syntax
fvm install [branch or tag[@revision]]
Install the latest stable version
fvm install
Install the latest trunk version
fvm install trunk
Install the specific revision
fvm install trunk@39496
Show installed versions
fvm ls
Set active version (you can specify a full version, or the first part)
fvm use 3.1
fvm use just sets shell alias for FPC. In some situations (e.g. Makefile) you want to have symlink to FPC instead of alias. To make symlink run:
sudo ln -s "$(./fvm which)" /usr/local/bin/fpc