Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-08

Search path options for pacages

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Péter Gábor
to Larry Dalton

On my LinuxMint I have Lazarus installed (built from source) in my home folder and I can add search paths to any of the packages regardless the origin of the package (came with Lazarus or created/added by myself).

I think that you installed FPC and Lazarus via the package manager of your system. In this case the directory of Lazarus binaries, libraries and sources are not writeable for you (including the package configurations).

In the pas a solved this with changing (recursive) the group id (to mine) for the directories belonging to FPC and Lazarus and giving write premissions.
You can add write premissions to "other" but it has security risk.

BUT I recommend to install lazarus into your home directory by building it from sources.

2015-08-04 16:44 keltez?ssel, Larry Dalton ?rta:

How do I add a search path for packages in linux mint? Buttons are grayed out
P?ter G?bor

Reply by email

Juha Manninen
to Larry Dalton: How do I add a search path for packages in linux mint? Buttons are grayed out Sent from…
Larry Dalton wrote
How do I add a search path for packages in linux mint?

Don't use project search path for a package's code. You must create a dependency for it instead.
This is a common error made by Delphi developers. In Delphi you must use either the project search path or the global search path for library code.

Buttons are grayed out

What buttons?

Juha

Reply by email

Juha Manninen
to Péter Gábor: On my LinuxMint I have Lazarus installed (built from source) in my home folder and I can…
P?ter G?bor wrote 7 lines
In the pas a solved this with changing (recursive) the group id (to mine) for the directories belonging to FPC and Lazarus and giving write premissions. You can add write premissions to "other" but it has security risk. BUT I recommend to install lazarus into your home directory by building it from sources.

There is no need to install into home directory unless you need the trunk development version.
For your own programs the default Mint package installation should work. When you install an IDE package to Lazarus and recompile it, the new binary goes to the home directory and startlazarus is clever enough to start it from there.
There were bugs in this process but to my understanding they are fixed. If it still does not work then please explain the steps to reproduce.

Another problem with Mint installation is that they use very old versions in their repo. You can download the .deb packages provided by Lazarus project instead, or use the trunk.

Juha

Reply by email

Péter Gábor
to Juha Manninen

2015-08-04 19:09 keltez?ssel, Juha Manninen ?rta:

Show quoted text 5 lines
On Tue, Aug 4, 2015 at 6:26 PM, P?ter G?bor wrote: When you install an IDE package to Lazarus and recompile it, the new binary goes to the home directory and startlazarus is clever enough to start it from there. There were bugs in this process but to my understanding they are fixed.

There was typos in my previous mail, but "In the past I solved this with..." :)

If it still does not work then please explain the steps to reproduce.

Now I'm using fixes and trunk only

P?ter G?bor

Reply by email

Péter Gábor
to Péter Gábor: On my LinuxMint I have Lazarus installed (built from source) in my home folder and I can…

In my previous mail I was assuming that Larry wants to add search path (for example: where additional units can be found) for a package in the "Package dialog", selecting "Options / Copiler Options / Paths". There are buttons to open "Path Editor" and add/edit search paths.

2015-08-04 16:44 keltez?ssel, Larry Dalton ?rta:

How do I add a search path for packages in linux mint? Buttons are grayed out
P?ter G?bor

Reply by email

Larry Dalton
to Péter Gábor

Thanks all of you. You helped me figure it out and my packages all work now.

Sent from my iPhone

Show quoted text 20 lines
On Aug 4, 2015, at 12:27, P?ter G?bor wrote: In my previous mail I was assuming that Larry wants to add search path (for example: where additional units can be found) for a package in the "Package dialog", selecting "Options / Copiler Options / Paths". There are buttons to open "Path Editor" and add/edit search paths. 2015-08-04 16:44 keltez?ssel, Larry Dalton ?rta: > How do I add a search path for packages in linux mint? Buttons are grayed out -- P?ter G?bor -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Larry Dalton: How do I add a search path for packages in linux mint? Buttons are grayed out Sent from…
How do I add a search path for packages in linux mint? Buttons are grayed out

You don't need to alter search paths of packages (unless you wrote the package).

If you get a 'can't find unit' message, the message can be misleading. Probably the compiler found the unit, but it did not like it. This can be caused by adding too many search paths, using the wrong version of a package, left overs from prior installs, compiler bugs, etc.

Please give more details. What package, error message, system, how did you install, etc.

Mattias

Reply by email