Recent

Author Topic: Removing Lazarus 1.8.2 and installing new packages [SOLVED]  (Read 1987 times)

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
My Lazarus version is #1.8.2+dfsg-3, I installed it from "Software Manager" in Linux Mint. I had some problems like problems of LazVersion package, I would like to upgrade my Lazarus version, I downloaded 3 packages "lazarus-project_2.0.10-0_amd64 - fpc-src_3.2.0-1_amd64.deb - fpc-laz_3.2.0-1_amd64.deb".


(https://i.postimg.cc/VSyXRK0R/Screenshot-at-2021-05-06-00-38-54.png)

Is this all what I need, or I need to do things like cleaning old Lazarus folders or downloading additional packages?

« Last Edit: May 06, 2021, 03:01:18 am by pascal111 »
La chose par la chose est rappelé.

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Re: Removing Lazarus 1.8.2 and installing new packages
« Reply #1 on: May 06, 2021, 02:35:02 am »
I removed all right-marked packages "Software Manager" related to Lazarus, then I installed the 3 packages and removed also conflicting packages after some error messages, and the Lazarus IDE works now. Is there any additional information?
La chose par la chose est rappelé.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Removing Lazarus 1.8.2 and installing new packages
« Reply #2 on: May 06, 2021, 02:38:47 am »
You are probably better off removing the old, distro based, package before installing the new ones.

Make sure you install the new ones in a manner that covers dependencies, the 'apt' command does so in recent versions. So -

Code: Bash  [Select][+][-]
  1. sudo apt remove lazarus fpc-src fpc
  2. ...
  3. sudo apt install ./fpc-laz_3.2.0-1_amd64.deb  ./fpc-src_3.2.0-1_amd64.deb  ./lazarus-project_2.0.10-0_amd64

Note the "./" in front of each file name, necessary to force apt to use the local files, else it insists in looking in its own repo.

This should all be doced on the wiki ....

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

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1114
  • Professional amateur ;-P
Re: Removing Lazarus 1.8.2 and installing new packages
« Reply #3 on: May 06, 2021, 02:39:10 am »
Hey Pascal111,

The problem with most Linux distributions, and Debian based ones in particular, is that the Lazarus/FPC version offered are pretty old.

Ever since @DonAlfredo released fpcupdeluxe we can now install any combination of Lazarus/FPC versions WITH cross-compilation.

You will find in the fpcup  releases section a list of releases and their respective platform binaries.

Then:
  • Download the appropriate binary for you Linux Mint. This should be the fpcupdeluxe-i386-linux if it's a 32b install or fpcupdeluxe-x86_64-linux if it's a 64b install.
  • Make sure that you set the executable bit on the binary by means of chmod +x fpcupdeluxe-<CPU>-linux or via the file browser, right click on the binary and choose Properties
  • Make sure you have the following packages installed:
Code: Bash  [Select][+][-]
  1. $ sudo apt install
  2.         make \
  3.         binutils \
  4.         build-essential \
  5.         gdb \
  6.         git \
  7.         subversion \
  8.         zip \
  9.         unzip \
  10.         libx11-dev \
  11.         libgtk2.0-dev \
  12.         libgdk-pixbuf2.0-dev \
  13.         libcairo2-dev \
  14.         libpango1.0-dev
  • Run fpcupdeluxe
  • On the Edit at the TOP-LEFT corner choose the folder you want to install
  • On the two List Boxes on the left most side, select the versions of both FPC and Lazarus. A sound choice is to set them both to stable.
  • Press the big button that has the FPC+Lazarus=Thumbs Up button
  • Wait for the magic to happen

Once all the compilation has happened and fpcupdeluxe reports success, you'll have a link on your desktop to run Lazarus.

Cheers,
Gus
« Last Edit: May 06, 2021, 02:51:04 am by Gustavo 'Gus' Carreno »
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

pascal111

  • Sr. Member
  • ****
  • Posts: 423
  • Un trabajo en equipo para programas serias.
Re: Removing Lazarus 1.8.2 and installing new packages
« Reply #4 on: May 06, 2021, 03:01:01 am »
Thanks for these additions, I'll keep on my mind.
La chose par la chose est rappelé.

 

TinyPortal © 2005-2018