Lazarus
Installation => Linux => Topic started 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
-
Try this:
http://wiki.freepascal.org/Installing_Lazarus_on_Linux
-
Thaks, but that link does not help
i am using Linux Minit
-
I do not use Linux Mint, so not much I can say.
Please be patient, someone experience in Mint will come to help you.
-
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.
-
https://forum.lazarus.freepascal.org/index.php/topic,35214.msg246573.html#msg246573 (https://forum.lazarus.freepascal.org/index.php/topic,35214.msg246573.html#msg246573)
-
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 ...
-
garlar27 has a list of dependencies, maybe it helps:
https://forum.lazarus.freepascal.org/index.php/topic,41524.msg288242.html#msg288242
-
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
-
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.
-
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
-
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
-
Try this :
https://forum.lazarus.freepascal.org/index.php/topic,45261.0.html
I got the same error, but now, it was solved.
-
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.
-
Yes, you are quite correct lucamar, a very careless post on my part
Davo
-
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.
-
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! :)
-
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