How I got Lazarus latest installed on Open Mandrvia

Hi all,

I am a newb to Open Mandriva and basically a Linux Newb, just always playing with it every so often for 20 years. Knowing I have some mistakes in this put in support for now, because you can help me help you helping us.

I haven’t touch Pascal since university and a year of Delphi early in my career decades ago. And wanted to play with some desktop dev and Pascal as distraction.

I am running OpenRome 6.14.2 desktop 30mv2590 smp preempt_dynamic 86_64 From uname -a

Here is my journey to get Lazarus IDE latest (mistakenly the Development Code Base) compiled and installed. At time of writing only 3.6 was in OM repository and release is 4.2 that offers better modern i.e. no docking floating IDE interface that I do prefer due to my decades of Visual Studio.

Moderators please correct where need be, I will check and update when I notice. I just hope if what I have done here atleast points others down the road of success.

Some steps could have been unnecessary, it’s late when I got this done and haven’t spun up a virtual to double check everything.

OM is bast on QT5 and Lazarus is GT2 based , some of the GTK2 libraries are missing so compiling the needed qt2pas is harder to do so one can compile Lazarus or Install the RPM/Deb. Because of this you need to recompile Lazarus to target Qt5 hence the LCL_PLATFORM=qt5 as part of the make.

Just assuming everything in Downloads for working directory

I went to David Bannons site to get the libqt5pas rpm

sudo dnf install RPM (depending on Distro)
sudo dnf install libqt5pas-devel-[Version You got].rpm
dnfdrake gui to install gtk2-devel

Downloading fpc-laz rpm as well from https://www.lazarus-ide.org/ , so I would have the FPC free pascal compiler.
in konsole
sudo dnf install git
git clone FPC / Lazarus / Lazarus · GitLab (get latest development code base to get stable release you have to get the zip from https://www.lazarus-ide.org/ that matches latest release)
cd lazarus/lazarus
make bigide LCL_PLATFORM=qt5
sudo make install

as of writing this gives me a Running working Lazarus 4.99 and release stable is 4.2

I hope this helps someone and helps me from any feedback.

Thanks

Mercilessming

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:

Desktop environment (KDE, LXQT…):

KDE Plasma

Description of the issue (screenshots if relevant):

installing latest release or dev of Lazarus

Relevant informations (hardware involved, software version, logs or output…):

dnf instal lazuarus-project-[LatestDownload version].rpm and getting error problem conflicting request -nothing provides gtk2-devel needed by lazarus-project-[Last Downlaod Version].rpm

I moved this to Coffee break and this template is only needed if you need help with something.

While I can appreciate the spirit of what you did, I must ask that you don’t encourage people to install deprecated libraries to support software installs. Instead, make a package request in Development > Packages and features requests or on GH if you have an account:

The reason for this is so you don’t accidentally create a conflict with the existing system.

I also encourage you to use dnf search or dnf list with wildcards to find software that may already be packaged. Doing that would have revealed that we already package it:

dnf search lazarus
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact), summary
 lazarus.x86_64 Lazarus Component Library and IDE for Freepascal

Another option is:

Or:

https://openmandriva.pkgs.org

2 Likes

Ok thanks for the info, i must have installed the wrong thing from the DNF as when I installed Lazarus from DNF , I got version 3.6 and needed 4.2+, and this journey was to get 4.2 or newer installed. Again Thanks I will re-verify that I installed Lazarus as you instructed and be excited to see I have 4.2 or newer straight from DNF. Thanks Again I appreciate the tutelage

Thanks

Mercilessming

If the latest has not moved to Qt 6, then we probably can’t upgrade it at this time. Have you checked flathub to see if they have it? That would be preferable to installing it native with Qt 5.

It seems that they do, so you will want to make a package update request:

2 Likes