Forum > Windows (32/64)

Two version of Lazarus - can't extract to different folder

(1/2) > >>

Hi. I have some old version of Lazurus installed in C:\Lazarus. I was trying to install the newest one in different directory so i do:
 git clone -b fixes_2_2

Next i changed the path: 'c:\' to 'c:\Lazarus-nowy' - directory i created for new installation in three files:

Now i run 'make clean bigide' but it extract file to c:\Lazarus
Does anybody can tell me how to change this path?

Some choices
a) Remove the old installation and make a new installation
b) search for second installation of Lazarus (eg. with google see on the bottom of the page the possibility with the installer, deal with the path, with a fresh from git it is not so easy)
c) use fpcupdeluxe (for installation of fpc and lazaus side by side)


--- Code: ---> cd work
> git clone lazarus
> cd lazarus
> git switch fixes_2_2
> make bigide
> make install INSTALL_PREFIX=C:/lazarus/2.2.0_fixes
> c:/lazarus/2.2.0_fixes/startlazarus --pcp=c:/lazarus/2.2.0_fixes/lazarus_configuration_directory

--- End code ---

I am not sure if it is required to create the "lazarus_configuration_directory" before starting Lazarus.

Before starting your fresh build lazarus, make sure that you make a backup of your old Lazarus installation configuration files, and copy them to a more secure location such as shown in the example above and make sure to start your older installation of Lazarus using the --pcp option but using the correct configuration directory for that older installation.

Make sure to read the link posted by af0815 about multiple lazarus and also do not forget to update your startmenu link (for both your lazarus') accordingly (or whatever that menu is called in windows these days).


--- Quote from: rigczTheSky on October 02, 2023, 08:11:24 am ---...
Next i changed the path: 'c:\' to 'c:\Lazarus-nowy' - directory i created for new installation in three files:


--- End quote ---

Hmm, you changed the c:\ in those files ?  OK, so be careful, I am NOT a windows user. But I don't think those files should have any explicit path information in them. I use the same Lazarus source on linux and something like c:\ would mean very little here. The make process is intended to make the necessary binaries in the current directory where you run the make command. And it should not be doing any 'extract' any where. Perhaps there is some confusion about names here ?

Going over your process, I suggest you should be, from the command line -

--- Code: ---$> git clone -b fixes_2_2 c:\Lazarus-fixes22
$> cd  C:\Lazarus-fixes22
$> make clean bigide
--- End code ---

Then, create, in that same directory, a lazarus.cfg file, with, maybe -

--- Code: -----pcp=c:\LazConfigs\LazFixes22
--- End code ---

(Make sure that file is a plain text one, you know windows, I don't and I have trouble with such things !)

Just to make sure, make the config dir -

--- Code: ---$> md c:\LazConfigs
$> md c:\LazConfigs\LazFixes22
--- End code ---

Then, while still in the same directory, start Lazarus (it will use the lazarus.cfg file for the config location) -

--- Code: ---$> .\lazarus
--- End code ---

Afterwards, after you exit Lazarus and do something else, to come back, first change to that directory and then start Lazarus there, all from the Command Line. This could easily be in a batch file, you know more about that than me !

--- Code: ---cd C:\Lazarus-fixes22
--- End code ---

Probably important to ensure that NO Lazarus is in your path for this to work. I think the explicate ".\lazarus" should not use the PATH but Windows is not my OS.  If you have a path set to Lazarus, its possible the make may call lazbuild (?) or other tools from the original Lazarus during the build. 

FPC should be in your PATH. If you want to use multiple FPC, bit more complicated.


In addition to what dbannon wrote:

I have Delphi on my system and this makes massive changes to my path. Therefore all these simple commands like "make bigide" do not work since it calls Delphi's make utility (I refuse to add FPC to the path). In every Lazarus installation (I have more than 10 on the same sytem), I have a batch file, make_laz.bat, to compile Lazarus - it sets the FPC path only temporarily:

--- Code: ---set path=C:\Lazarus\fpc-3.2.2\bin\i386-win32;%path%
make clean bigide
--- End code ---

(where the path specified is the path to the FPC directory).


[0] Message Index

[#] Next page

Go to full version