Recent

Author Topic: Annoying dependencies  (Read 6615 times)

pik33

  • Jr. Member
  • **
  • Posts: 78
Annoying dependencies
« on: June 22, 2011, 09:53:21 am »
I wanted to upgrade my 0.9.31 to new snapshot, and:

- new Lazarus cannot be installed because it wants FPC 2.4.4 and I have 2.4.2 in my system
- FPC 2.4.4 cannot be installed because my old Lazarus needs 2.4.2.

It's annoying.

I have to uninstall lazarus, then uninstall fpc, then install new fpc. then install new lazarus.

Windows users don't have these problems, because they have all in one package. I think there should be also all-in-one Linux rpm, to get rid of these stupid dependencies problems.


felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Annoying dependencies
« Reply #1 on: June 22, 2011, 10:16:20 am »
Instead of using snapshots, you could simply compile from svn. it is very easy to do so

pik33

  • Jr. Member
  • **
  • Posts: 78
Re: Annoying dependencies
« Reply #2 on: June 22, 2011, 10:34:36 am »
Maybe. At least in environment with good Internet access (at home I have very poor and limited wireless net access, so it is better for me to download a snapshot first in some other place, bring it home on portable disk and then install it)  But when upgrading to new version which requires new fpc... is it still possible?  New lazarus will not compile with old fpc - am I wrong?  So I still have to upgrade fpc first?

I have never used svn for installing Lazarus (and I used it only a few times to install some rare software not available as rpm packages)

JanRoza

  • Hero Member
  • *****
  • Posts: 738
    • http://www.silentwings.nl
Re: Annoying dependencies
« Reply #3 on: June 22, 2011, 11:15:02 am »
As far as I know when you install the new snapshot in the same folder as your old Lazarus installation it will update the files that are already there and installation will add FPC244.
The old FPC 242 folder should still be there and all you need to do is change the FPC paths in the Lazarus settings to switch FPC versions in Lazarus.

As an extra precaution I usually copy my existing Lazarus folder (and subfolders) to a new folder Lazarus_old and then do the installation of the new lazarus into the existing Lazarus folder.
If for any reason I'm not satisfied with the new Lazarus I just delete the Lazarus folder and rename the Lazarus_old folder again to 'Lazarus'. That way I can safely try a newer version without destroying what i had.

 
OS: Windows 11 / Linux Mint 22.2
       Lazarus 4.4 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Annoying dependencies
« Reply #4 on: June 22, 2011, 12:03:17 pm »
Maybe. At least in environment with good Internet access (at home I have very poor and limited wireless net access, so it is better for me to download a snapshot first in some other place, bring it home on portable disk and then install it)  But when upgrading to new version which requires new fpc... is it still possible?  New lazarus will not compile with old fpc - am I wrong?  So I still have to upgrade fpc first?

I have never used svn for installing Lazarus (and I used it only a few times to install some rare software not available as rpm packages)

You can also download the lazarus source code via svn somewhere else and then copy this folder to a pen drive and transport to your home. Arriving at home you just need to issue these terminal commands:

1> copy the lazarussvn to a local folder
2> cd ~/mylazarussvn_path
3> make clean bigide
4> ./lazarus --pcp=localconfig

Open the menu Tools->Options->Paths, set all the paths to FPC and happy coding

Just remember to aways start lazarus with the primary config path option, a desktop icon is good for doing this

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12119
  • Debugger - SynEdit - and more
    • wiki
Re: Annoying dependencies
« Reply #5 on: June 22, 2011, 12:22:36 pm »
Afaik 0.9.31 compiles with 2.4.2 (at least it does on win)

The installer, may have a dependency, or include a higher fpc, but I guess you can try to ignore this.

If you install, then all you ppu (lcl, packages) are compiled with 2.4.4. => so you need to recompile them with your fpc version.

Either download the sources, or try forcing the installer to ignore the fpc version (no idea how to do that). Then recompile Lazarus

pik33

  • Jr. Member
  • **
  • Posts: 78
Re: Annoying dependencies
« Reply #6 on: June 22, 2011, 02:36:46 pm »
This was not a problem, it is only annoying. Try to install lazarus, can't (it needs fpc) Try to upgrade fpc - can't, blocked by old lazarus. A closed circle. Instead of using build-in-desktop rpm management (double click on rpm and wait until it installs), I had to launch software management program, uninstall all three packages, then install new packages again.

So I think it can be useful to have one single Lazarus/fpc rpm (like Windows version), or maybe we should loosen these dependencies in rpms (fpc>=2.x.x instead of fpc=2.x.x) to avoid manual uninstalling of all this lazarus/fpc/fpc-src stuff when such "big" upgrade is needed.

 

TinyPortal © 2005-2018