Can't find the lazarus executable /usr/lib/lazarus/2.2.6/lazarus lazarus / 1-Linux ---------------------------------------------------------------------- Windsor82 · 2025-03-02 20:13 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 · 2025-03-02 21:03 Quote from: Windsor82 on March 02, 2025, 09:13:08 pmInstallation 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? No idea. How did you install it ? with apt ? QuoteAlso, this does not seem to be the latest version of Lazarus. I got this version from the Q4OS repository. 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 · 2025-03-03 11:38 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  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $> 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  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $> 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 · 2025-03-03 13:30 Can't check that but some  debian based distro's install in /usr/local as root, not /usr so try Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 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 · 2025-03-04 01:23 OK, some surprises. The only debian box I have with an official repo lazarus is Trixie->Sid and it has - Lazarus is in /usr/bin/lazarus/3.8 The main executable there is not called lazarus, its lazarus-gtk2 (but never, in an install like this use that directly). The desktop file is /usr/share/applications/lazarus-3-8.desktop From the command line, you don't use $> lazarus , its $> lazarus-ide 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 ---------------------------------------------------------------------- Windsor82 · 2025-03-04 19:46 How do you make sure you have uninstalled the original Lazarus installation? ---------------------------------------------------------------------- TRon · 2025-03-04 20:21 Quote from: Windsor82 on March 04, 2025, 08:46:55 pmHow do you make sure you have uninstalled the original Lazarus installation? By verifying whatever method used to install it. If that says it is not installed (anymore) then it should be removed. That usually does leave some after installation created files behind because Lazarus generates them at launching it but if that never happened... fwiw: /.lazarus (where user home directory is the user that installed and/or invoked Lazarus). ---------------------------------------------------------------------- dbannon · 2025-03-04 22:09 .... and check for lazarus files in the places I mentioned a couple of posts up. If the install failed, some may have been installed but not all. When that happens, an un-install can also fail to remove everything. Then check you have a working fpc still - Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $> fpc -vh Should see a version number and a menion of a config file (also complaint about no file to compile but don't worry about that). Davo ---------------------------------------------------------------------- Windsor82 · 2025-03-07 22:33 Thanks for all the help. I went to the Sourceforge.net location for Lazarus (https://sourceforge.net/projects/lazaru … rus%203.8/) and got all 3 necessary Debian files. Downloaded them and when I clicked on each file Q4OS installed them flawlessly! It seems that the Q4OS repository for Lazarus needs to be updated.