Lazarus

Installation => Linux => Topic started by: jdslk2019 on April 17, 2019, 12:18:08 pm

Title: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: jdslk2019 on April 17, 2019, 12:18:08 pm
hi i am trying to install Lazarus 2.0.2 on Linux Mint , but i am getting error, please refer to the images attach
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Handoko on April 17, 2019, 12:24:10 pm
Try this:

http://wiki.freepascal.org/Installing_Lazarus_on_Linux
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: jdslk2019 on April 17, 2019, 12:35:12 pm
Thaks, but that link does not help
i am using Linux Minit
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Handoko on April 18, 2019, 07:28:27 am
I do not use Linux Mint, so not much I can say.

Please be patient, someone experience in Mint will come to help you.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Thaddy on April 18, 2019, 08:01:22 am
On mint there is a problem with dependencies that are otherwise satisfied in other distributions.
This is a known fact. Usually you can install the needed -dev packages by hand: after all the missing dependencies are advertised.
Mint is not as mint as it should be - for developers -. There are too many things left out.
This distribution is not well suited for developers although it is very good for end-users.

Anyway: all can be fixed, but it takes some effort from yourselves.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Zoran on April 18, 2019, 11:52:58 am
https://forum.lazarus.freepascal.org/index.php/topic,35214.msg246573.html#msg246573 (https://forum.lazarus.freepascal.org/index.php/topic,35214.msg246573.html#msg246573)
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: dbannon on April 18, 2019, 01:16:01 pm
OK, its its a dependencies issue, Zoran's model says we need to install, I quote -

sudo apt-get install build-essential
sudo apt-get install libgtk2.0-dev
sudo apt-get install libgdk-pixbuf2.0-dev

maybe try installing them and, tring again. AND, importantly, if its all good, lets update the wiki page !

And it would be pretty cool if we could see whats behind the 'details' link in those error images ...

Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Handoko on April 18, 2019, 02:20:16 pm
garlar27 has a list of dependencies, maybe it helps:

https://forum.lazarus.freepascal.org/index.php/topic,41524.msg288242.html#msg288242
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: dbannon on April 19, 2019, 03:10:32 am
garlar27 has a list of dependencies, maybe it helps:

https://forum.lazarus.freepascal.org/index.php/topic,41524.msg288242.html#msg288242

Hmm, and a usefull list too. I guess we could just have a script that installs every library we get reports of being needed. You run it, if a package  is already installed, it does no harm, if not, it gets installed. We might end up with a 'few' unnecessary libraries but maybe thats a smaller price to pay than people having problems.  Most of the list is just -dev anyway, just header files usually.

With distros like Mint, where they have just chosen to not bundle some developer stuff its fine. But what about some more "out there" distros where the mainainers have chosen some alternative library and we risk a clash ? Hmm....

Anyway, lets hear from jdslk2019 to see if Zoran suggestion helps .....

Davo
Davo
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: MichalMolhanec on April 25, 2019, 11:52:31 am
Hi, I had exactly the same problem.
For some reasond the GUI deb installer (GDebi) was not able to install the fpc-laz deb package although it said so.
When I used the command line
sudo apt install ./fpc-laz_3.0.4-1_amd64.deb
sudo apt install ./fpc-src_3.0.4-2_amd64.deb
sudo apt install ./lazarus-project_2.0.2-0_amd64.deb

it went well and Lazarus is now succesfully installed.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Handoko on April 25, 2019, 12:16:31 pm
GDebi in recent versions of Ubuntu have problem installing the Lazarus deb packages. You still can use GDebi to install Lazarus, but you have to:

1. Run GDebi using sudo:
sudo gdebi-gtk

2. On GDebi menu > File > Open > choose the deb file > Install Package
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: dbannon on April 26, 2019, 11:38:32 pm
Hi, I had exactly the same problem.
For some reasond the GUI deb installer (GDebi) was not able to install the fpc-laz deb package although it said so.
When I used the command line
sudo apt install ./fpc-laz_3.0.4-1_amd64.deb
sudo apt install ./fpc-src_3.0.4-2_amd64.deb
sudo apt install ./lazarus-project_2.0.2-0_amd64.deb

it went well and Lazarus is now succesfully installed.

The problem with apt install is it does not resolve dependencies. Now, perhaps you did not not have any unmet dependencies or perhaps your unsuccessful gdebi run solved them. And perhaps you might still have unresolved dependencies and just not hit them yet. There is an apt command that will resolve any unmet dependencies after an install, cannot remember ....

Handoko, what does gdebi do wrong ?  Seems to be working fine for me recently ?   We really should try and work out what the problem is and report it.

Davo
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: incendio on May 02, 2019, 10:52:49 am
Try this :

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

I got the same error, but now, it was solved.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: lucamar on May 02, 2019, 12:42:42 pm
The problem with apt install is it does not resolve dependencies.

Huh? IIRC, that's not true: apt (and apt-get) do resolve and install (previous confirmation) any dependencies (included, config dependent, "recomended" and "suggested") of the package you're installing. The one who installs just the package you tell him is dpkg.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: dbannon on May 02, 2019, 03:08:23 pm
Yes, you are quite correct lucamar, a very careless post on my part
Davo
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: Handoko on May 02, 2019, 04:46:58 pm
I'm not a Linux expert. But I often uninstall and reinstall Lazarus on my Linux machine and these are what I found:

Without using third party tools, installing Lazarus on Ubuntu sometimes may fail. Read more:
"Installing FPC Using Ubuntu Software - FAILED"
https://forum.lazarus.freepascal.org/index.php/topic,39281.msg269112.html#msg269112 (https://forum.lazarus.freepascal.org/index.php/topic,39281.msg269112.html#msg269112)

Gdebi is GUI tool that can help you install Lazarus on Ubuntu easily. It worked for installing Lazarus 1.8.4 on Ubuntu 18.04 and older versions. But later I found Gdebi was unable to install Lazarus 1.8.4 on Ubuntu 18.10 and Lazarus 2.0.2 on Ubuntu 19.04 if I don't run it as super user (sudo gdebi-gtk).

I recommend Synaptic Package Manager, a tool that can let you inspect installation issues like dependency, version conflict and broken package. It also can be used for doing version locking unfortunately it may fail on some Linux OS.
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: justnewbie on May 02, 2019, 08:27:32 pm
I made the install like this (always worked!):
1./ Uninstall the previous version, even manually delete the .lazarus folder from home/user folder (of course, my projects are saved in other location).
2./ Download the 3 install files (fpc-laz,fpc-src,lazarus) from here: https://www.lazarus-ide.org/ (https://www.lazarus-ide.org/)
3./ Copy these 3 files into 1 folder
4./ In the Terminal: $ sudo apt-get install libgtk2.0-dev
5./ In the Terminal open up the folder which contains the 3 files and $ sudo dpkg -i *.deb
That's it, you are ready!  :)
Title: Re: Error Installing lazarus-project_2.0.2-0_amd64 on Linux Minit
Post by: dbannon on May 03, 2019, 12:38:30 pm
justnewbie, I agree that removing any existing .lazarus dir from $HOME is a good idea. I think a lot of the problems users have is due to older installs. But some people want to retain some aspects of their previous install and Lazarus does try and do just that. But maybe it goes wrong occasionally .....

Davo
TinyPortal © 2005-2018