Recent

Author Topic: Installation of latest lazarus on PCLinuxOS unsuccessful  (Read 2373 times)

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 459
  • Programming is FUN only when it works :)
    • Cool Technology
Installation of latest lazarus on PCLinuxOS unsuccessful
« on: June 27, 2024, 05:27:51 pm »
Hello,

I am trying to install the latest version of Lazarus on PCLinuxOS Linux operating system but it fails every time.

When I tried to install Lazarus from PCLinuxOS repository (Synaptic Package Manager), it installs but it is missing compiler and something else I don't remember. I tried to look for it to link it to Lazarus, but I can't find it anywhere.

When I manually tried to install Lazarus by downloading all the necessary files right from Lazarus website, on the terminal it keeps giving me CONFLICT errors as shown in the image.

I would hate to have to backup my files and completely reinstall PCLinuxOS just for this. I hope someone could give me some pointers on how to get around or fix this conflict errors.

If you are thinking why there is a difference between version of fpc 3.04 and fpc 3.2.2, that's because even when I tried to install fpc 3.2.2, it gave me the same CONFLICT error. So, I thought if I download older version of fpc file, it will go away, but it doesn't as you can see in the image.

Thank you.
« Last Edit: June 27, 2024, 05:35:54 pm by Awesome Programmer »

Dzandaa

  • Sr. Member
  • ****
  • Posts: 349
  • From C# to Lazarus
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #1 on: June 27, 2024, 05:49:42 pm »
Hi,

I don't know PCLinuxOS, but before installing Lazarus from the Website (Best option because the repository rarely have the latest version)
You'll have to uninstall completely the version from PCLinuxOS repository.

Have a look here:

https://forum.lazarus.freepascal.org/index.php/topic,66628.0.html

B->
Regards,
Dzandaa

bobby100

  • Full Member
  • ***
  • Posts: 245
    • Malzilla
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #2 on: June 27, 2024, 06:23:50 pm »
PCLinuxOS in Mandrake/Mandriva offspring, thus RPM-based distro:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_64%20RPM/Lazarus%203.4/
Read the topic linked by Dzandaa, and download RPM instead of DEB packages.

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 459
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #3 on: June 27, 2024, 08:37:50 pm »
Hi fellows,

Thank you for your reply.

I did realize why I was getting this conflict error messages and I fixed them, but fpc.cfg file is not created.

First time, I start lazarus it complains that it can't find fpc.cfg file and indeed there exist NO fpc.cfg file within /etc/ folder.

After much frustration of not being able to auto create fpc.cfg file on PCLinuxOS, I copied fpc.cfg file from another Linux Operation System (Mageia) that I work on where Lazarus was successfully installed. So, I copied fpc.cfg file from Mageia to PCLinuxOS into /etc/ folder. Lazarus started up with no problem.

However, every time I compile an application, it throws the following error about linking failure as shown below in the image.

I understand why this is happening; information in fpc.cfg file is for Mageia OS.

I've been reading and trying to look for solution on creating fpc.cfg, but I am not finding it that works. Found and ran samplecfg, but it keeps throwing error messages that it can't find a folder called execvp.

Isn't there a way to create a default of simple fpc.cfg file?

 :( :( :( :( :o :o :o %) %) %) %) %)

So, how do you create fpc.cfg file?
« Last Edit: June 27, 2024, 08:44:08 pm by Awesome Programmer »

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 459
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #4 on: June 27, 2024, 09:09:40 pm »
Nevermind.

I actually looked through fpc.cfg file and found out that I had change two lines. Previously, the paths were for Mageia system. I simply followed the path for PCLinuxOS and changed it accordingly...

Code: Pascal  [Select][+][-]
  1. # path to the gcclib
  2. #ifdef cpui386
  3. -Fl/usr/lib/gcc/x86_64-mandriva-linux-gnu/12.4.0/32
  4. #endif
  5. #ifdef cpux86_64
  6. -Fl/usr/lib/gcc/x86_64-mandriva-linux-gnu/12.4.0
  7. #endif

Now, the linking errors are gone... :)

thank you...

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #5 on: June 27, 2024, 09:56:57 pm »
Hi
Here's the 3.2.2 fpc.cfg from my PCLinuxOS system's /etc/
It's working like a charm :)
note: I renamed it to 'fpc.cfg.txt' to avoid conflicts on my system, just delete .txt
N.B.: I'm running 3 different machines with pclos: a 64bit Amd, a 64bit Intel &  a 32bit Intel; All of them with fpc & lazarus in perfect working order... So it's news to me, these problems you're having  %)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

