Recent

Author Topic: Configure Lazarus IDE: Warning: "directory lcl not found"  (Read 12623 times)

penguiner

  • New member
  • *
  • Posts: 7
Configure Lazarus IDE: Warning: "directory lcl not found"
« on: November 13, 2017, 06:43:03 pm »
Hi there,

I installed a fresh Lazarus 1.6.2 on my Debian Stretch System and started it for the first time.
Now, I'm getting the "Configure Lazarus IDE" Dialog that says: "Warning: directory lcl not found". I don't know what to enter here.

I looked into the wiki but found only instructions for "manually" installed Lazarus, but I installed lazarus fpc fpc-source and lcl with Debian's packet manager.

The dialog's suggestion for the path is my home directory, but as i have installed the Package with my package manager I doubt that this path makes much sense.

I have a lcl directory under /usr/lib/lazarus/1.6.2/lcl.
The pulldown box also suggests /usr/lib/lazarus/1.6.2
If I enter this path I guess I will get problems with the next update.
Is this path correct at all, and is there some kind of environment variable (like in the tab "FPC Source) that provides the Lazarus Version for the path?

Update:
I just found /usr/lib/lazarus/default which is a link to /usr/lib/lazarus/1.6.2.
But when I enter this location I get an error: "Warning: directory ide not found"
The directory exists under /usr/lib/lazarus/1.6.2/components/fpcunit/ide but it doesn't contain a file named lazarus.lpi (the help text mentions that file)

What is the right approach for the first start?


« Last Edit: November 13, 2017, 08:59:41 pm by penguiner »

Thaddy

  • Hero Member
  • *****
  • Posts: 14169
  • Probably until I exterminate Putin.
Re: Warning: directory lcl not found
« Reply #1 on: November 13, 2017, 07:04:02 pm »
On stretch it should point to /usr/local/lib/fpc/3.1.1/units/arm-linux/*
Specialize a type, not a var.

penguiner

  • New member
  • *
  • Posts: 7
Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #2 on: November 13, 2017, 08:59:26 pm »
On stretch it should point to /usr/local/lib/fpc/3.1.1/units/arm-linux/*
Ther's no folder named /usr/local/lib/fpc on my system.
And why arm? I got an Intel cpu.

Nobody knows the answer? Every Linux user should know this because it's the very first thing one has to configure after install.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #3 on: November 13, 2017, 09:45:23 pm »
I've long given up on using fpc/lazarus installations distributed by Linux vendors.  For some reason they're nearly always problematic.

I'd uninstall everything you've got so far.  Ensure you've deleted all the files/folders.

Personally, I'd then head to fpcupdeluxe or https://www.getlazarus.org/setup/ and use someone else's scripts to build from source.

Alternatively, install the official Lazarus linux packages (https://www.lazarus-ide.org/index.php?page=downloads).   Those are made by the Lazarus team, not the Debian team and I'd put a lot more stock in those.
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

penguiner

  • New member
  • *
  • Posts: 7
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #4 on: November 13, 2017, 10:31:05 pm »
Thanks for the hints, Mike. I'll give (one of them) a try.
Usually I try to avoid manual installations as I have to take care of updates manually. One reason for using Linux is that the system itself takes care of it's health and updates.

But anyway, I'm puzzled by the many options for installing.
You suggest "fpcupdeluxe" or https://www.lazarus-ide.org/index.php?page=downloads, the freepascal.org wiki suggests using "fpcUP" or the .debs from the sourceforge repository or building it from the sources.
What are the pros and cons of each of these methods?

To me this looks pretty much chaotic and I don't know which one is the "right" way to install it.
Isn't there any "official" way to install Lazarus?





Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #5 on: November 13, 2017, 10:57:17 pm »
Official Stable=https://www.lazarus-ide.org/index.php?page=downloads
"Official" Trunk=manually SVN, manually make etc

I say "official" because everyone builds Trunk their own way.   Why, because we're developers and we each have different requirements etc.   I like using Trunk Lazarus, but prefer using stable FPC, Zeos etc.  FPC and ZEOS are different projects (ie completely different people to the Lazarus team) so there isn't an official "Lazarus, FPC, ZEOS" package.  So I wrote my own script.

fpcup no longer exists.  Any documentation that references is should be updated. 
fpcupdeluxe is the honorable replacement to fpcup.  fpcupdeluxe manages all those different projects on your behalf (Zeos, FPC, Lazarus, etc) and lets you choose which version of each project you want to use.

Quite a few pages on "freepascal.org wiki", which one precisely are you referring to?
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

penguiner

  • New member
  • *
  • Posts: 7
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #6 on: November 14, 2017, 03:13:01 pm »
Official Stable=https://www.lazarus-ide.org/index.php?page=downloads
"Official" Trunk=manually SVN, manually make etc

A silly question first: What does "trunk" mean in this context? I'm not native English speaker and for me "trunk" is the place where I put the luggage in my car  :)

fpcupdeluxe is the honorable replacement to fpcup.  fpcupdeluxe manages all those different projects on your behalf (Zeos, FPC, Lazarus, etc) and lets you choose which version of each project you want to use.

Is it really? I tried this and after an eternity of downloading and compiling it creates a running instance of Lazarus. But when I try to add a component ("install module from list") fpcupdeluxe states "no errors", but the installation is broken afterwards.

Quite a few pages on "freepascal.org wiki", which one precisely are you referring to?

That exactly seems to be the problem: The whole project is scattered into thousand parts, web pages, how to's and so on. Many of them are outdated and I don't have a clue where to start.

Meanwhile I even managed to install Lazarus from the Debian repositories, just had to install lots of other packages that SHOULD be dependencies of Lazarus, but aren't.
But I still have no help system. It tells me to add "lcl.chm" "rtl.chm" "fcl.chm" to the Help Path, but there are no "rtl.chm" and "fcl.chm" on my system. Why does the project ships it's things without help files?
Furthermore when I try to install one of the available packages (most of them without any description) I always get an error "cannot find chmreader".

I used to use Delphi for years (some years ago) which was a very satisfying experience. Now I am about to start a 6.000€ project and thought Lazarus was a good platform for that (especially because I can avoid Windows). But right now I ask myself if it is a good idea to do some real thing with an IDE that isn't even capable to install itself.
Rigt now, I'm pretty desperate  :'(

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #7 on: November 14, 2017, 03:45:15 pm »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11352
  • FPC developer.
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #8 on: November 14, 2017, 03:55:25 pm »
FPC has its own diagram of that wikipedia link, with FPC versions filled in.

The bottom line is trunk

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #9 on: November 14, 2017, 04:57:29 pm »
But right now I ask myself if it is a good idea to do some real thing with an IDE that isn't even capable to install itself.
Rigt now, I'm pretty desperate  :'(

I have told you twice now where the official installs are.  I have told you once that the debian (and other linux) repositories are notoriously problematic.  Those aren't official. 

If you persist in struggling with the debian repositories, then you would be better off directing your complaints to the maintainers of those repositories.
« Last Edit: November 14, 2017, 05:10:27 pm by Mike.Cornflake »
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

penguiner

  • New member
  • *
  • Posts: 7
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #10 on: November 14, 2017, 07:39:54 pm »
I have told you twice now where the official installs are.  I have told you once that the debian (and other linux) repositories are notoriously problematic.  Those aren't official. 
Yes, that's right. You told me three ways to install Lazarus and I tried them all.

fpcupdeluxe creates a working IDE, but when I try to add a module it's broken again and doesn't start at all.

The setup from https://www.lazarus-ide.org/index.php?page=downloads weems to work, but has a non sizeable main window.
When I press F1 on e.g. TForm it takes 10 to 20 secods to display the help while writing one or more of the following message to the console: LHelpControl: WaitForMsgResponse: hit timeout (10 seconds)

The setup.sh from https://www.getlazarus.org/setup/ wants to have 700 MB (expanded) of gtk and other dependencies (While the former only wanted about 100 MB) and insists to be installed under my personal directory; /home/lazarus/IDE is not accepted.
After long downloads and compiling with tons of warnings  and errors (e.g. cannot execute /home/paul/FreePascal/lazarus/ide (because tne execute bit isn't set)) I got - nothing. Cannot even find an executable of the ide.

These three different approaches are totally confusing to me
On the second start of the resulting lazarus-ide (after switching the language to English) I got a message stating that it found a IDE configuration that was previously used by another installation (I deleted ~/.lazarus before installing this one)

So the second approach is the best of them, but none of them results in a really usable product.

If you persist in struggling with the debian repositories, then you would be better off directing your complaints to the maintainers of those repositories.
I don't persist in struggling at all. I just trying to get this haphazardly tinkered product to work. I would rather struggle with my project, not with the tools.

Handoko

  • Hero Member
  • *****
  • Posts: 5122
  • My goal: build my own game engine using Lazarus
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #11 on: December 13, 2017, 02:10:42 pm »
I don't persist in struggling at all. I just trying to get this haphazardly tinkered product to work. I would rather struggle with my project, not with the tools.

I'm sorry to hear you have problem installing Lazarus/FPC. Have you solved it. If not, maybe this post can be useful:
http://forum.lazarus.freepascal.org/index.php/topic,39281.msg269014/topicseen.html#new

orionyx

  • New member
  • *
  • Posts: 8
Re: Configure Lazarus IDE: Warning: "directory lcl not found"
« Reply #12 on: June 19, 2018, 12:29:33 pm »
I know this is an old thread, but perhaps someone will find my experience useful.
Working on Ubuntu 16.04, i had lazarus 1.6 installed. i needed MySQL 5.7, so i needed to migrate to lazarus 1.8 (or do a lot of fancy handwork myself). i found this thread, and followed handoko's instructions. i could not install the first package - it simply failed. i tried a second time - still no luck. so i went to bed.
in the morning i got up, purged lazarus, autoremoved and autocleaned, and tried following handoko's instructions again. they worked perfectly! many thanks sir.

 

TinyPortal © 2005-2018