Recent

Author Topic: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up  (Read 5216 times)

etherbrat

  • New member
  • *
  • Posts: 8
Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« on: February 01, 2019, 07:25:42 am »
I installed FreePascal 3.0.4 from a ZIP file containing an installer script - seemed like a good idea at the time. Then I tried to install Lazarus 1.8.4 from a DEB file using apt. But because the FreePascal installer did not update the apt repository, the Lazarus install fails because it thinks there are missing dependencies. The FreePascal install script does not contain an uninstall option which would let me back out and try again. What a mess (and a pretty poor effort by the creators of the FreePascal install script, IMHO). How can I get around this?

sash

  • Sr. Member
  • ****
  • Posts: 366
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #1 on: February 01, 2019, 09:50:30 am »
What a mess (and a pretty poor effort by the creators of the FreePascal install script, IMHO). How can I get around this?

Probably it's good to have uninstall option in script (which is intended to be used by experienced users), but the real mess is to mix incompatible install methods, while there is perfectly working (for most known Debian derivatives) set of deb packages for apt install.
Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #2 on: February 01, 2019, 10:33:28 am »
etherbrat, I am sure you understand that if you install an app outside of the apt system, updating the apt database would be a very bad idea !

So, if you have a failed 'manual' install, you really must manually remove any part of it thats likely to get in the way latter on. Only then can you proceed to where you, perhaps, should have started from.

Right now, its great, FPC 3.0.4 has been around long enough that most distros are shipping it in their default model. So, using it is really the default way of getting going. But, in your case, you really must clean up that failed manual install first !

Did you run that manual install as root or yourself ?  In either case you should try and find where it installed things. Generally, the problem will revolve around things installed on your path and /etc.

When its cleaned up, install FPC and FPC Source from distro's repo. Along with any necessary dependancies. Note: "pdkg install something.deb" does not resolve dependancies. Gdebi is a better choice. Then you have a couple of options to get Lazarus. Easiest is to use your distros offering. If its 1.8.4 maybe thats the way to go. Or download the deb from FPC/Lazarus website and use gdebi to install.  Better, IMHO is to pull down lazarus src using SVN and build it in your own space, bit more flexible ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #3 on: February 01, 2019, 10:34:50 am »
 >:( You say that, the web site says it, but it ain’t true. See for yourself - navigate to the Linux offerings and look: No DEB files. I’m not the sort who looks a gift horse in the mouth. If there had been a DEB file there, I would have used it.

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #4 on: February 01, 2019, 10:45:48 am »
Think you need to calm down a bit.

Where are you looking for deb files ?

I'd expect the debian repo has fpc 1.8.4 but if not, grab them from https://sourceforge.net/projects/lazarus/files/

But, as I noted, if you don't use the official repo, do use gdebi (or similar) because you risk not resolving dependencies. As, I suspect, you have already found.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #5 on: February 01, 2019, 10:54:06 am »
Yes ... ... but that’s Lazarus: DEB files there, no argument.

I’m talking about FPC: No DEB files there.

balazsszekely

  • Guest
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #6 on: February 01, 2019, 11:29:29 am »
@etherbrat
I'm gonna tell you a secret. Since you already installed FPC, you should "install" Lazarus trunk with the latest bugfixes and new features:
1. Install svn: "sudo apt-get install subversion"
2. Open a terminal, go to your favorite directory, then type: "svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus"
3. Go to lazarus folder from terminal, then type "make bigide" and you're good to go
« Last Edit: February 01, 2019, 11:34:09 am by GetMem »

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #7 on: February 01, 2019, 11:34:18 am »
Nifty secret. Makes sense. I thank you.

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #8 on: February 01, 2019, 12:19:34 pm »
Yes ... ... but that’s Lazarus: DEB files there, no argument.

I’m talking about FPC: No DEB files there.

They are the ones called fpc_3.0.4-3_amd64.deb and fpc-src_3.0.4-2_amd64.deb

I guess they are too obscurely named.

And I repeat my earlier suggestion that once fpc is installed, you are better off using SVN to download src and compile Lazarus yourself.

edit - noting Getmem's suggestion, I prefer fixes_2_0 over trunk, safer ....

Davo
« Last Edit: February 01, 2019, 12:29:26 pm by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #9 on: February 01, 2019, 01:30:47 pm »
I may be a beginner but, contrary to the belief of most respondents, I am not a complete moron.

freepascal.org > Dowloads > Intel/i386 > Linux > SourceForge takes me to here:

https://sourceforge.net/projects/freepascal/files/Linux/3.0.4

See for yourself. Actually look. No DEB files.


sash

  • Sr. Member
  • ****
  • Posts: 366
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #10 on: February 01, 2019, 01:32:36 pm »
I’m talking about FPC
Yet you named your topic as "Installing Lararus 1.8.4 on Ubuntu ..."
Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #11 on: February 01, 2019, 01:54:29 pm »
That’s what happens when you only read the title. And yes, the true nature of the problem only surfaced after I had successfully installed FPC using the script, and as I was trying to install Lazarus - as described in both the title and the body of the post.

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #12 on: February 01, 2019, 11:01:49 pm »
I may be a beginner but, contrary to the belief of most respondents, I am not a complete moron.

freepascal.org > Dowloads > Intel/i386 > Linux > SourceForge takes me to here:

https://sourceforge.net/projects/freepascal/files/Linux/3.0.4

See for yourself. Actually look. No DEB files.

Nobody thinks you a moron but you do seem to have some communications problems. And an attitude that will not get you anywhere. But I will try one more time. Sigh.

You did not mention you were using 32bit, now I can be a bit more specific, step by step, first, so you learn how its structured, go to the link I posted several messages ago -

https://sourceforge.net/projects/lazarus/files/

From there you click "Lazarus Linux i386 DEB" - that will take you to -

https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20i386%20DEB/

From there you need to click "Lazarus 1.8.4" - that will take you to

https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20i386%20DEB/Lazarus%201.8.4/

There I see 32bit debs. They have a different name than I mentioned when assuming 64bit. But if, as we both agree, you are not a moron, you will see them there.

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

etherbrat

  • New member
  • *
  • Posts: 8
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #13 on: February 01, 2019, 11:19:01 pm »
You should stop dealing in condescension and start dealing in facts. For a start, try reading the posts. I heave already made it clear theat I have the Lararus DEB file - it’s the FPC DEB file that is missing. Sheesh. In all honesty, I have never met such a bunch of arrogant pricks. When I go onto other forums, people offer sincere, truthful and relevant advice, rather than trying to shift the blame to me. I’m done here.

dbannon

  • Hero Member
  • *****
  • Posts: 2792
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing Lararus 1.8.4 on Ubuntu - dependencies mess-up
« Reply #14 on: February 01, 2019, 11:44:29 pm »
I give up.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018