Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2023-02

Screwed up Lazarus installation - how to make clean and start over?

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I was trying to nail down the reason for the fppkg errors on start of Lazarus 2.2.4.
I had the install running fine except for the Config screen showing up on every start of Lazarus with an error message about fppkg...

So I proceeded to install my usual set of packages from OLPM, but when I had selected the set I usually install and it was done and asked about rebuilding Lazarus it did so and at the end closed itself and did not re-appear! Now I cannot start Lazarus at all....

I tried to move the pcp dir away but it did not work either and starting with an empty pcp dir does also not work.

So I tried to start over by going to the Lazarus dir and issue make clean, but that did also not work:

~/dev/lazarus/2.2.4 $ make clean
Makefile:234: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop.

What would be the correct procedure now to start over?

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote 21 lines
I was trying to nail down the reason for the fppkg errors on start of Lazarus 2.2.4. I had the install running fine except for the Config screen showing up on every start of Lazarus with an error message about fppkg... So I proceeded to install my usual set of packages from OLPM, but when I had selected the set I usually install and it was done and asked about rebuilding Lazarus it did so and at the end closed itself and did not re-appear! Now I cannot start Lazarus at all.... I tried to move the pcp dir away but it did not work either and starting with an empty pcp dir does also not work. So I tried to start over by going to the Lazarus dir and issue make clean, but that did also not work: ~/dev/lazarus/2.2.4 $ make clean Makefile:234: *** The Makefile doesn't support target can't-executed,, please run fpcmake first. Stop. What would be the correct procedure now to start over?

Lacking any advice here I started over by removing the old Lazarus directory and the pcp dir and then build from start with a new set of source files in a fresh 2.2.4 subdir...

All was Ok until again the OLPM packages were installed when the new Lazarus also failed to start. It seems like at least one of the packages I use from OLPM will hose Lazarus!

So now I will repeat the effort but this time I will install one package after another using OLPM and rebuild Lazarus IDE after each. This way I would be able to pinpoint the one that causes the problem.

Finally:
--------
I have looked at https://wiki.freepascal.org/lazbuild and want to know:

Is there a way to specify the compiler *path* to use for lazbuild? For example (on one line):

lazbuild --build-ide= --pcp=$HOME/.lazarus_2.2.4
--compiler=$HOME/lib/fpc/3.2.2/ppcarm

According to the wiki it is unclear to me if a path can be used rather than only the file name (in which case it needs to be on path?)...

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote 11 lines
Lacking any advice here I started over by removing the old Lazarus directory and the pcp dir and then build from start with a new set of source files in a fresh 2.2.4 subdir... All was Ok until again the OLPM packages were installed when the new Lazarus also failed to start. It seems like at least one of the packages I use from OLPM will hose Lazarus! So now I will repeat the effort but this time I will install one package after another using OLPM and rebuild Lazarus IDE after each. This way I would be able to pinpoint the one that causes the problem.

So now I have found a package in OnLinePackageManager that will hose Lazarus if installed:
BGRABitmap

Up until installing that I was fine, but now Lazarus won't start....

The Initial image is shown for 3 seconds and then disappears. Then nothing...

What can I do to get into Lazarus and remove the BGRABitmap?

Or is there somewhere a file or such I can edit and then rebuild the IDE from the command line?

This is on Linux (Raspberry Pi OS).

Bo Berglund Developer in Sweden

Reply by email

Ondrej Pokorny
to Bo Berglund
Bo Berglund wrote 29 lines
On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus wrote: > Lacking any advice here I started over by removing the old Lazarus directory and > the pcp dir and then build from start with a new set of source files in a fresh > 2.2.4 subdir... > > All was Ok until again the OLPM packages were installed when the new Lazarus > also failed to start. It seems like at least one of the packages I use from OLPM > will hose Lazarus! > > So now I will repeat the effort but this time I will install one package after > another using OLPM and rebuild Lazarus IDE after each. This way I would be able > to pinpoint the one that causes the problem. So now I have found a package in OnLinePackageManager that will hose Lazarus if installed: BGRABitmap Up until installing that I was fine, but now Lazarus won't start.... The Initial image is shown for 3 seconds and then disappears. Then nothing... What can I do to get into Lazarus and remove the BGRABitmap? Or is there somewhere a file or such I can edit and then rebuild the IDE from the command line? This is on Linux (Raspberry Pi OS).

Usually there is an "old" Lazarus executable (lazarus.old) next to the Lazarus executable. I usually switch to that if something is wrong with the new one. A problem arises if the old exe doesn't work either because it has been overwritten etc. Try it, that might be the quickest help.

Ondrej

Reply by email

