Sign in Join

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

Mailing lists / lazarus / 2010-09

FreePascal Source not found in Ubuntu

9 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Frank Church

I installed the Ubuntu package from the Wiki using the getlaz script, whenever I open Lazarus I get the error message

The Free Pascal source directory was not found

Some code functions will not work etc,etc

When I check the Environment | Options | Files the FPC source directory is empty.
Is there something to be typed in there or do they have to be installed separately?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100924/49f23b06/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Frank Church
Frank Church wrote 12 lines
I installed the Ubuntu package from the Wiki using the getlaz script, whenever I open Lazarus I get the error message The Free Pascal source directory was not found Some code functions will not work etc,etc When I check the Environment | Options | Files the FPC source directory is empty. Is there something to be typed in there or do they have to be installed separately?

Depending on what version of Ubuntu you use, the easiest way to install the source (assuming you installed fpc through synapctic or similar) is to type the following in a terminal:

sudo apt-get install fpc-source

I think the default install location is /usr/share/src, but i'm not sure of that.

Kind regards,
Torsten Bonde Christiansen.

Reply by email

Frank Church
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 24 lines
On 2010-09-24 09:31, Frank Church wrote: > I installed the Ubuntu package from the Wiki using the getlaz script, > whenever I open Lazarus I get the error message > > The Free Pascal source directory was not found > > Some code functions will not work etc,etc > > When I check the Environment | Options | Files the FPC source directory is > empty. > Is there something to be typed in there or do they have to be installed > separately? > > Depending on what version of Ubuntu you use, the easiest way to install the source (assuming you installed fpc through synapctic or similar) is to type the following in a terminal: sudo apt-get install fpc-source I think the default install location is /usr/share/src, but i'm not sure of that.

Thanks.

Is the fpc-source necessary for Lazarus to work properly? I would expect the documentation to mention it if it is.

After installing the source directory is /usr/share/fpcsrc/$(FPCVER)/

The version as of now is 2.2.4-3

Kind regards,

Show quoted text 10 lines
Torsten Bonde Christiansen. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100924/dc819d6c/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Frank Church
Is the fpc-source necessary for Lazarus to work properly? I would expect the documentation to mention it if it is.

No, it's only nessesary if you want to debug throught the fpc code. Debugging your own code does not require the fpc-source.

After installing the source directory is /usr/share/fpcsrc/$(FPCVER)/ The version as of now is 2.2.4-3

This seems like an old version, the most recent stable fpc AFAIK is 2.4.2 - what version of Ubuntu are you using?

Kind regards,
Torsten Bonde Christiansen

Reply by email

Frank Church
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 17 lines
Is the fpc-source necessary for Lazarus to work properly? I would expect > the documentation to mention it if it is. > No, it's only nessesary if you want to debug throught the fpc code. Debugging your own code does not require the fpc-source. > After installing the source directory is /usr/share/fpcsrc/$(FPCVER)/ > > The version as of now is 2.2.4-3 > This seems like an old version, the most recent stable fpc AFAIK is 2.4.2 - what version of Ubuntu are you using?

I am using Ubuntu 8.04 LTS. I don't know whether the stable versions are all 2.2.4 or that applies to only Ubuntu 8.04

Show quoted text 9 lines
Kind regards, Torsten Bonde Christiansen -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100924/cd46c095/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Frank Church
I am using Ubuntu 8.04 LTS. I don't know whether the stable versions are all 2.2.4 or that applies to only Ubuntu 8.04

This only applies to ubuntu, with the 10.04 LTS version you get FPC 2.4.0 (stable release). This version can also be used to compile the latest version of Lazarus taken directly from the SVN trunk.

Kind regards,
Torsten Bonde Christiansen

Reply by email

Mattias Gärtner
to Frank Church: Thanks. Is the fpc-source necessary for Lazarus to work properly? I would expect the…

Zitat von Frank Church :

Show quoted text 30 lines
On 24 September 2010 08:40, Torsten Bonde Christiansen wrote: > On 2010-09-24 09:31, Frank Church wrote: > >> I installed the Ubuntu package from the Wiki using the getlaz script, >> whenever I open Lazarus I get the error message >> >> The Free Pascal source directory was not found >> >> Some code functions will not work etc,etc >> >> When I check the Environment | Options | Files the FPC source directory is >> empty. >> Is there something to be typed in there or do they have to be installed >> separately? >> >> Depending on what version of Ubuntu you use, the easiest way to install > the source (assuming you installed fpc through synapctic or similar) is to > type the following in a terminal: > > sudo apt-get install fpc-source > > I think the default install location is /usr/share/src, but i'm not sure of > that. > > Thanks. Is the fpc-source necessary for Lazarus to work properly? I would expect the documentation to mention it if it is.

All documentation I know mentions that you need the fpc sources. Where is this missing?

After installing the source directory is /usr/share/fpcsrc/$(FPCVER)/ The version as of now is 2.2.4-3

Yes, 0.9.28 uses 2.2.4.

For 0.9.29 I would recommend 2.4.0+

Mattias

Reply by email

Frank Church
to Mattias Gärtner

2010/9/24 Mattias G?rtner

Show quoted text 56 lines
Zitat von Frank Church : On 24 September 2010 08:40, Torsten Bonde Christiansen < > >wrote: > > On 2010-09-24 09:31, Frank Church wrote: >> >> I installed the Ubuntu package from the Wiki using the getlaz script, >>> whenever I open Lazarus I get the error message >>> >>> The Free Pascal source directory was not found >>> >>> Some code functions will not work etc,etc >>> >>> When I check the Environment | Options | Files the FPC source directory >>> is >>> empty. >>> Is there something to be typed in there or do they have to be installed >>> separately? >>> >>> Depending on what version of Ubuntu you use, the easiest way to install >>> >> the source (assuming you installed fpc through synapctic or similar) is >> to >> type the following in a terminal: >> >> sudo apt-get install fpc-source >> >> I think the default install location is /usr/share/src, but i'm not sure >> of >> that. >> >> >> Thanks. > > Is the fpc-source necessary for Lazarus to work properly? I would expect > the > documentation to mention it if it is. > All documentation I know mentions that you need the fpc sources. Where is this missing? After installing the source directory is /usr/share/fpcsrc/$(FPCVER)/ > > The version as of now is 2.2.4-3 > Yes, 0.9.28 uses 2.2.4. For 0.9.29 I would recommend 2.4.0+

If I need to add new components do I have to run Lazarus as sudo or as root?

Can I add components under my own /home/username directory, or do they have to go under the main installation?

Show quoted text 12 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100924/c8371511/attachment.html>

Reply by email

Vincent Snijders
to Frank Church
If I need to add new components do I have to run Lazarus as sudo or as root?

No, unless you want other uses on your computer to be able to use those new components too.

Can I add components under my own /home/username directory, or do they have to go under the main installation?

You can add them anywhere, where you have rights to read the source and write to the unit output directory.

Vincent

Reply by email