Forum > Linux

Can't find the lazarus executable /usr/lib/lazarus/2.2.6/lazarus

(1/2) > >>

Windsor82:
I just installed Linux Q4OS Aqurius and downloaded Lazarus. Installation seemed to go well, but the first time I tried to open Lazarus I got this error message: "Can't find the lazarus executable /usr/lib/lazarus/2.2.6/lazarus"    What is going on? Also, this does not seem to be the latest version of Lazarus. I got this version from the Q4OS repository. I am running a Dell Latitude 5480 laptop, Intel i5a Ram DDR4, 256 GB SSD.







TRon:

--- Quote from: Windsor82 on March 02, 2025, 09:13:08 pm ---Installation seemed to go well, but the first time I tried to open Lazarus I got this error message: "Can't find the lazarus executable /usr/lib/lazarus/2.2.6/lazarus"    What is going on?

--- End quote ---
No idea. How did you install it ? with apt ?


--- Quote ---Also, this does not seem to be the latest version of Lazarus. I got this version from the Q4OS repository.

--- End quote ---
The chosen distribution dictates what is shipped out of the box. That is how Linux works. Especially Debian based distro's are lacking a bit behind. There are other options such as FPCUpDeluxe, the tarballs from sourceforge or compile from source and I believe there are .deb packages somewhere that all are available in newer versions for FPC/Lazarus.

dbannon:

Yes, as TRon said, if you use your distro's version of Lazarus, its probably out of date.
Your distro is based on Debian Bookworm, it has Lazarus 2.2.6 so that all makes sense. While using a later Lazarus would be a good idea (as TRon suggested) maybe you want work out why your Lazarus 2.2.6 is not working ? Lots and lots of installs work as expected. I'd very much doubt Aqurius makes any changes to Lazarus !

Did you look to see if /usr/lib/lazarus/2.2.6/lazarus is there ?  Generally, an install like this (in root space) must be started with startlazarus rather than lazarus, so maybe your error came from startlazarus ?


--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$> ls -l /usr/lib/lazarus/2.2.6/lazarus
Did you start from the command line or using a menu ?  If menu, then you will be hitting lazarus.desktop and it should have the right command. Such commands go through debian's "alternatives" system, far too complicated and maybe broken by  Aqurius ? Who knows ? Worth trying from the command line, might see some hint of where the problem is, I'd try -


--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$> startlazarus and $> /usr/lib/lazarus/2.2.6/startlazarus
If you decide to abandon Lazarus 2.2.6 (and thats a good idea) make sure you remove all traces of your failed Lazarus install before starting a new model. I always suggest installing Lazarus from source into user space, instructions https://wiki.freepascal.org/Installing_Lazarus_on_Linux . You probably have a valid FPC install, test it and if its OK, use it. 

Let us know how you go.

Davo

Thaddy:
Can't check that but some  debian based distro's install in /usr/local as root, not /usr
so try
--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---ls -l /usr/local/lib/lazarus/2.2.6/lazarusI think the official deb file provided by freepascal.org also installs in /usr/local by default (which used to be bloody irritating to me)

dbannon:
OK, some surprises. The only debian box I have with an official repo lazarus is Trixie->Sid and it has -

[x] Lazarus is in /usr/bin/lazarus/3.8
[x] The main executable there is not called lazarus, its lazarus-gtk2 (but never, in an install like this use that directly).
[x] The desktop file is /usr/share/applications/lazarus-3-8.desktop
[x] From the command line, you don't use $> lazarus <enter>, its $> lazarus-ide <enter>
[x] lazarus-ide is a symlink, /usr/bin/lazarus-ide to /etc/alternatives/lazarus-ide which is a symlink to /usr/lib/lazarus/3.8/startlazarus

Hmm, no wonder people struggle when they come here looking for help.

Given the above and assuming book worm is similar (except version numbers), I have no idea where you got the reference to /usr/lib/lazarus/2.2.6/lazarus from.  My advice, much stronger now, is to remove all the apt installed lazarus, download a current source (3.8 or 4.0rc2) and build it with "make bigide". Its easy, save and but putting it in your own home directory (rather than root space) a much simpler install.

Using the debain bookworm FPC (3.2.2) is OK but you may consider the release candidate at some point in time. Your call.

Do make sure you remove that existing, failed, lazarus install first !!

Davo



Navigation

[0] Message Index

[#] Next page

Go to full version