Recent

Author Topic: Install Lazarus 32bits on Ubuntu 22.04.1  (Read 1030 times)

jraviles

  • New member
  • *
  • Posts: 6
Install Lazarus 32bits on Ubuntu 22.04.1
« on: October 05, 2022, 03:15:11 pm »
Hello everyone, I'm trying to install Lazarus 2.2.4 32bits via deb package Ubuntu 22.04.1 64 Bits, clean installation, when installing Lazarus it can't compile any project, even creating a new blank one, when trying to recompile the IDE it gives the error that it cannot find GCC, when trying to install GCC again via
sudo apt-get install manpages-dev, it removes Lazarus, and when installing the deb package, it removes Lazarus, the installation sequence I'm doing is fpc-src, fpc-laz, larazus-project.

How do I solve this riddle?

Thank you very much in advance.

MarkMLl

  • Hero Member
  • *****
  • Posts: 5547
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #1 on: October 05, 2022, 07:41:40 pm »
I'm a Debian rather than an Ubuntu user, but does it have a package named like multiarch? I'd expect that to contain the basic libraries etc. that you needed, subsequent to that you /might/ need to specify an architecture when installing gdb etc.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

wp

  • Hero Member
  • *****
  • Posts: 10257
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #2 on: October 05, 2022, 07:59:07 pm »
the installation sequence I'm doing is fpc-src, fpc-laz, larazus-project.
I don't know which consequence this has, but I think the order is: fpc-laz first, then fpc-src, finally lazarus-project (fpc-src and fpc-laz exchanged).

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #3 on: October 05, 2022, 08:07:15 pm »
Hello.

Are you sure multi-arch is installed, like Mark noted?

On Debian system, like Ubuntu or Mint just do in console:

Code: Bash  [Select][+][-]
  1. sudo dpkg --add-architecture i386
then
Code: Bash  [Select][+][-]
  1. sudo apt-get update

And then install the fpc-Lazarus i386 deb-packages in right order.
« Last Edit: October 05, 2022, 08:09:57 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #4 on: October 05, 2022, 08:32:53 pm »
when trying to recompile the IDE it gives the error that it cannot find GCC,

When you have installed multi-arch (see previous post), if you have such message, you must install the correspondent i386 package:

Code: Bash  [Select][+][-]
  1. sudo apt-get install -y gcc:i386

« Last Edit: October 05, 2022, 08:52:54 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

AlexTP

  • Hero Member
  • *****
  • Posts: 1957
    • UVviewsoft
« Last Edit: October 05, 2022, 10:32:40 pm by AlexTP »


MarkMLl

  • Hero Member
  • *****
  • Posts: 5547
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #7 on: October 23, 2022, 04:45:13 pm »
I'm currently upgrading my main development system which has been running Debian "Buster" for the last three years to Debian "Bookworm", because there's a few "bleeding edge" things I anticipate wanting to run sooner rather than later.

I notice that the multiarch-support package that was on Buster and older versions has been dropped. I think that the main thing this was doing was pulling in an i386 variant of libc6, I think (but am not sure) that it's replaced by binutils-multiarch.

If anybody has any comment I'd be interested to know, but am deferring investigation until after I've got all the basic development tools etc. back up and running.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #8 on: October 23, 2022, 05:10:21 pm »
I'm currently upgrading my main development system which has been running Debian "Buster" for the last three years to Debian "Bookworm", because there's a few "bleeding edge" things I anticipate wanting to run sooner rather than later.

I notice that the multiarch-support package that was on Buster and older versions has been dropped. I think that the main thing this was doing was pulling in an i386 variant of libc6, I think (but am not sure) that it's replaced by binutils-multiarch.

If anybody has any comment I'd be interested to know, but am deferring investigation until after I've got all the basic development tools etc. back up and running.

MarkMLl

Hi Mark.

Bookworm is not yet released and is for testing.
So I hope that Debian will not give up with multiarch and it is only the multiarch packages that are not yet ready.

If Debian decides to give up with multiarch, it is sad ( but i can not imagine that, how will they do for wine that needs multiarch? ).

Fre;D
« Last Edit: October 23, 2022, 05:15:20 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

MarkMLl

  • Hero Member
  • *****
  • Posts: 5547
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #9 on: October 23, 2022, 05:43:29 pm »
Note the way I phrased things: It's on "Buster" and older, but appears to have been already dropped from "Bullseye" which was released as stable a year ago.

So I think the functionality is still there, but they've changed the packaging in some way I've not worked out.

Right now that's not my biggest problem...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #10 on: October 23, 2022, 06:26:38 pm »
Maybe I miss something.
[EDIT] Ha, ok, I think I get it. Yes maybe the multiarch packages design is changed from Buster to BullsEye, I dont know  :-\.

My system is:

Distributor ID:   Debian
Description:   Debian GNU/Linux 11 (bullseye)
Release:   11
Codename:   bullseye


and I did not have any problem to install multiarch ( following the previous post: https://forum.lazarus.freepascal.org/index.php/topic,60816.msg456170.html#msg456170 )
« Last Edit: October 23, 2022, 06:40:51 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

MarkMLl

  • Hero Member
  • *****
  • Posts: 5547
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #11 on: October 23, 2022, 07:46:31 pm »
Yes. I've also got a note of having used  dpkg --add-architecture i386  on the older system, as I've said I'm not entirely sure what that package does: it appears to have originated with upstream glibc and so far I've seen no definite indication that installs anything useful.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Fred vS

  • Hero Member
  • *****
  • Posts: 2836
    • StrumPract is the musicians best friend
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #12 on: October 23, 2022, 08:14:52 pm »
Yes. I've also got a note of having used  dpkg --add-architecture i386  on the older system,

Note that without  sudo apt-get update after dpkg --add-architecture i386 i386 packages are not installed.
Also the best is to do those command just after install Debian, so each time a package 64 bit system dependency is installed, the equivalent i386 package is automatically installed too.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

MarkMLl

  • Hero Member
  • *****
  • Posts: 5547
Re: Install Lazarus 32bits on Ubuntu 22.04.1
« Reply #13 on: October 23, 2022, 08:49:54 pm »
Note that without  sudo apt-get update after dpkg --add-architecture i386 i386 packages are not installed.
Also the best is to do those command just after install Debian, so each time a package 64 bit system dependency is installed, the equivalent i386 package is automatically installed too.

Yes. As I said, it's been running for three years or so. However I'm moving it to the bleeding edge because there is a program I use heavily- FreeCAD- with an absolutely dire upstream architectural bug which they promise they'll do something about over the next year or so, and I want to make sure I've got the newest possible library underpinning so that even if it doesn't get into Debian I can build it from scratch.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018