"Could not find libgcc" when trying to generate fppkg.cfg in Fedora 39 lazarus / 13-General ---------------------------------------------------------------------- GhostCoder · 2023-11-20 01:50 I've just installed Lazarus IDE 2.2.6 through Fedora 39's Discover Package Manager. The package installed was 2.2.6-5.fc39 However, I've been receiving the following error: Failed to generate the configuration file "/home/krisrh21/.config/fppkg.cfg": Could not find libgcc Could not find libgcc An unhandled exception occurred at $00000000004032E0: EInOutError: Access denied   $00000000004032E0 After this error, the following error then pops up: Failed to create a new Fppkg configuration () You will have to fix the configuration manually or reinstall Free Pascal. These startup errors doesn't stop Lazarus from working normally nor prevent me from working on any Pascal projects, but it will prevent me from installing packages is what I'm guessing. In Konsole, I've queried Fedora if libgcc is installed with the command sudo dnf list libgcc and found libgcc 13.2.1-4.fc39 is indeed installed. I've attached a screenshot of the error as received by Lazarus IDE 2.2.6. How do I fix this? ---------------------------------------------------------------------- zeljko · 2023-11-20 14:14 Try to install libgcc-devel if it exists (maybe helps) ---------------------------------------------------------------------- GhostCoder · 2023-11-21 06:19 sudo dnf install libgcc-devel reports the following error in Konsole: No match for argument: libgcc-devel Error: Unable to find a match: libgcc-devel Could I try copying libgcc over to Lazarus's directory and see if that fixes the problem? ---------------------------------------------------------------------- Seenkao · 2023-11-21 07:49 Quote from: GhostCoder on November 21, 2023, 07:19:08 amlibgcc-devel libgcc-dev ---------------------------------------------------------------------- GhostCoder · 2023-11-21 08:44 sudo dnf install libgcc-dev produces error: No match for argument: libgcc-dev. ---------------------------------------------------------------------- Zvoni · 2023-11-21 08:50 Quote from: GhostCoder on November 21, 2023, 09:44:49 amsudo dnf install libgcc-dev produces error: No match for argument: libgcc-dev. Instead of just blindly trying to dnf whatever people throw at you, how about researching it first? https://packages.fedoraproject.org/pkgs/gcc/ ---------------------------------------------------------------------- Seenkao · 2023-11-21 13:02 Quote from: GhostCoder on November 21, 2023, 09:44:49 amsudo dnf install libgcc-dev produces error: No match for argument: libgcc-dev. да, это моя ошибка. Зайдите в менеджер пакетов и посмотрите какая версия gcc у вас установлена. И установите ту же версию с -dev. google translate: yes, it's my mistake. Go to your package manager and see what version of gcc you have installed. And install the same version with -dev. ---------------------------------------------------------------------- zeljko · 2023-11-21 15:24 Quote from: Seenkao on November 21, 2023, 08:49:05 amQuote from: GhostCoder on November 21, 2023, 07:19:08 amlibgcc-devel libgcc-dev Fedora uses pkg-devel, debian alikes are pkg-dev. ---------------------------------------------------------------------- Seenkao · 2023-11-21 15:37 Не знал, очередная моя ошибка. Значит её нужно учесть и не делать моих ошибок! ))) Google translate: I didn't know, another mistake of mine. This means you need to take it into account and not make my mistakes! ))) ---------------------------------------------------------------------- GhostCoder · 2023-11-22 06:00 Quote from: Seenkao on November 21, 2023, 02:02:02 pmQuote from: GhostCoder on November 21, 2023, 09:44:49 amsudo dnf install libgcc- dev produces error: No match for argument: libgcc-dev. да, это моя ошибка. Зайдите в менеджер пакетов и посмотрите какая версия gcc у вас установлена. И установите ту же версию с -dev. google translate: yes, it's my mistake. Go to your package manager and see what version of gcc you have installed. And install the same version with -dev. Strangely enough, Discover does even show libgcc in it's Installed section, so I started Konsole and typed in the command sudo dnf list libgcc and it reported the library version at 13.2.1-4.fc39. Doesn't help the fact that, Fedora doesn't have libgcc-dev. ---------------------------------------------------------------------- GhostCoder · 2023-11-22 06:06 Quote from: zeljko on November 21, 2023, 04:24:42 pmQuote from: Seenkao on November 21, 2023, 08:49:05 amQuote from: GhostCoder on November 21, 2023, 07:19:08 amlibgcc-devel libgcc-dev Fedora uses pkg-devel, debian alikes are pkg-dev. I've tried that. Fedora has no package named libgcc-devel or libgcc- dev. ---------------------------------------------------------------------- TRon · 2023-11-22 09:58 Quote from: GhostCoder on November 20, 2023, 02:50:45 amI've just installed Lazarus IDE 2.2.6 through Fedora 39's Discover Package Manager. The package installed was 2.2.6-5.fc39 However, I've been receiving the following error: Known issue with Lazarus 2.2.6 QuoteThese startup errors doesn't stop Lazarus from working normally nor prevent me from working on any Pascal projects, but it will prevent me from installing packages is what I'm guessing. It will prevent you from installing packages using the Free Pascal (fppkg) package manager which Lazarus does not use. You can safely ignore the error message. All it is, is annoying. In case that is something that bothers you too much then consider installing Lazarus 3.0RC2. QuoteHow do I fix this? Simple answer: You don't. Elaborated answer: by patching the Lazarus source-code ---------------------------------------------------------------------- Zvoni · 2023-11-22 12:30 Or bottom line (final idea): Don't install Lazarus/Freepascal from any Linux-Repos (which is a bad idea in general....) Use fpcupdeluxe. it pulls everything as source-code and compiles it in situ