Lazarus

Installation => Linux => Topic started by: jacobite on October 31, 2013, 07:39:26 pm

Title: error on startup
Post by: jacobite on October 31, 2013, 07:39:26 pm
Hi folks,

I'm using Lubuntu 13.10 and have installed Lazarus using apt-get, but on startup I get the following message:

Quote
The package "leakview" is installed, but no valid package file (.lpk) was found.
A broken dummy package was created.

It isn't a show stopper, but just thought I'd mention it.

Title: Re: error on startup
Post by: Leledumbo on November 01, 2013, 07:37:20 am
The leakview package should be in the components directory, try to locate that (simply open from package menu), the IDE will update the location and the error should be gone.
Title: Re: error on startup
Post by: jacobite on November 01, 2013, 10:44:04 am
Hi Leledumbo,

Thanks for the reply. I found the leakview package (Package -> Install/Unintall Packages), but the package info says

Quote
Description / Abstract: This package is installed, but the lpk file was not found. All its components are deactivated. Please fix this.

I did a search on my system but it didn't turn up any leakview.lpk.
Title: Re: error on startup
Post by: Leledumbo on November 01, 2013, 11:23:31 am
The Package -> Install/Unintall Packages only looks for .lpl in its own cache, it doesn't link to the actual .lpk. If you cannot find one, then probably it was installed by mistake. Just uninstall.
Title: Re: error on startup
Post by: jacobite on November 01, 2013, 01:29:19 pm
It won't let me uninstall the package because it says it's needed by the IDE. Or am I misunderstanding something?
Title: Re: error on startup
Post by: engkin on November 01, 2013, 02:03:09 pm
Put the following line is a file
Quote from: $(LazarusDir)/packager/globallinks/leakview-1.lpl
$(LazarusDir)/components/leakview/leakview.lpk

Name this file leakview-1.lpl and save it in
$(LazarusDir)/packager/globallinks

Edit:
Quote from: globallinks/README.txt
The files should have filenames with the format
<pkgname>-<version>.lpl.
...
To update the lpl files use the tool tools/lplupdate

File version on my system is 1, and it did not change, yet:
http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/

If you would like to track the code that generated this message:
File: Lazarus\packager\packagesystem.pas
Line: 5072
Format(lisPkgSysThePackageIsInstalledButNoValidPackageFileWasFound,...
Title: Re: error on startup
Post by: jacobite on November 01, 2013, 02:42:06 pm
Hi engkin,

Quote
Name this file leakview-1.lpl and save it in
$(LazarusDir)/packager/globallinks

That file already exists in /usr/lib/lazarus/1.0.10/packager/globallinks and contains the line

$(LazarusDir)/components/leakview/leakview.lpk
Title: Re: error on startup
Post by: engkin on November 01, 2013, 03:04:56 pm
 :) Then you don't have the file it refers to:
$(LazarusDir)/components/leakview/leakview.lpk

Copy it from:
http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/

Edit:
Copy the whole package.
Title: Re: error on startup
Post by: jacobite on November 02, 2013, 09:23:39 am
Thanks engkin. Problem solved, the error message no longer appears.  :)
Title: Re: error on startup
Post by: jacobite on November 02, 2013, 05:54:39 pm
By the way, I'd better introduce myself!

Pascal/Lazarus newbie, although I did learn the basics of Pascal 20 years ago at Uni (long since forgotten). I've been programming in an 'obscure' language called Euphoria (http://www.rapideuphoria.com/) for the last 12 years, but have been looking for something more heavyweight.

I'm not a professional programmer, but write code to analyse data (and for fun and to create various utilities).

I'm very happy to have found FP/Laz, although slightly nervous about learning OO concepts, which I've avoided until now, but I'm sure I'll get some help from this forum if need be.  :)
Title: Re: error on startup
Post by: Ranieri Machado on December 29, 2013, 10:12:09 pm
Thank you engkin!

Now I got rid of that annoying message.

I used Delphi for more than 17 years and I just discovered Lazarus. I am glad for being able to program on Linux.
Title: Re: error on startup
Post by: Windsurfer on January 17, 2014, 06:27:35 pm
I recompiled the IDE - Tools/Build Lazarus...

The error message disappeared, and so did the package reference.
Title: Re: error on startup
Post by: muzzoman on October 23, 2015, 04:00:38 pm
@windsurfer
Your solution worked for me.
Thanks alot
Title: Re: error on startup
Post by: nickylodeon on September 16, 2017, 12:19:17 pm
@engkin THANK YOU! And all of you guys! It works fine now! I like it! ;)
Title: Re: error on startup
Post by: howardpc on October 01, 2018, 06:22:23 pm
You could try this:
Write down the list of problematic packages.
Package->Package Links...
In the "Select" column, check all the problematic packages. Click the [Delete Selected] button.
Then locate and open each 'deleted' package in the package editor, and compile it.
Does that solve the problem?
TinyPortal © 2005-2018