Recent

Author Topic: Errors after update Lazarus 0.9.30 in ubuntu 9.10  (Read 15859 times)

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Errors after update Lazarus 0.9.30 in ubuntu 9.10
« on: March 30, 2011, 06:27:28 pm »
Till now, I had on my ubuntu 9.10, Lazarus 0.9.28.2.
After an update of ubuntu, Lazarus was partially erased  :(, (I answered 'yes' when I was asked if I want old packages removed, after update).
Then, I installed Lazarus 0.9.30 using Synaptic.
I tried to start an .lpk (component package) file and showed me following errors:

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

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

3.Package: "CGILazIDE 0.0"
Unit Name: "CGILazIDEIntf"
Unit not found:"CGILazIDEIntf

4.When I tried to compile my package, showed me error:
Package "mycomponentspackage 0.0" has no valid output directory:""

Installed:
fpc 2.4.2-0
fpc-crosswin32 2.4.2
fpc-source 2.4.2-0

How can i make it work ?
« Last Edit: March 30, 2011, 06:48:29 pm by panoss »
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #1 on: March 30, 2011, 06:56:30 pm »
Remove the local config dir ~/.lazarus
and start Lazarus again. Your local settings refer to removed packages.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #2 on: March 30, 2011, 07:20:37 pm »
You mean /home/username/.lazarus, am I right?
I removed it and reinstalled lazarus, but nothing changed.
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #3 on: March 30, 2011, 07:57:31 pm »
You mean /home/username/.lazarus, am I right?

Yes.

Quote
I removed it and reinstalled lazarus, but nothing changed.

Somehow you have old units left from the old version.
Try cleaning Lazarus related dirs manually and then installing the new version.
The unit you listed is not included any more in the new version.

 http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_release_notes#CGI

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #4 on: March 31, 2011, 10:09:41 am »
I uninstalled cmpletely lazarus (from synaptic).
I deleted:
/usr/lib/lazarus/0.9.28.2
/usr/lib/lazarus/0.9.30
/usr/lib/lazarus/default
/home/username/.lazarus

Reinstalled lazarus.
On the start up showed me the message that I should choose between the old and the new version (0.9.28.2 and 0.9.30), which means that I haven't removed everything from the old version.
Also tried to compile a package (.lpk) and gave me error:
Package "mycomponentspackage 0.0" has no valid output directory: ""
« Last Edit: March 31, 2011, 11:50:53 am by panoss »
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #5 on: March 31, 2011, 09:01:07 pm »
Just in case...
Have you removed the Lazarus config folder located in your home folder?
It's name is ".lazarus"

if not, try to remove or rename it.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #6 on: April 01, 2011, 08:12:50 am »
Just in case...
Have you removed the Lazarus config folder located in your home folder?
It's name is ".lazarus"

if not, try to remove or rename it.
I deleted:
...
/home/username/.lazarus
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #7 on: April 01, 2011, 09:20:37 am »
Reinstalled lazarus.
On the start up showed me the message that I should choose between the old and the new version (0.9.28.2 and 0.9.30), which means that I haven't removed everything from the old version.

Strange problem you have.

What does the message say exactly? Maybe we can check that from source code.
I haven't seen such message but I usually have only one version at time. For testing I can checkout different versions from git repo and compile which happens quickly.

I guess you don't start lazarus with --primary-config-path (or --pcp) argument?

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #8 on: April 01, 2011, 02:40:28 pm »
Strange problem you have.

What does the message say exactly? Maybe we can check that from source code.
It says: The current lazarus directory "usr/lib/lazarus/0.9.28.2" does not look correct. Without it you will not be able to create LCL applications. Choose OK to choose the default "usr/lib/lazarus/0.9.30". Otherwise check Environment->Environment options->Files.

I guess you don't start lazarus with --primary-config-path (or --pcp) argument?
I start lazarus from Applications-->Programming-->Lazarus, not from a terminal.
(where the command is: startlazarus-0.9.30%f)
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #9 on: April 01, 2011, 03:36:58 pm »
Maybe following informations are usefull:
Environment->options:

Lazarus directory (default for all projects)
/usr/lib/lazarus/0.9.30/

Compiler path (e.g fpc)
/usr/bin/fpc

FPC source directory
/usr/share/fpcsrc/2.4.2/

Make path
-----

Directory for building test projects
/tmp/
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #10 on: April 01, 2011, 08:23:23 pm »
I opened my package, which showed me the package window (which shows the files of the package).
Clicked Options->Usage->Unit I added '$(PkgOutDir)'.
Clicked Compiler Options->Unit output directory->I added 'lib/$(TargetCPU)-$(TargetOS)'.
It works!!! I cant believe I spent so many days far something like that!!
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #11 on: April 02, 2011, 09:42:55 am »
It says: The current lazarus directory "usr/lib/lazarus/0.9.28.2" does not look correct. Without it you will not be able to create LCL applications. Choose OK to choose the default "usr/lib/lazarus/0.9.30". Otherwise check Environment->Environment options->Files.

...and...

Quote
Lazarus directory (default for all projects)
/usr/lib/lazarus/0.9.30/

That is contradictory. Lazarus directory="/usr/lib/lazarus/0.9.30/" yet still it complains it is "usr/lib/lazarus/0.9.28.2".
This value is stored in the local config which you deleted earlier.
I don't know what is happening there. I am glad you got it working somehow.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

DanArg

  • Newbie
  • Posts: 2
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #12 on: April 03, 2011, 02:51:08 am »
Hello. My first message here, how are you all?.
I have the same problem this afternoon after uninstall lazarus 0.9.28 and install 0.9.30.
But in my case (Ubuntu desktop 10.04 64 bit version) I don't have to do any configuration changes, just saved a very simple test project (button + label, button click changes the label text), compile and run without problems.
After this I close and reopen Lazarus and - lucky for me - the problem dissapear.
Ok ,that's all folks, see you later.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4698
  • I like bugs.
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #13 on: April 03, 2011, 10:45:23 am »
After this I close and reopen Lazarus and - lucky for me - the problem dissapear.
Ok ,that's all folks, see you later.

That sounds logical. Lazarus directory was "usr/lib/lazarus/0.9.28.2" and it was changed to "/usr/lib/lazarus/0.9.30/".
Later there are no more errors or warnings about that path.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Errors after update Lazarus 0.9.30 in ubuntu 9.10
« Reply #14 on: April 09, 2011, 03:57:45 pm »
Sorry i'm not as far yet as errors, i would just like to know how to start installing Lazarus 0.9.30 properly. After i tried 0.9.28 with synaptic i couldn't even compile my own applications. Now i uninstalled all fpc and lazarus, and forcefully deleted all fpc/lazarus folders from etc/ and /usr, and .lazarus/ from home/... don't want to do it again.

So i as i have 32 bit Ubuntu i downloaded:
fpc-2.4.2-0.i386.deb.tar
lazarus-0.9.30-i386.deb.tar
... and extracted in temp folder which now have 32 .deb files  %) How should i proceed with that? I can select them all and right click -> install but shouldn't there be some kind of order for dependencies? And it opens a separate window for each one, it would be a clickfest, and i don't propably need any gtk files with gnome?
« Last Edit: April 09, 2011, 04:03:36 pm by User137 »

 

TinyPortal © 2005-2018