* * *

Author Topic: Is it possible to run 2 versions of Lazarus at the same tiime?  (Read 4243 times)

vfclists

  • Full Member
  • ***
  • Posts: 156
    • HowTos Considered Harmful?
Is it possible to run 2 versions of Lazarus at the same tiime?
« on: February 06, 2010, 11:29:33 am »
I am currently using Lazarus 0.9.26.2 for a project. I want to install the latest stable and the latest SVN versions as well.

It is possible to have all three running on the system, without interference?

Will forms and code move between them easily, especially with upwards compatibility?

« Last Edit: February 25, 2010, 11:20:49 am by vfclists »
Lazarus 0.9.28.2/FPC 2.4.0/Windows
Lazarus 0.9.30.1/FPC 2.4.4/Windows
Lazarus 0.9.31.1/FPC 2.5.1/Linux

Mooji and the Sound of Wood Chopping
your Self, The Projector
The Strange Case of the ZX81


vfclists

  • Full Member
  • ***
  • Posts: 156
    • HowTos Considered Harmful?
Re: It it possible to run 2 versions of Lazarus at the same tiime?
« Reply #2 on: February 06, 2010, 12:16:06 pm »
Does each Lazarus version include its version of FreePascal, or do they use versions?

 I'd like to point each version to its own FreePascal if that is possible.

http://wiki.lazarus.freepascal.org/Multiple_Lazarus
http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg03720.html
Lazarus 0.9.28.2/FPC 2.4.0/Windows
Lazarus 0.9.30.1/FPC 2.4.4/Windows
Lazarus 0.9.31.1/FPC 2.5.1/Linux

Mooji and the Sound of Wood Chopping
your Self, The Projector
The Strange Case of the ZX81

Martin_fr

  • Hero Member
  • *****
  • Posts: 1120
Re: It it possible to run 2 versions of Lazarus at the same tiime?
« Reply #3 on: February 06, 2010, 02:09:55 pm »
You can have different FPC versions too.

The path to fpc is stored in the lazarus settings, so --primary-config-path allows you to do this.

If you install a Lazarus Snapshot (windows), then the fpc is installed inside the directory you chose at Lazarus-installation-time. And the FPC will have the correct fpc.cfg file.

If you download fpc from SVN, you also need to download the bin-utils (there is a separate SVN for that, or copy them from your other installation).
In this case you may have to look into you fpc.cfg by hand.

thierrybo

  • Full Member
  • ***
  • Posts: 110
Re: It it possible to run 2 versions of Lazarus at the same tiime?
« Reply #4 on: February 06, 2010, 05:25:10 pm »
This is easier to use several fpc installations with Windows because you just have to put a fpc.cfg next to each fpc.exe. It is a bit more difficult on Linux (http://www.lazarus.freepascal.org/index.php/topic,8386.0.html)

LazaruX

  • Hero Member
  • *****
  • Posts: 572
  • Lazarus original cheetah.The cheetah doesn't cheat
    • RedmondXP.com
Re: It it possible to run 2 versions of Lazarus at the same tiime?
« Reply #5 on: February 06, 2010, 10:54:28 pm »
If using this http://www.gobolinux.org/ Linux distribution, it should be possible

vfclists

  • Full Member
  • ***
  • Posts: 156
    • HowTos Considered Harmful?
Re: Is it possible to run 2 versions of Lazarus at the same tiime?
« Reply #6 on: February 25, 2010, 11:33:44 am »

I am currently using 0.9.26.2 beta, and after installing 0.9.28.2 it appears that the 0.9.28 version reverted to using the FPC 2.2.2 version that came with 0.9.26 instead of using its own FPC 2.2.4.

It appears to be using the settings in Local Settings\Application Data\lazarus directory which was created for 0.9.26.

Are the some options to give the shortcut which will get the 0.9.28 version to use its own FPC and its own IDE settings? I mean something settings passed on the command line only,  or linked with with its installation directory, or working directory, from rather than the registry or standard defaults?

I am currently using Lazarus 0.9.26.2 for a project. I want to install the latest stable and the latest SVN versions as well.

It is possible to have all three running on the system, without interference?

Will forms and code move between them easily, especially with upwards compatibility?


Lazarus 0.9.28.2/FPC 2.4.0/Windows
Lazarus 0.9.30.1/FPC 2.4.4/Windows
Lazarus 0.9.31.1/FPC 2.5.1/Linux

Mooji and the Sound of Wood Chopping
your Self, The Projector
The Strange Case of the ZX81

Bart

  • Hero Member
  • *****
  • Posts: 752
    • Bart en Mariska's Webstek
Re: Is it possible to run 2 versions of Lazarus at the same tiime?
« Reply #7 on: February 25, 2010, 03:40:10 pm »
1. Use --pcp=pathtoindividualconfigpath for each lazarus shortcut
2. In each lazarus you can specify where fpc is

I have 2 Lazarus versions running on both win and linux, both with each own fpc version.

Bart

vfclists

  • Full Member
  • ***
  • Posts: 156
    • HowTos Considered Harmful?
Re: Is it possible to run 2 versions of Lazarus at the same tiime?
« Reply #8 on: February 25, 2010, 04:31:41 pm »

1. Is the --pcp the equivalent to ~/.lazarus or %AppData%\Lazarus?

2. I see that the FPC can be selected in the IDE.
Can it be configured in the IDE as well?

1. Use --pcp=pathtoindividualconfigpath for each lazarus shortcut

2. In each lazarus you can specify where fpc is

I have 2 Lazarus versions running on both win and linux, both with each own fpc version.

Lazarus 0.9.28.2/FPC 2.4.0/Windows
Lazarus 0.9.30.1/FPC 2.4.4/Windows
Lazarus 0.9.31.1/FPC 2.5.1/Linux

Mooji and the Sound of Wood Chopping
your Self, The Projector
The Strange Case of the ZX81

Bart

  • Hero Member
  • *****
  • Posts: 752
    • Bart en Mariska's Webstek
Re: Is it possible to run 2 versions of Lazarus at the same tiime?
« Reply #9 on: February 26, 2010, 01:12:05 am »
You can set --pcp to any path you desire, as long as you have write access to it.

I have --pcp=H:\Programmas\SvnLaz\ in Windows
and
--pcp=/home/bart/.svnlaz in Linux
for my SVN versions of Lazarus.
The stable ones (one in each OS0 use their defaults.

Bart

thierrybo

  • Full Member
  • ***
  • Posts: 110
Re: Is it possible to run 2 versions of Lazarus at the same tiime?
« Reply #10 on: March 24, 2010, 06:10:56 pm »
Personally I do the opposite. I protect the stable lazarus using -pcp=lazarus-stable and I leave the svn version in the default folder. I did this because when I did as Bart, and install a lot of versions, there was always one moment  >:D I "forgot" to set --pcp (like double click on the exe) and it mess up my stable configuration.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads