Forum > Linux

Removing Lazarus 1.8.2 and installing new packages [SOLVED]

(1/1)

pascal111:
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?

pascal111:
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?

dbannon:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---sudo apt remove lazarus fpc-src fpc...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

Gustavo 'Gus' Carreno:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ sudo apt install        make \        binutils \        build-essential \        gdb \        git \        subversion \        zip \        unzip \        libx11-dev \        libgtk2.0-dev \        libgdk-pixbuf2.0-dev \        libcairo2-dev \        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

pascal111:
Thanks for these additions, I'll keep on my mind.

Navigation

[0] Message Index

Go to full version