I don't know much linux
I've tried this.
sudo apt-get install fpc
git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus-main
cd lazarus-main
make clean
make bigide
run /home/pi/lazarus-main/lazarus
That looks good.
It's not good.
OK, interesting. Whats not good ? Did you get an error message of some sort, you want help, you need to tell us what went wrong.
Everything is in the pi directory.
It wants to install to /usr/local/
Yes, in "out of the box", the Raspberry Pi OS makes a user account for you called "pi". Its silly but its what it does.
Do not run the Install for Lazarus, there is absolutely no point and it will only make things much harder for you. Leave it in where is was built, under your user name "pi", start it with the command you mentioned above, all good ! Only run Lazarus as a user, "pi" in your case.
That was very good and it worked
https://forum.lazarus.freepascal.org/index.php/topic,53127.0.html
sudo mkdir /usr/local/lazarus
cd /usr/local/lazarus
sudo svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_8/ source
cd source
sudo make clean
sudo make bigide
sudo make install OPT = -dFPC_ARMHF PREFIX = / usr / local
sudo ./lazarus
Are you saying that block of commands worked now or some time in the past ? Either way, it has a number of problems, including -
- Don't install Lazarus in root space, its not necessary and only makes things harder later on.
- Don't build Lazarus as root. Or any other app for that matter. In Unix, always build as an ordinary user and, if necessary use sudo or su to install. In the case of Lazarus, which needs to rebuild itself as you use it, you do not and should not, install.
- Lazarus source is at gitlab now, not under a svn repo, so don't use svn.
- Never build or run Lazarus as root, ie, using sudo, firstly its not necessary and secondly, its dangerous.
- FPC does not need to be told to build ARMHF binaries, when building on any new Raspberry Pi, it will automatically and correctly select the default arch, that is probably AARCH64, thats 64bit. Your "ARMHF" parameter will force a 32bit build.
- The prefix parameters you give will not work because you have spaces in there. But you don't need that anyway because you are not installing (or should not be).
So, overall, every line of of that block is wrong ! Thats a pretty good record.
Davo