Installation of latest lazarus on PCLinuxOS unsuccessful lazarus / 1-Linux ---------------------------------------------------------------------- Awesome Programmer · 2024-06-27 15:27 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. ---------------------------------------------------------------------- Dzandaa · 2024-06-27 15:49 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-> ---------------------------------------------------------------------- bobby100 · 2024-06-27 16:23 PCLinuxOS in Mandrake/Mandriva offspring, thus RPM-based distro: https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20x86_6 4%20RPM/Lazarus%203.4/ Read the topic linked by Dzandaa, and download RPM instead of DEB packages. ---------------------------------------------------------------------- Awesome Programmer · 2024-06-27 18:37 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?   So, how do you create fpc.cfg file? ---------------------------------------------------------------------- Awesome Programmer · 2024-06-27 19:09 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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i # path to the gcclib#ifdef cpui386-Fl/usr/lib/gcc/x86_64-mandriva-linux- gnu/12.4.0/32#endif#ifdef cpux86_64-Fl/usr/lib/gcc/x86_64-mandriva- linux-gnu/12.4.0#endif Now, the linking errors are gone... thank you... ---------------------------------------------------------------------- cdbc · 2024-06-27 19:56 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 ---------------------------------------------------------------------- TRon · 2024-06-28 01:06 @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 ? ---------------------------------------------------------------------- cdbc · 2024-06-28 06:06 Hi TRon Quoteis there any precompiled version of FPCUpdeluxe that is able run on PCLinuxOS ?Yup  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 ---------------------------------------------------------------------- TRon · 2024-06-28 06:46 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). ---------------------------------------------------------------------- Thaddy · 2024-06-28 07:11 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 ---------------------------------------------------------------------- cdbc · 2024-06-28 07:24 Hi QuoteIs 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 ---------------------------------------------------------------------- Thaddy · 2024-06-28 07:29 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% ---------------------------------------------------------------------- cdbc · 2024-06-28 07:42 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 ---------------------------------------------------------------------- Thaddy · 2024-06-28 07:48 And you mention that while I broke my brains about installing on wsl2 WITH systemd.. 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. ---------------------------------------------------------------------- cdbc · 2024-06-28 08:01 Hi Thaddy QuoteAnyway, 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    Regards Benny ---------------------------------------------------------------------- TRon · 2024-06-28 08:11 Quote from: cdbc on June 28, 2024, 09:24:12 amQuoteIs 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 [/quote] Ah ok, I see my error now. Thank you again cdbc. I interpreted the screenshot log from TS as installing 3.2.2 over 3.0.4 but it is actually the other way around (!?) Quote from: Thaddy on June 28, 2024, 09:11:29 amWell, yes and no. A previous install (not through fpcupdeluxe, but from the repository) can still conflict: ... Yes, and exactly why I dislike using the package manager or deb file install. When doing it manually you are able to install multiple FPC versions next to each other using the same config file. FPCUpDeluxe does provide a special crafted fpc.sh script that points to an hardcoded fpc.cfg but you have to remember to invoke it :-) Make indeed also default to system directories but you are able to provide custom directories through make. But you already know most (if not all of that). Just putting it down for the reader. ---------------------------------------------------------------------- Thaddy · 2024-06-28 13:13 Quote from: cdbc on June 28, 2024, 10:01:10 am That's nice to hear, then you fit perfectly well in with the rest of us    Regards Benny That depends, I belong to the humans that read encyclopedias (from 4-5 years old)  in print for fun, remembered most of it and only understood what that subject meant years later.... It is a curse, not a blessing. There are a few others on this forum.... (e.g. my wife likes to re-read books or re- watch films, I start to quote the conversations, you miss all that when you have my particular issue. It is definitely not normal, but nobody told me until I was in my 40's And by now I am often wrong) ---------------------------------------------------------------------- Awesome Programmer · 2024-06-28 13:27 Quote from: Thaddy on June 28, 2024, 09:11:29 amWell, 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   Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i you need apt-get purge fpc and apt-get autoremove and on other systems equivalents.Unless you know what you are doing, you will destroy your system executing PURGE and AUTOREMOVE. I followed someone's instruction on a forum on how to completely remove and delete Lazarus program from a linux system. It not ONLY purged and removed Lazarus compiler all across the system including all of my PROJECT FILES, but also system files. Even though I stopped it halfway, it was too late. I lost one week worth of work and I could NEVER recover from what AUTOREMOVE did, once I shutdown the system. I had to re-install Linux system back again and load my project files that was one week old.  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [b]The autoremove option removes packages that were automatically installed because some other package required them but, with those other packages removed, they are no longer needed.[/b] ---------------------------------------------------------------------- Thaddy · 2024-06-28 13:29 You won't destroy your system if the deb manager did his or her job. It is essential, though, if the releases are too different. You obviously did not manage unix systems in a professional setting. (as a backup you always have a, in fact multiple - live backup, I am even used to geo different locations) That said, the deb packaging of fpc and lazarus can be much better than the current state of them is. ---------------------------------------------------------------------- cdbc · 2024-06-28 15:07 Hi @Thaddy: From the looks of it, his system managed to "Crash and burn"...QuoteI lost one week worth of work and I could NEVER recover from what AUTOREMOVE did, once I shutdown the system. I had to re- install Linux system back again and load my project files that was one week old.  @OP: Do you use 'Synaptic' to install and update software? If you do, do you then remember to click the 'Reload' button to the far left, before all else?!? T h a t   i s   a   p r e r e q u i s i t e for getting fresh updates and the newest software! Ergo: 1) click 'Reload' button 2) click 'Mark updates' button(second from left) 3) click 'Apply changes/updates' button(third from left) has to be performed *every* time you start 'Synaptic', before anything else...! After that you can install new software. If /not/ you'll get old/obsolete/faulty software!!! Then install fpc, then fpc-src & finally lazarus + maybe libqt5pas Reboot. HTH N.B.: PCLinuxOS uses RPM-packages together with apt & synaptic!!! Regards Benny