Recent

Author Topic: error on startup  (Read 27654 times)

jacobite

  • New Member
  • *
  • Posts: 10
error on startup
« 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.


Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: error on startup
« Reply #1 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.

jacobite

  • New Member
  • *
  • Posts: 10
Re: error on startup
« Reply #2 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.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: error on startup
« Reply #3 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.

jacobite

  • New Member
  • *
  • Posts: 10
Re: error on startup
« Reply #4 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?

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: error on startup
« Reply #5 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,...
« Last Edit: November 01, 2013, 02:24:14 pm by engkin »

jacobite

  • New Member
  • *
  • Posts: 10
Re: error on startup
« Reply #6 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

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: error on startup
« Reply #7 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.
« Last Edit: November 01, 2013, 03:08:19 pm by engkin »

jacobite

  • New Member
  • *
  • Posts: 10
Re: error on startup
« Reply #8 on: November 02, 2013, 09:23:39 am »
Thanks engkin. Problem solved, the error message no longer appears.  :)

jacobite

  • New Member
  • *
  • Posts: 10
Re: error on startup
« Reply #9 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 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.  :)

Ranieri Machado

  • Newbie
  • Posts: 1
Re: error on startup
« Reply #10 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.

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: error on startup
« Reply #11 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.

muzzoman

  • New Member
  • *
  • Posts: 11
Re: error on startup
« Reply #12 on: October 23, 2015, 04:00:38 pm »
@windsurfer
Your solution worked for me.
Thanks alot
Vivi come se dovessi morire domani, pensa come se non dovessi morire mai

nickylodeon

  • Guest
Re: error on startup
« Reply #13 on: September 16, 2017, 12:19:17 pm »
@engkin THANK YOU! And all of you guys! It works fine now! I like it! ;)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: error on startup
« Reply #14 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