Recent

Author Topic: how to update from Lazaros 3.8 to 4.0  (Read 521 times)

rcmz

  • Full Member
  • ***
  • Posts: 155
how to update from Lazaros 3.8 to 4.0
« on: May 12, 2025, 07:58:18 pm »
hi

how can I update Lazarus 3.8 to 4.0 without the need to reinstall all of the components already installed.

TIA
Ramiro

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11352
  • Debugger - SynEdit - and more
    • wiki
Re: how to update from Lazaros 3.8 to 4.0
« Reply #1 on: May 12, 2025, 08:08:23 pm »
When you update Lazarus will keep your config (unless you select to have it deleted).

After the update, when you run the new IDE you need to rebuild it once (from the Tools menu). That will re-install the packages (the list of packages is still known).

However, that requires that all your installed packages are compatible with 4.0.
For packages that came with Lazarus (in the components folder) the update versions are installed by the installer.
For other packages (OPM, or downloaded by yourself) you have to check for updates yourself.

I don't know if OPM can do an update all...

rcmz

  • Full Member
  • ***
  • Posts: 155
Re: how to update from Lazaros 3.8 to 4.0
« Reply #2 on: May 13, 2025, 03:41:29 am »
Hi,thx for your response.

I tried installing over 3.8 but when I try to rebuild the IDE I get errors counserning some components like Rx and others.

I do not uninstall the 3.8 version.

May be Im doing the update wrong.

TIA
Ramiro

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11352
  • Debugger - SynEdit - and more
    • wiki
Re: how to update from Lazaros 3.8 to 4.0
« Reply #3 on: May 13, 2025, 10:51:19 am »
I tried installing over 3.8 but

Some general advice / This may or may not be related to your issues.

With major version updates it may be better (but not always necessary) to uninstall the old. Sometimes units got moved to a different folder, and when installing over the existing older version, then that unit suddenly exists twice.

Though if you don't get errors about "duplicate ...." then it may be ok.

In general, when installing over, your first rebuild should be "clean all" => see the checkbox in menu "Tools" > "Configure build Lazarus".



Quote
when I try to rebuild the IDE I get errors counserning some components like Rx and others.

"RX" is a 3rd party component. It is likely (I don't know) that it needs to be updated for the new release of Lazarus. I haven't checked, there may already be an update available.

I guess you installed it via OPM. In that case you might have to go to OPM again, and trigger an update yourself.

3rd party updates are not automatically updated when you install a new Lazarus version.



You may also want to mention your OS. Sometimes that makes a difference, and someone with the same OS might know, but doesn't answer because they don't know you have the same OS...

If you are on Windows, you can use the "second install" checkbox of the installer to make a totally new and independent install. That means you can test everything, without any danger to your existing install.
After checking the "2nd install" you will be ask for a config path, which should be a new empty folder.
Once installed, you will have to install all the packages, since the 2nd install will not know the config of the first install.

If you want to test projects in the 2nd install, either backup first, or in your first install use "Export project".

rcmz

  • Full Member
  • ***
  • Posts: 155
Re: how to update from Lazaros 3.8 to 4.0
« Reply #4 on: May 13, 2025, 06:28:38 pm »
hi,

I did got and error on a duplicate file.

I will do a clean install and byte the bullet.

TIA
Ramiro

rcmz

  • Full Member
  • ***
  • Posts: 155
Re: how to update from Lazaros 3.8 to 4.0
« Reply #5 on: May 13, 2025, 06:32:08 pm »
hi,

Im running w7 on VirtualBox.

TIA
Ramiro

wp

  • Hero Member
  • *****
  • Posts: 12866
Re: how to update from Lazaros 3.8 to 4.0
« Reply #6 on: May 13, 2025, 08:03:19 pm »
Just tested installation of RX into Laz 4.0 on Windows 11, and found that it basically works. But... Since the entire installation of RX has a dependence on other packages, success of the installation depends on whether these packages are installed already. In my case (I had a virgin Laz 4.0, no other packages installed) installation aborts because the packages fpspreadsheet and zeos were not available ("One ore more packages were not found. See package graph for details"). In this case you have two options:
  • Skip these packages, just as OPM proposes ("Cannot install package ... Continue with next one?" --> "Yes"). There is a good chance that the basic installation will work because you probably will never access the missing functionality.
  • Abort the installation ("No" after "Continue with next one?"). Install the missing packages first, and then repeat the full installation of RX.

 

TinyPortal © 2005-2018