Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-07

Problems installing Lazarus on Linux Mint

16 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's suggestion and used the Linux Locate command and removed all files that had "lazarus? (without the quotes) in the name. Then I downloaded the latest 64-bit version from the lazarus download site and tried to install it with dpkg. I received several errors and the installation is not working. I will put below a copy of the Linux Mint console screen with the errors.
-------------------------------------------------- ------------------------------------------------
ricardo at Pavilion-dm3:~/Downloads$ sudo dpkg -i
lazarus-project_3.4.0-0_amd64.deb
Selecting previously unselected package lazarus-project. (Reading database... 614998 files and directories currently installed.) Preparing to unpack lazarus-project_3.4.0-0_amd64.deb... Unpacking lazarus-project (3.4.0)...
dpkg: dependency issues prevent configuration of lazarus-project: lazarus-project depends on libgtk2.0-dev (>= 2.6.0); although: Package libgtk2.0-dev is not installed.
lazarus-project depends on fpc-laz (= 3.2.2); although: fpc-laz package is not installed.
lazarus-project depends on fpc-src (= 3.2.2); although: Package fpc-src is not installed.

dpkg: error processing package lazarus-project (--install): dependency issues - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu3)... Processing triggers for desktop-file-utils (0.26+mint3+victoria) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for shared-mime-info (2.1-2)... Processing triggers for man-db (2.10.2-1)...
Errors were found during processing of:
lazarus-project
-------------------------------------------------- ------------------------------------------------

I'm looking to replace freepascal because IDE 2.2 no longer opened projects created by itself.

Thanks in advance.

Greetings from S?o Paulo - Brazil

Ari Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240718/d9bdb93a/attachment.htm>

Reply by email

Matthieu Giroux
to Arí Ricardo Ody

Use :sudo apt install -f

Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr

Le jeudi 18 juillet 2024 ? 15:15:05 UTC+2, Ar? Ricardo Ody via lazarus a ?crit :

I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's suggestion and used the Linux Locate command and removed all files that had "lazarus? (without the quotes) in the name. Then I downloaded the latest 64-bit version from the lazarus download site and tried to install it with dpkg. I received several errors and the installation is not working. I will put below a copy of the Linux Mint console screen with the errors. -------------------------------------------------- ------------------------------------------------ ricardo at Pavilion-dm3:~/Downloads$ sudo dpkg -i lazarus-project_3.4.0-0_amd64.deb Selecting previously unselected package lazarus-project. (Reading database... 614998 files and directories currently installed.) Preparing to unpack lazarus-project_3.4.0-0_amd64.deb... Unpacking lazarus-project (3.4.0)...
dpkg: dependency issues prevent configuration of lazarus-project: ?lazarus-project depends on libgtk2.0-dev (>= 2.6.0); although: ?Package libgtk2.0-dev is not installed.
?lazarus-project depends on fpc-laz (= 3.2.2); although: ?fpc-laz package is not installed.
?lazarus-project depends on fpc-src (= 3.2.2); although: ?Package fpc-src is not installed.

dpkg: error processing package lazarus-project (--install): ?dependency issues - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu3)... Processing triggers for desktop-file-utils (0.26+mint3+victoria) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for shared-mime-info (2.1-2)... Processing triggers for man-db (2.10.2-1)...
Errors were found during processing of:
?lazarus-project
-------------------------------------------------- ------------------------------------------------

I'm looking to replace freepascal because IDE 2.2 no longer opened projects created by itself.

Thanks in advance.

Greetings from S?o Paulo - Brazil

Ari Ricardo--

Reply by email

Matthieu Giroux
to Matthieu Giroux

You need to install fpc packages with dpkg, downloaded from lazarus repository.

Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr

Le jeudi 18 juillet 2024 ? 15:26:17 UTC+2, Matthieu Giroux via lazarus a ?crit :

Use :sudo apt install -f

Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr

Le jeudi 18 juillet 2024 ? 15:15:05 UTC+2, Ar? Ricardo Ody via lazarus a ?crit :

I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's suggestion and used the Linux Locate command and removed all files that had "lazarus? (without the quotes) in the name. Then I downloaded the latest 64-bit version from the lazarus download site and tried to install it with dpkg. I received several errors and the installation is not working. I will put below a copy of the Linux Mint console screen with the errors. -------------------------------------------------- ------------------------------------------------ ricardo at Pavilion-dm3:~/Downloads$ sudo dpkg -i lazarus-project_3.4.0-0_amd64.deb Selecting previously unselected package lazarus-project. (Reading database... 614998 files and directories currently installed.) Preparing to unpack lazarus-project_3.4.0-0_amd64.deb... Unpacking lazarus-project (3.4.0)...
dpkg: dependency issues prevent configuration of lazarus-project: ?lazarus-project depends on libgtk2.0-dev (>= 2.6.0); although: ?Package libgtk2.0-dev is not installed.
?lazarus-project depends on fpc-laz (= 3.2.2); although: ?fpc-laz package is not installed.
?lazarus-project depends on fpc-src (= 3.2.2); although: ?Package fpc-src is not installed.

