Recent

Author Topic: No fpc found on a fresh installation of Lazarus 3.8 on Mageia  (Read 422 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 470
  • Programming is FUN only when it works :)
    • Cool Technology
I downloaded Lazarus 3.8 from this link.
https://download.lazarus-ide.org/Lazarus%20Linux%20x86_64%20RPM/Lazarus%203.8/

The instructions said I have to install fpc-laz first, then fpc-src-laz and then lazarus-project. I did just that on my latest Mageia linux operating system.  that it installed with no issues, but when I start Lazarus it complains that there is no fpc compiler found.

This is my 4 or the 5 uninstallation and re-installation of Lazarus. But no matter what, I can't seem to fix this.

Can someone help me please? thank you.

cdbc

  • Hero Member
  • *****
  • Posts: 2094
    • http://www.cdbc.dk
Re: No fpc found on a fresh installation of Lazarus 3.8 on Mageia
« Reply #1 on: March 24, 2025, 09:32:18 pm »
Hi
My 'FpcSrc' is located here: /usr/share/fpcsrc/
...and my compiler executable is here: /usr/bin/fpc
I'm on PCLinuxOS and we're kind of family to Mageia...
Regards Benny

eta: Attached is a screenshot of my laz-options
« Last Edit: March 24, 2025, 09:41:38 pm by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

Thaddy

  • Hero Member
  • *****
  • Posts: 16802
  • Ceterum censeo Trump esse delendam
Re: No fpc found on a fresh installation of Lazarus 3.8 on Mageia
« Reply #2 on: March 25, 2025, 08:30:15 am »
My order for a fresh install for trunk/main on ubuntu linux64 is to install 3.2.2 first:
cd ~/
sudo apt install git
git clone https://gitlab.com/freepascal.org/fpc/source.git fpc
sudo apt install build-essential
sudo apt install fp-compiler
Then rename the compiler:
sudo mv /usr/bin/ppcx64 /usr/bin/ppcx64-322
Then build the full compiler:
cd ~/fpc
sudo make clean all install PP=/usr/bin/ppcx64-322 PREFIX=/usr
Copy over the newly build compiler (or create a symlink).
sudo cp /usr/lib/fpc/3.3.1 ppcx64 /usr/bin

Ready.

In the case of a trunk/main install,you need to regularly update, say once a week or when you see an important commit or a feature anouncement.
Updating an install goes like this:
cd ~/fpc
git pull
sudo make clean all install PP=/usr/bin/ppcx64-322 PREFIX=/usr
sudo cp /usr/lib/fpc/3.3.1 ppcx64 /usr/bin

So the generic order for any linux is:
1. you need git, make sure it is installed
2. change to the usr root and clone the full fpc sources
3. make sure build-essential is installed
4. install and rename the bootstrap compiler (fp-compiler is enough)
5. change to ~/fpc and make with PP=the bootstrap compiler and the install prefix = /usr
6. copy or symlink the compiler from /usr/lib/fpc/<version, like 3.3.1>/ppc<platform> to /usr/bin
Ready.

« Last Edit: March 25, 2025, 08:48:05 am by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

 

TinyPortal © 2005-2018