John Landmesser
to Bo Berglund: On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus So now I have found a package…
Bo Berglund wrote 17 lines
On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus wrote: > Lacking any advice here I started over by removing the old Lazarus directory and > the pcp dir and then build from start with a new set of source files in a fresh > 2.2.4 subdir... > > All was Ok until again the OLPM packages were installed when the new Lazarus > also failed to start. It seems like at least one of the packages I use from OLPM > will hose Lazarus! > > So now I will repeat the effort but this time I will install one package after > another using OLPM and rebuild Lazarus IDE after each. This way I would be able > to pinpoint the one that causes the problem. So now I have found a package in OnLinePackageManager that will hose Lazarus if installed: BGRABitmap

*I could install this package on my:*

*Lazarus 2.3.0 (rev main-2_3-2873-g17b66f88c4) FPC 3.2.2 x86_64-linux-gtk2*

*Linux manjaro 6.1.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Feb 14 21:59:10 UTC 2023 x86_64 GNU/Linux
*

*
*

*Perhaps start lazarus from terminal to see what its telling ?!*

Show quoted text 14 lines
Up until installing that I was fine, but now Lazarus won't start.... The Initial image is shown for 3 seconds and then disappears. Then nothing... What can I do to get into Lazarus and remove the BGRABitmap? Or is there somewhere a file or such I can edit and then rebuild the IDE from the command line? This is on Linux (Raspberry Pi OS).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230222/d4ee2765/attachment.htm>

Reply by email

Bo Berglund
to Ondrej Pokorny: Usually there is an "old" Lazarus executable (lazarus.old) next to the Lazarus…
Ondrej Pokorny wrote 22 lines
On 22.02.2023 18:01, Bo Berglund via lazarus wrote: > So now I have found a package in OnLinePackageManager that will hose Lazarus if > installed: > BGRABitmap > > Up until installing that I was fine, but now Lazarus won't start.... > > The Initial image is shown for 3 seconds and then disappears. > Then nothing... > > What can I do to get into Lazarus and remove the BGRABitmap? > > Or is there somewhere a file or such I can edit and then rebuild the IDE from > the command line? > > This is on Linux (Raspberry Pi OS). Usually there is an "old" Lazarus executable (lazarus.old) next to the Lazarus executable. I usually switch to that if something is wrong with the new one. A problem arises if the old exe doesn't work either because it has been overwritten etc. Try it, that might be the quickest help.

Thanks Ondrej!
I had no idea such a 1-level backup existed!

Now running that older version but with a partially installed package... bglcontrols.lpk is not installed but bgrabitmappack.lpk is. So the whole thing is partially installed.

How can I *remove it totally* such that it is not existing at all in my system? I don't want this component to reinstall when I add another package and rebuild Lazarus.

Note:
I did the same OLPM install on a Linux Mint (PC platform) and there the whole package was installed just fine. No crash on that CPU.

Bo Berglund Developer in Sweden

Reply by email

Werner Pamler
to Bo Berglund
Bo Berglund wrote 7 lines
Now running that older version but with a partially installed package... bglcontrols.lpk is not installed but bgrabitmappack.lpk is. So the whole thing is partially installed. How can I *remove it totally* such that it is not existing at all in my system? I don't want this component to reinstall when I add another package and rebuild Lazarus.

You uninstall a package in the "Package" > "Install/Uninstall packages" dialog. Select the package to be removed in the left list, click "Uninstall selection" and then "Save and Rebuild IDE".

This will remove bglcontrols which is a runtime/designtime package, but it will not remove bgrabitmappack - it is a runtime package and thus is not compiled into the IDE. This cannot crash the compilation of the IDE. If you also want to get rid of it, go to "Package" > "Package Links", find it in the list, check it and click "Delete selected". This removes the path to the package from an internal list so that the IDE no longer knows where the package is (the files are still there, though - but you can delete them manually in the OS).

Reply by email

Bo Berglund
to Werner Pamler
Werner Pamler wrote
You uninstall a package in the "Package" > "Install/Uninstall packages" dialog. Select the package to be removed in the left list, click "Uninstall selection" and then "Save and Rebuild IDE".

I did the "Uninstall selection" OK but then I decided to go look for something else so I did not use the rebuild button.

Next I went there again to do the rebuild, but now the button is no longer enabled :-(

But I found another in Tools/Build Lazarus with profile Normal IDE If I use that will it do the same as the button you referred to?

Show quoted text 8 lines
This will remove bglcontrols which is a runtime/designtime package, but it will not remove bgrabitmappack - it is a runtime package and thus is not compiled into the IDE. This cannot crash the compilation of the IDE. If you also want to get rid of it, go to "Package" > "Package Links", find it in the list, check it and click "Delete selected". This removes the path to the package from an internal list so that the IDE no longer knows where the package is (the files are still there, though - but you can delete them manually in the OS).

I will remove the package folders below pcp dir onlinepackagemanager for these packages.

Bo Berglund Developer in Sweden

Reply by email

Mattias Gaertner
to Bo Berglund
Show quoted text 6 lines
[...] Next I went there again to do the rebuild, but now the button is no longer enabled :-( But I found another in Tools/Build Lazarus with profile Normal IDE If I use that will it do the same as the button you referred to?

Yes.

Mattias

Reply by email