dpkg: error processing package lazarus-project (--install): ?dependency issues - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu3)... Processing triggers for desktop-file-utils (0.26+mint3+victoria) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for shared-mime-info (2.1-2)... Processing triggers for man-db (2.10.2-1)...
Errors were found during processing of:
?lazarus-project
-------------------------------------------------- ------------------------------------------------

I'm looking to replace freepascal because IDE 2.2 no longer opened projects created by itself.

Thanks in advance.

Greetings from S?o Paulo - Brazil

Ari Ricardo--

Reply by email

Mattias Gaertner
to Arí Ricardo Ody: I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's…
Ar? Ricardo Ody wrote 11 lines
I had lazarus 2.2 installed on Linux Mint. As I couldn't remove it, I followed charGPT's suggestion and used the Linux Locate command and removed all files that had "lazarus? (without the quotes) in the name. Then I downloaded the latest 64-bit version from the lazarus download site and tried to install it with dpkg. I received several errors and the installation is not working. I will put below a copy of the Linux Mint console screen with the errors. -------------------------------------------------- ------------------------------------------------ ricardo at Pavilion-dm3:~/Downloads$ sudo dpkg -i lazarus-project_3.4.0-0_amd64.deb

Please install all three packages:
fpc-laz, fpc-src and lazarus-project.

Mattias

Reply by email

Arí Ricardo Ody

Talking about my problem installing Lazarus on Linux Mint

Mr. Mattias Gaertner wrote:

"Please install all three packages:
fpc-laz, fpc-src and lazarus-project."

So I opened the Linux Mint terminal and tried it. Here's what happened: ========================================================= ricardo at Pavilion-dm3:~$ sudo apt install fpc-laz fpc-src lazarus-project Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package fpc-src is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
However, the following packages replace it:
fpc-source-3.2.2
Package lazarus-project is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

Package fpc-laz is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'fpc-laz' has no installation candidate E: Package 'fpc-src' has no installation candidate E: Package 'lazarus-project' has no installation candidate ricardo at Pavilion-dm3:~$
=========================================================

I'm starting to believe that I will never have Lazarus on my Linux Mint again.
For many years I tried to use Linux without success with installations of all types. So I started thinking that to use Linux a person needed to be an expert or have one nearby.
Linux Mint gave me new hope.
But all the problems started again. I wonder why the Lazarus installation doesn't work. Or I can't make it work.
Can anyone tell me what I should or can do to install the

lazarus-project_3.4.0-0_amd64.deb

on my Linux Mint?

Or can I only successfully install it on Windows?

I appreciate any help.

Greetings from S?o Paulo - Brasil

Ar? Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240719/fd51a640/attachment.htm>

Reply by email

Giuliano Colla
to Arí Ricardo Ody

Il 20/07/24 00:43, Ar? Ricardo Ody via lazarus ha scritto:

Show quoted text 7 lines
Talking about my problem installing Lazarus on Linux Mint Mr. Mattias Gaertner wrote: "Please install all three packages: fpc-laz,? fpc-src and lazarus-project."

<snip>

I'm using Lazarus under different Linux distros since 25 years, and I never found a platform where it doesn't install and work properly, so I've collected a fairly good experience.

You have three ways to install Lazarus:

1) if the distro provides a Lazarus package, you may try to take advantage of it. That means in a Debian distro using apt-get or in a Red-Hat style distro using yum or dnf. Usually either it doesn't work at all, or it's an old obsolete version. If it doesn't work perfectly at the first attempt, forget about what your distro provides.

2) get rid of anything related with Lazarus and fpc your distro has provided, and when positively you get a "not found" both for "startlazarus" and "fpc" invocation, download and install the three packages suggested by Mattias Gartner *from the fpc-lazarus website*, selecting your architecture and your package format (deb in your case) You may find it just Here
<https://www.lazarus-ide.org/index.php?page=downloads>

3) Use fpcupdeluxe, which performs an "isolated" installation, not giving a damn about the mess your distro has made with fpc and Lazarus. Just download the binary for your platform, make it executable, select an appropriate installation directory in your user space and launch it. Select the stable versions of fpc and Lazarus, and if you want to test the new features, you may later install a second version in a different folder with the "trunk" versions. You may download fpcupdeluxe for your architecture? from Here
<https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases?after=crosslibs_v1.3>. If you don't see what you need, just click on "Show all 43 assets" to get the full list. I believe that what you need is just a plain fpcupdeluxe-x86_64-linux.

Both in cases 2) and 3) it might complain about some system libraries missing. It tells you the library it needs but it can't know the name of the package in which your distro has included it. It's then up to you to locate and install the necessary packages, either asking apt-get which package provides that library, or asking the web.

Hope that it helps.

Giuliano

Do not do to others as you would have them do to you.They might have different tastes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240720/047c2f71/attachment.htm>

Reply by email

Wayne Sherman
to Giuliano Colla
Giuliano Colla wrote
2) get rid of anything related with Lazarus and fpc your distro has provided...