TRon

  • Hero Member
  • *****
  • Posts: 3141
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #6 on: June 28, 2024, 03:06:55 am »
@cdbc:
I am confused about PCLinuxOS (don't bother either because it is probably a waste of time to even try  :) ).

Since you seem better versed is there any precompiled version of FPCUpdeluxe that is able run on PCLinuxOS ?
All software is open source (as long as you can read assembler)

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #7 on: June 28, 2024, 08:06:20 am »
Hi TRon
Quote
is there any precompiled version of FPCUpdeluxe that is able run on PCLinuxOS ?
Yup  :D I just went and got the latest release-version of fpcupdeluxe for linux, from github, ran it and "Wupti Snoop Potato Soup", I was up and running with FPC trunk(28.01.2024 I think) and Lazarus 3.0 \o/\o/\o/
Built my own libqt5pas.so and patched the (slooooowww)dialogs in qt.
Subsequently been updating with fpcupdeluxe -> "No Worries Mate"
P.S.: I Keep the installation from our repository (fpc 322/laz 226) alongside, though it's installed in R/O space! With the 'nagging' of r/o paths in lazarus as a consequence  :(
I guess, I'm just lucky in having no problems with fpc/laz...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

TRon

  • Hero Member
  • *****
  • Posts: 3141
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #8 on: June 28, 2024, 08:46:01 am »
Thank you very much cdbc.

Reason to ask is that awesome programmer seem to get into trouble with his package(manager) mixing two different versions of the compiler (it seem to literally choke on that or at least get things up to a point where they not work properly anymore) and using FPCUpDeluxe might be a better solution in such cases (because it circumvents the use of any packages and compiles from source).

It also allows you to have installed FPC from the system's package manager /and/ the FPCUpDeluxe version together, the only trick left there is to make sure you use the compiler that you want top invoke (also when configuring Lazarus).

Is the default FPC install package from PCLinuxOS really version 3.04 ?

fwiw: a reason to know is that in case FPCUpdeluxe works as intended on/for PCLinuxOS then that knowledge can be used as a standard solution for those that run into these kind of issues (e.g. same advise as for any other linux distro).
All software is open source (as long as you can read assembler)

Thaddy

  • Hero Member
  • *****
  • Posts: 15522
  • Censorship about opinions does not belong here.
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #9 on: June 28, 2024, 09:11:29 am »
Well, yes and no. A previous install (not through fpcupdeluxe, but from the repository) can still conflict:
/etc/fpc.cfg will need to be removed manually since it can contain wrong or missing paths
On Debian derived systems you need apt-get purge fpc and apt-get autoremove and on other systems equivalents.
Only after that you can do a fresh install of fpc with the right dependencies for the new install resolved.
For Lazarus, you also need to remove the hidden ~/.lazarus directory before installing a new version since that is not done automatically and also has the risk that the configuration files contain wrong paths.

There is one other important issue: when running make all install the makefile defaults to /usr/local as root, whereas installations through the package manager defaults to /usr
« Last Edit: June 28, 2024, 09:40:18 am by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #10 on: June 28, 2024, 09:24:12 am »
Hi
Quote
Is the default FPC install package from PCLinuxOS really version 3.04 ?
The default installation from our(pclinuxos) repository is FPC = 3.2.2 & Lazarus = 2.2.6
Note: It's better to compile your own libqt5pas.so, then there's only 1 patch to apply, namely: comment 'QOneShotTimer()' and use sleep(10); instead in qobjects.pas IIRC. This has to do with 'copy/paste' locks in the Laz-IDE
Note2: I've just today, requested an update of our repo -> 3.4 Lazarus.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 15522
  • Censorship about opinions does not belong here.
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #11 on: June 28, 2024, 09:29:22 am »
Depending on distro and your internal policies, you want to add backports: there are a few distributions that still install 3.0.4 and adding backports can fix that on Debian and derivatives. Current Debians are current for fpc, 3.2.2, but not always for Lazarus.
 
Then again, just 50% of users do a regular sudo apt-get update && sudo apt-get upgrade -y
Probably even less than 50%
« Last Edit: June 28, 2024, 09:46:12 am by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #12 on: June 28, 2024, 09:42:22 am »
Hi
In the case of PCLinuxOS, it's actually derived from 'Mandrake' back in the day.
...But, as of this year, a version based on 'Debian'(WITHOUT systemd) is emerging as a research-project... From what I hear, it's running smoothly...
Mine are /all/ 'Drakes' and rock-solid.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 15522
  • Censorship about opinions does not belong here.
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #13 on: June 28, 2024, 09:48:44 am »
And you mention that while I broke my brains about installing on wsl2 WITH systemd.. ;D
I need both with and without. I succeeded, but I initially misread the fm's. Happens.
Anyway, my brains are already broken, so no more damage could be done.

The way to do that - not to break brains, but installing systemd - is now documented on msdn.
« Last Edit: June 28, 2024, 09:55:42 am by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

cdbc

  • Hero Member
  • *****
  • Posts: 1497
    • http://www.cdbc.dk
Re: Installation of latest lazarus on PCLinuxOS unsuccessful
« Reply #14 on: June 28, 2024, 10:01:10 am »
Hi Thaddy
Quote
Anyway, my brains are already broken, so no more damage could be done.
That's nice to hear, then you fit perfectly well in with the rest of us  :D  8-)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018