Lazarus

Installation => Windows (32/64) => Topic started by: egsuh on September 05, 2021, 07:03:05 am

Title: Cannot Install Any Package
Post by: egsuh on September 05, 2021, 07:03:05 am
I was using Lazarus 2.0.12 very well on Windows 10. I tried to install IBX from Online package manager, but since then Lazarus is not responding. I quitted it, re-installed Lazarus. Fine up to this. But when I tried to install FrameViewer then it displays message that "Object reference is Nil", and cannot run Lazarus anymore.
Title: Re: Cannot Install Any Package
Post by: egsuh on September 05, 2021, 07:37:24 am
Now I can set up Lazarus by deleting all previous configurations, and install FrameViewer. But when I tried to install IBX from Online Package Manager, the error happen again. Object reference is Nil.
Title: Re: Cannot Install Any Package
Post by: balazsszekely on September 05, 2021, 08:23:29 am
Hi egsuh,

Quote
I was using Lazarus 2.0.12 very well on Windows 10. I tried to install IBX from Online package manager, but since then Lazarus is not responding. I quitted it, re-installed Lazarus. Fine up to this. But when I tried to install FrameViewer then it displays message that "Object reference is Nil", and cannot run Lazarus anymore.

First of all you don't have to reinstall Lazarus, you always have a backup of the binary in the installation folder(see attached screenshot). Delete the current executable, then rename lazarus.old to lazarus.
Secondly I don't think this issue is related to OPM, please try to install IBX by opening the lpk file. Does the same error occurs?
Title: Re: Cannot Install Any Package
Post by: egsuh on September 05, 2021, 09:00:18 am
I tried to install IBX from downloaded lpk file, but the same problem recurred. Your advice of re-using old file helped me greatly this time^^
Title: Re: Cannot Install Any Package
Post by: balazsszekely on September 05, 2021, 03:32:44 pm
I installed IBX both on Lazarus 2.0.12/Trunk(32 bit), everything works fine, no exception, no "Object reference is Nil". Are you using 64 bit Lazarus?

Edit: It works with 64 bit Lazarus too. I'm puzzled by this issue.
Title: Re: Cannot Install Any Package
Post by: Zvoni on September 06, 2021, 08:53:52 am
Did you install Lazarus into "Program Files"?
If yes, never do that. Install to "c:\Lazarus" to avoid the UAC-Crap
Title: Re: Cannot Install Any Package
Post by: balazsszekely on September 06, 2021, 09:20:57 am
Did you install Lazarus into "Program Files"?
If yes, never do that. Install to "c:\Lazarus" to avoid the UAC-Crap
Most likely some dependencies are not met. See here for more details: https://forum.lazarus.freepascal.org/index.php/topic,54287.msg403249.html#msg403249
Title: Re: Cannot Install Any Package
Post by: Zvoni on September 06, 2021, 12:05:56 pm
Then the question remains: After you download from OPM and install, is the recompile successful?
his subject is "Cannot install any packages"
TinyPortal © 2005-2018