When trying to clean out leftover fpc and lazarus files, also search in "/etc" and "~/" ($HOME) for these:
(note that some of these are "hidden")

.fppkg (directory)
instantfpc (directory)
fppkg.cfg
fppkg.bak
fpc.cfg
fpc*.cfg
fp.ini
fp.cfg
fp*.cfg
.lazarus (directory)
lazarus* (directory)

3) Use fpcupdeluxe,...it might complain about some system libraries missing.

Follow the instructions here:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe

The instructions list the common dependencies and provide an example install command for debian like systems:
sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev

Reply by email

Unknown author
to Arí Ricardo Ody: Talking about my problem installing Lazarus on Linux Mint "Please install all three…

On 7/19/24 18:43, Ar? Ricardo Ody via lazarus wrote:

Wayne has given you the command you need to install all the dependencies, but I can assure you that Lazarus works just fine on Linux Mint, as that's what I'm using here.

Brian.

Show quoted text 55 lines
Talking about my problem installing Lazarus on Linux Mint Mr. Mattias Gaertner wrote: "Please install all three packages: fpc-laz,? fpc-src and lazarus-project." So I opened the Linux Mint terminal and tried it. Here's what happened: ========================================================= ricardo at Pavilion-dm3:~$ sudo apt install fpc-laz fpc-src lazarus-project Reading package lists... Done Building dependency tree... Done Reading state information... Done Package fpc-src is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However, the following packages replace it: ? fpc-source-3.2.2 Package lazarus-project is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package fpc-laz is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'fpc-laz' has no installation candidate E: Package 'fpc-src' has no installation candidate E: Package 'lazarus-project' has no installation candidate ricardo at Pavilion-dm3:~$ ========================================================= I'm starting to believe that I will never have Lazarus on my Linux Mint again. For many years I tried to use Linux without success with installations of all types. So I started thinking that to use Linux a person needed to be an expert or have one nearby. Linux Mint gave me new hope. But all the problems started again. I wonder why the Lazarus installation doesn't work. Or I can't make it work. Can anyone tell me what I should or can do to install the lazarus-project_3.4.0-0_amd64.deb on my Linux Mint? Or can I only successfully install it on Windows? I appreciate any help. Greetings from S?o Paulo - Brasil Ar? Ricardo

Reply by email

Christo Crause
to Giuliano Colla: Il 20/07/24 00:43, Ar? Ricardo Ody via lazarus ha scritto: <snip> I'm using Lazarus under…

On Sat, Jul 20, 2024 at 1:57?AM Giuliano Colla via lazarus <

Show quoted text 8 lines
wrote: 1) if the distro provides a Lazarus package, you may try to take advantage of it. That means in a Debian distro using apt-get or in a Red-Hat style distro using yum or dnf. Usually either it doesn't work at all, or it's an old obsolete version. If it doesn't work perfectly at the first attempt, forget about what your distro provides.

Debian derivatives based on "stable" ships with relatively old package versions due to its release philosophy (the focus is on stability, not latest features). For example the Lazarus version available for Linux Mint 21.3 via apt is 2.2, which was released more than 2 years ago. I also recommend going the alternative route suggested by Giulano to get the latest up to date versions of fpc and Lazarus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240720/6cc83819/attachment.htm>

Reply by email

Juha Manninen
to Christo Crause

Reply by email

Arí Ricardo Ody
to Juha Manninen

Hey guys!

Firstly, congratulations to anyone who can easily install Lazarus on any distro. I never got it. It's been a very difficult thing in any of the distros I've used.
I really appreciate Lazarus and I love using it, but installing it on Linux is really difficult. At least in my experience. Once again I was suffering even though I was using Linux Mint, a very user-friendly distro. Even with the help of all the kind people here in this group, I couldn't do it. I was about to give up when I remembered to ask chatGPT. So, following his instructions, I finally successfully installed version 3.4.
So I would like to thank everyone here for their collaboration who tried to help.

Greetings from S?o Paulo - Brazil

Ari Ricardo

On Sat, Jul 20, 2024 at 6:27?AM Juha Manninen via lazarus <

Show quoted text 23 lines

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240720/3495c442/attachment.htm>

Reply by email

Mattias Gaertner
to Juha Manninen
Juha Manninen wrote 11 lines
On Sun, Jul 21, 2024 at 12:57?AM Bart via lazarus < > wrote: > Why do you assume chatGPT is male? > I followed Ari Ricardo's assumption. "*So, following his instructions ...*" Anyway it is impressive if chatGPT can give better instructions than any human.

When I asked it, it hallucinated a lazarus debian repo.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
On 7/21/24 00:18, Juha Manninen via lazarus wrote: > On Sun, Jul 21, 2024 at 12:57?AM Bart via lazarus < > > wrote: > >> Why do you assume chatGPT is male? >> > > I followed Ari Ricardo's assumption. > "*So, following his instructions ...*" > > Anyway it is impressive if chatGPT can give better instructions than any > human. When I asked it, it hallucinated a lazarus debian repo.

I often hallucinate a lazarus debian repo, even when sober.

Michael.

Reply by email