Errors after update Lazarus 0.9.30 in ubuntu 9.10 lazarus / 1-Linux ---------------------------------------------------------------------- panoss · 2011-03-30 16:27 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 ? ---------------------------------------------------------------------- JuhaManninen · 2011-03-30 16:56 Remove the local config dir ~/.lazarus and start Lazarus again. Your local settings refer to removed packages. Juha ---------------------------------------------------------------------- panoss · 2011-03-30 17:20 You mean /home/username/.lazarus, am I right? I removed it and reinstalled lazarus, but nothing changed. ---------------------------------------------------------------------- JuhaManninen · 2011-03-30 17:57 Quote from: panoss on March 30, 2011, 07:20:37 pmYou mean /home/username/.lazarus, am I right? Yes. QuoteI 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 ---------------------------------------------------------------------- panoss · 2011-03-31 08:09 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: "" ---------------------------------------------------------------------- garlar27 · 2011-03-31 19:01 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 · 2011-04-01 06:12 Quote from: garlar27 on March 31, 2011, 09:01:07 pmJust 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. Quote from: panoss on March 31, 2011, 10:09:41 amI deleted: ... /home/username/.lazarus ---------------------------------------------------------------------- JuhaManninen · 2011-04-01 07:20 Quote from: panoss on March 31, 2011, 10:09:41 amReinstalled 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 ---------------------------------------------------------------------- panoss · 2011-04-01 12:40 Quote from: JuhaManninen on April 01, 2011, 09:20:37 amStrange 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. Quote from: JuhaManninen on April 01, 2011, 09:20:37 amI 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) ---------------------------------------------------------------------- panoss · 2011-04-01 13:36 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/ ---------------------------------------------------------------------- panoss · 2011-04-01 18:23 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!! ---------------------------------------------------------------------- JuhaManninen · 2011-04-02 07:42 Quote from: panoss on April 01, 2011, 02:40:28 pmIt 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... QuoteLazarus 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 ---------------------------------------------------------------------- DanArg · 2011-04-03 00:51 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 · 2011-04-03 08:45 Quote from: DanArg on April 03, 2011, 02:51:08 amAfter 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 ---------------------------------------------------------------------- User137 · 2011-04-09 13:57 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?