Recent

Author Topic: Lazarus on openSuse LEAP  (Read 370 times)

gmawby

  • Newbie
  • Posts: 3
Lazarus on openSuse LEAP
« on: October 02, 2022, 11:17:11 pm »
Hi,
I've installed Lazarus using the package manager on openSuse. When I run Lazarus I get the following error.

File: /etc/fppkg.cfg

Error: there is a problem with the Fppkg configuration. (Fppkg reports that the RTL is not installed.)


I try to restore the configuration and the next screen asked for the prefix of the free pascal compiler.     whereis fpc   returns

fpc: /usr/bin/fpc /usr/lib/fpc /usr/lib64/fpc /usr/share/man/man1/fpc.1.gz

but none of these are acceptable input.   

What exactly am I being asked to enter?

Note: If I ignore the error and start the IDE it seems to work properly.

thanks,

Glenn

Update:   actually, having used the IDE for a while it does not work properly. Example, I try to create an event handler for an on_click event and it complains the the stdctrls unit is not found.
« Last Edit: October 03, 2022, 02:11:44 am by gmawby »

dbannon

  • Hero Member
  • *****
  • Posts: 2179
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus on openSuse LEAP
« Reply #1 on: October 03, 2022, 02:32:01 am »
gmawby, the packages that appear in distros like OpenSUSE are not made by the folks here. Some time after a release here, someone from OpneSUSE will grab the code and build the package as they see it needs to be built. So, people here, unless they have struck the same problem will not generally be able to help you with packaging problems.

I don't use OpenSUSE so really don't know how many changes they make. Debian, for example, make quite a lot of changes and the build process and where things end up is somewhat unrecognizable to the official developers.

I strongly suggest that you use the official FPC/Lazarus packages, there are RPMs available and there will be a lot more help readily available when things go wrong. Carefully remove all the OpenSUSE packages and install from, probably, https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%202.2.4/

Otherwise, if you wish to keep the OpenSUSE, I suggest you read up on fppkg, there should be a man page and it should document how its installed. The same with the RTL, you most definitely need it. Its possible that OpenSUSE break the overall FPC down into individual small packages and you need to install them all. Its a confusing approach but popular with distro package managers.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

gmawby

  • Newbie
  • Posts: 3
Re: Lazarus on openSuse LEAP
« Reply #2 on: October 03, 2022, 03:00:12 am »
Davo,
thanks for the advice, I'll do what you suggest.

Glenn.

gmawby

  • Newbie
  • Posts: 3
Re: SOLVED: Lazarus on openSuse LEAP
« Reply #3 on: October 03, 2022, 03:32:30 am »
Solved:

I removed lazarus and all the deps, using zypper then installed the 3 rpms.  Also had to install gtk2-devel and make using zypper

Lazarus now works and no config error.

Thank you!

Glenn,

Sydney.

 

TinyPortal © 2005-2018