Download of FPC 3.2 for Raspberry Pi does not work lazarus / 1-Linux ---------------------------------------------------------------------- Linkat · 2021-01-31 15:57 Could'nt download the file: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i fpc-3.2.0.arm-linux-eabihf-raspberry.tar https://www.freepascal.org/down/arm/linux-hungary.html The link doesn't work. The same with the mirror in Canada. I couldn't find this file on Index von ftp://ftp.freepascal.org/pub/fpc/dist/3.2.0/ and on SourceForge. Where can I get it from? ---------------------------------------------------------------------- MarkMLl · 2021-01-31 17:02 Checking with wget, I get a "No such file" error on ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.2.0/arm- linux/fpc-3.2.0.arm-linux-eabihf-raspberry.tar This one looks OK ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.2/arm- linux/fpc-3.0.2.arm-linux-eabi.tar However that appears to be a 3.0.2 not a 3.2.0... not sure what's going on, I think we need input from an admin, or from somebody who can advise on the preferred compiler version (https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi suggests that it should be bundled with Raspbian). MarkMLl ---------------------------------------------------------------------- Linkat · 2021-02-02 14:07 Does this file (fpc-3.2.0.arm-linux-eabihf-raspberry.tar) exist? Where can I get it? fpc-3.2.0.arm-linux-eabihf-raspberry.tar Thanks. ---------------------------------------------------------------------- trev · 2021-02-02 22:25 Maybe it's been renamed to this: ftp://mirror.freemirror.org/pub/fpc/dist/3.2.0/arm- linux/fpc-3.2.0.arm-linux-on-aarch64.tar Broken links first reported in August last year: https://www.mail- archive.com/fpc-pascal@lists.freepascal.org/msg53195.html Last image: https://sourceforge.net/projects/freepascal/files/Linux/3. 0.2/fpc-3.0.2.arm-linux-eabihf-raspberry.tar/download Updating from 3.0.2 to 3.0.4: http://translate.google.com/translate?pr ev=/language_tools&u=https%3A%2F%2Fwww.framboise314.fr%2Finstaller-la- derniere-version-de-lazarus-mai-2020-sur-raspberry-pi%2F ---------------------------------------------------------------------- Linkat · 2021-02-04 17:57 Thanks @trev for the information. In the mailing list you can see, that this problem is known since August 2020. It's not good, that no one feels responsible. ---------------------------------------------------------------------- AlanTheBeast · 2021-02-18 17:00 W/o paying much attention to the process, I ended up with 3.0.4 on the Pi... (Pi 4 B with Rasp. Pi OS, 32 b). Surprisingly Geany will run the compiler and has some (not great) symbol locating ability. ---------------------------------------------------------------------- Mi-Ki · 2021-02-20 09:13 Hi. I found here this. https://www.framboise314.fr/installer-la-derniere-version-de-lazarus- mai-2020-sur-raspberry-pi/ sudo ./install.sh On contrôle que le compilateur est bien installé en tapant : fpc sudo: fpc: command not found Where did I make a mistake? https://pastebin.com/0VrC6kM2 Thank you. ---------------------------------------------------------------------- trev · 2021-02-20 10:59 Did you rehash to re-compute the internal hash table of the contents of directories listed in the path environmental variable to account for new commands added so that fpc could be found? tcsh, csh : rehash sh, bash, zsh : hash -r ---------------------------------------------------------------------- Mi-Ki · 2021-02-20 11:49 I do not understand? I can't do much Linux. I'm just a raspberry user. Why ill work Sudo Apt-Get Install FPC && Sudo Appt-Get Install Lazarus. Do not install the packers. https://postimg.cc/qtfdj6Sc ---------------------------------------------------------------------- af0815 · 2021-02-20 12:20 Quote from: Mi-Ki on February 20, 2021, 12:49:47 pmDo not install the packers. https://postimg.cc/qtfdj6Sc The picture says nothing about the problem. We didnt know the version of fpc and lazarus on your system. But i can say, this packages work without problem with the actual stable/fixes release of fpc/lazarus. ---------------------------------------------------------------------- Mi-Ki · 2021-02-20 15:14 sudo apt-get install fpc has been installed FPC 3.0.4 sudo apt-get install lazarus has been installed lazarus 2.0.0 https://postimg.cc/VrWn8BLB ---------------------------------------------------------------------- af0815 · 2021-02-20 16:46 Are you able to recompile lazarus itself, without installing a package ? ---------------------------------------------------------------------- Mi-Ki · 2021-02-20 17:59 CONF_SWAPSIZE=1000 sudo apt install -y subversion sudo apt-get install fpc  // FPC 3.0.4 To terminal fpc it is ok //----------------------------------------- sudo apt install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev 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 bigide sudo make install OPT = -dFPC_ARMHF PREFIX = / usr / local sudo ./lazarus Works ---------------------------------------------------------------------- af0815 · 2021-02-21 08:47 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cd sourcesudo make clean  sudo make bigidesudo make install OPT = -dFPC_ARMHF PREFIX = / usr / localsudo ./lazarus  Inside of Lazarus: Menu Tools->Configure Build Lazarus Check the Box Clean all and say Build Inside of Lazarus it must work. If not, look for the problem. If building Lazarus with Lazarus did not work, every new installation of a package will not work too. ---------------------------------------------------------------------- Mi-Ki · 2021-02-24 19:34 It works. Thank you ---------------------------------------------------------------------- AlanTheBeast · 2021-02-24 21:50 To be clear Mi-Ki, di you succeed in getting FPC 3.2.0 on board? Thanks. ---------------------------------------------------------------------- Mi-Ki · 2024-02-02 18:41 Hey. Hey. I have a new raspberry. How to download the new lazarus and install? Thank you. ---------------------------------------------------------------------- dbannon · 2024-02-03 06:08 Hey, Hey. Did you look on the wiki ?  https://wiki.freepascal.org/Installing_Laz arus_on_Linux#Build_Lazarus_from_Source Assuming you did not choose anything silly for the OS, you will find that your OS (current Raspberian, current Debian etc) will have FPC 3.2.2 in its repo. So, install that (sudo apt install fpc) then download the Lazarus_3.0 source and compile it. Davo ---------------------------------------------------------------------- Mi-Ki · 2024-02-03 07:18 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 It's not good. Everything is in the pi directory It wants to install to /usr/local/ 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 Why doesn't the link work? http://svn.freepascal.org/svn/lazarus Where to download? ---------------------------------------------------------------------- dbannon · 2024-02-03 09:20 Quote from: Mi-Ki on February 03, 2024, 08:18:08 amI 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. Quote from: Mi-Ki on February 03, 2024, 08:18:08 amIt'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. Quote from: Mi-Ki on February 03, 2024, 08:18:08 amEverything 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. Quote from: Mi-Ki on February 03, 2024, 08:18:08 amThat 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