Sign in Join

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

Mailing lists / lazarus / 2010-02

Unable to install components

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Osvaldo Filho

Ubuntu 9.10 64
Lazarus svn
FPC 2.4.1

Problems:
- Need permission on /usr/share/lazarus
/usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280) Error: Writing Resource String Table file:
/usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst

/usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1) Error: Can't create object file:
/usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o

Error: Can't create object file:
/usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o

- Why ?
/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit codetools used by Lazarus

Reply by email

ik
to Osvaldo Filho
Osvaldo Filho wrote 18 lines
Ubuntu 9.10 64 Lazarus svn FPC 2.4.1 Problems: - Need permission on /usr/share/lazarus /usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280) Error: Writing Resource String Table file: /usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst /usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1) Error: Can't create object file: /usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o Error: Can't create object file: /usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o

Unless you change permissions to /usr/share/lazarus you will be unable to compile lazarus on that location unless you are root .

Show quoted text 6 lines
- Why ? /usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit codetools used by Lazarus

I guess it because it was never compiled to an objct/unit ...

Show quoted text 7 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100209/ebeda9cc/attachment.html>

Reply by email

Mattias Gärtner
to ik

Zitat von ik :

Show quoted text 23 lines
On Tue, Feb 9, 2010 at 14:38, Osvaldo Filho wrote: > Ubuntu 9.10 64 > Lazarus svn > FPC 2.4.1 > > Problems: > - Need permission on /usr/share/lazarus > /usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280) > Error: Writing Resource String Table file: > > /usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst > > /usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1) > Error: Can't create object file: > /usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o > > Error: Can't create object file: > /usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o > Unless you change permissions to /usr/share/lazarus you will be unable to compile lazarus on that location unless you are root .

lazarus checks if the output directory is writable. If it is not writable it uses ~/.lazarus/lib/<packagename>/...

Maybe you already changed the permissions, but then compiled as root? In that case some files were created as root and can not be overwritten as normal user.

Please fix the permissions of /usr/share/lazarus (including sub directories). All files there should be owned by root and not writable by normal users.

If you use lazarus svn, I recommend to put the svn into your home directory (owned by your account). Otherwise your error reports will easily confuse people.

Show quoted text 6 lines
> - Why ? > /usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit > codetools used by Lazarus > I guess it because it was never compiled to an objct/unit ...

Mattias

Reply by email

Osvaldo Filho
to Mattias Gärtner

Thanks Mattias.
But why i have this:

"/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit
codetools used by Lazarus"

2010/2/9 Mattias G?rtner :

Show quoted text 62 lines
Zitat von ik : > On Tue, Feb 9, 2010 at 14:38, Osvaldo Filho wrote: > >> Ubuntu 9.10 64 >> Lazarus svn >> FPC 2.4.1 >> >> Problems: >> - Need permission on /usr/share/lazarus >> /usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280) >> Error: Writing Resource String Table file: >> >> >> /usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst >> >> /usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1) >> Error: Can't create object file: >> /usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o >> >> Error: Can't create object file: >> /usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o >> > > Unless you change permissions to /usr/share/lazarus you will be unable to > compile lazarus on that location unless you are root . lazarus checks if the output directory is writable. If it is not writable it uses ~/.lazarus/lib/<packagename>/... Maybe you already changed the permissions, but then compiled as root? In that case some files were created as root and can not be overwritten as normal user. Please fix the permissions of /usr/share/lazarus (including sub directories). All files there should be owned by root and not writable by normal users. If you use lazarus svn, I recommend to put the svn into your home directory (owned by your account). Otherwise your error reports will easily confuse people. >> - Why ? >> /usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit >> codetools used by Lazarus >> > > I guess it because it was never compiled to an objct/unit ... Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gärtner
to Osvaldo Filho

Zitat von Osvaldo Filho :

Show quoted text 5 lines
Thanks Mattias. But why i have this: "/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit codetools used by Lazarus"

Because FPC didn't found a proper codetools.ppu.
This can mean:
- it is not there
- it is there, but it is only a left over from a broken compile I hope someday fpc will report two different errors messages for this.

The IDE "simply" calls 'make' with some flags. You can start the IDE in a terminal and see what it does.

If you use svn, I recommend to use your home directory (e.g. /home/you/pascal/lazarus). Then you won't mess up your linux package system and you can easily clean up if something went wrong. Don't forget to set the lazarus directory in the environment options.

Mattias

Reply by email