Recent

Author Topic: Why Can't I compile Lazarus??  (Read 18847 times)

naums

  • New Member
  • *
  • Posts: 21
  • Der Großen Liebe Wegrennen
Re: Why Can't I compile Lazarus??
« Reply #15 on: October 10, 2009, 02:47:10 pm »
okay. Compiling successful  :o

Now it is with GTK2 why can't I now compile it with the GUI of Lazarus for GT ??? because of the missing packeges of the source of FreePascal?


marcvan

  • Newbie
  • Posts: 1
Re: Why Can't I compile Lazarus??
« Reply #16 on: April 20, 2010, 02:06:58 pm »
I tried several times to compile Lazarus but it never works on Linux. On Windows it works properly, but not on Linux. The error, which is FPC put out is:
Quote
/usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object file: units/i386-linux/hello.o
/usr/lib/lazarus/examples/hello.pp(31,1) Error: Can't create object units/i386-linux/hello.o

help me compile Lazarus with qt... (here I tried with GTK2)


Versions installed by the Daily Snapshots do not give the correct permissions in the installation folder because the various Linux distributions, so run the following command at a shell, "sudo chmod 777-R / usr / lib / lazarus" (without quotation marks), remembering that this will give unrestricted access to the lazarus folder. Open Lazarus and go in the menu "Tools -> Configure Build Lazarus" tab "Advanced Build Options", click "Clean all" then the button "Build", it should solve the problem.

Brasil:
Versões instaladas pelo Daily Snapshots não dão as permissões corretas na pasta de instalação devido as diversas distribuições linux, desta forma execute o seguinte comando em um shell, "sudo chmod 777 -R /usr/lib/lazarus" (sem aspas), lembrando que isso dará acesso irrestrito a pasta do lazarus. Abra o Lazarus e vá no menu "Tools -> Configure Build Lazarus" na aba "Advanced Build Options", clique em "Clean all" depois o botão "Build", isso deve resolver o problema.


« Last Edit: April 20, 2010, 02:09:42 pm by marcvan »

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Why Can't I compile Lazarus??
« Reply #17 on: April 20, 2010, 02:54:21 pm »
Versions installed by the Daily Snapshots do not give the correct permissions in the installation folder

Actually, they do. That is an installation folder where only the administrator (root) has write privileges. Consistent with the Linux permissions, only an administrator can  make changes to (or install) a system-wide application. In conclusion, you need to login as root to rebuild Lazarus.
Lazarus/FPC on Linux

 

TinyPortal © 2005-2018