Lazarus
Installation => Linux => Topic started 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:
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.
-
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.
-
Hi Leledumbo,
Thanks for the reply. I found the leakview package (Package -> Install/Unintall Packages), but the package info says
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.
-
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.
-
It won't let me uninstall the package because it says it's needed by the IDE. Or am I misunderstanding something?
-
Put the following line is a file
$(LazarusDir)/components/leakview/leakview.lpk
Name this file leakview-1.lpl and save it in
$(LazarusDir)/packager/globallinks
Edit:
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,...
-
Hi engkin,
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
-
:) 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.
-
Thanks engkin. Problem solved, the error message no longer appears. :)
-
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. :)
-
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.
-
I recompiled the IDE - Tools/Build Lazarus...
The error message disappeared, and so did the package reference.
-
@windsurfer
Your solution worked for me.
Thanks alot
-
@engkin THANK YOU! And all of you guys! It works fine now! I like it! ;)
-
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?