So in a fit of madness I decided to just re-install to Ubuntu 16.04!
Well, kind of. I'm still in the backing-up process. But anyway...
Is there a tutorial of installing FPC and Lazarus on fresh Ubuntu install? Preferably, in the way that's understandable by newb.
EDIT: I was checking my Bash history, and... hmm, did I do something wrong? Here is how I install FPC and Lazarus:
sudo apt-get install fp-compiler
sudo apt-get install lazarus
And then I realized I can't compile a test program, so I decided to remove Lazarus..
sudo apt-get remove lazarus
sudo apt-get remove lazarus-ide
sudo apt-get remove lazarus-ide-1.6
sudo apt-get fp-ide
sudo apt-get install fp-ide
It still doesn't quite work, though.
fpc -vut persegi.pas
fpc
fp
fpc -vut persegi.pas
fpc -Fu
fpc -Fu persegi.pas
So I decided to remove everything again...
sudo apt-get remove fpc
sudo apt-get remove fp
sudo apt-get remove fp-ide
sudo apt-get remove fp-doc
cd application
cd Application
cd fpc
... and installed from tar. In retrospect, I suspect it is one of the terrible decision I made.
sudo sh install.sh
fp
It's not in the history, but I think this is the part where I try to compile the test pascal again and find out it doesn't work. So I decided to remove it again...
sudo apt-get remove fpc
sudo apt autoremove
sudo apt-get fpc
sudo apt-get fp
sudo apt-get remove lazarus
sudo apt autoremove
sudo apt-get remove fp-compiler
sudo apt autoremove
But since it's installed from tar, it's not removed, much to my dismay.
fp
So I give-up, and decided to just download every vaguely pascal-thing in repo.
sudo apt-get remove fp
sudo apt-get remove fp-ide
sudo apt-get remove free_pascal
apt list --installed >~/Desktop/package
apt list --installed
sudo apt-get install fp-compiler
sudo apt-get install fp-ide
sudo apt-get install fp-units-base
fp
sudo apt-get fp-units-fcl-3.0.0
sudo apt-get install fp-units-fcl-3.0.0
sudo apt-get install fp-units-rtl
fp
sudo apt-get install fp-units-math
sudo apt-get install fp-units-misc
fp
sudo apt-get remove fp-compiler
sudo apt-get remove fp-ide
sudo apt autoremove
sudo apt-get remove fp-units-base
sudo apt-get remove fpc
sudo apt-get remove fp-units-math
sudo apt autoremove
sudo apt-get remove fp-units-misc
sudo apt autoremove
sudo apt-get remove fp-units-fcl-3.0.0
sudo apt autoremove
sudo apt-get remove fp-units-rtl
sudo apt autoremove
sudo apt-get remove fp-units-fcl-3.0.0
Alas, it's still doesn't work.
And that's why I decided to just reinstall everything.