Lỗi can t find unit crt used by program năm 2024

Discussion:

Fatal: Can't find unit system used by Lazarus

Yes, again. Hi Folks.

On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package [latest SVN source] when trying to install it: BOUM ! All packages up to SQLDBLaz have been compiled OK Fatal: Can't find unit system used by Lazarus while Lazarus was compiling itself. Removing the package from the installation list does not help. In a Win32 compilation and intallation of the same package was a success I'm almost sure that this error has been reported some time ago but Im not able to find it. Any ideas ?

Antonio.

--

Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package [latest SVN source] when trying to install it: BOUM ! All packages up to SQLDBLaz have been compiled OK Fatal: Can't find unit system used by Lazarus while Lazarus was compiling itself. Removing the package from the installation list does not help. In a Win32 compilation and intallation of the same package was a success I'm almost sure that this error has been reported some time ago but Im not able to find it. Any ideas ?

Maybe you mixed two Lazarus?

If yes: Close IDE. Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml. Start IDE and build it clean.

Mattias

--

Maybe you mixed two Lazarus?

AFAIK this isn't the case

Close IDE. Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml. Start IDE and build it clean.

I'll try this anyway

Mattias -- _______________________________________________ Lazarus mailing list //lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--

Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package [latest SVN source] when trying to install it: BOUM ! All packages up to SQLDBLaz have been compiled OK Fatal: Can't find unit system used by Lazarus while Lazarus was compiling itself. Removing the package from the installation list does not help. In a Win32 compilation and intallation of the same package was a success I'm almost sure that this error has been reported some time ago but Im not able to find it. Any ideas ?

Maybe you mixed two Lazarus? Close IDE. Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml. Start IDE and build it clean.

doesn't work: still asks for system unit not available I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh... First launch: asks to downgrade parameters from 1.1 to 1.0, OK. Some packages [outide of Lazarus and FPC folders] recompiled clean So far so good lazdaemon about to be installed:

complie it: BOUM ! Write error: Unable to create file "/usr/lib64/lazarus/packager/registration/fclaz.pas ABORT

tools-configure build lazarus: Optimized IDe, gtk2, verbose, clea up automatically, restart after build, confirm before build, no update revision Button Build: BOUM ! same error as above

After installation under sudo, all folders and files have root as owner and all folders have permission rwxr-xr-x, same for executable files It sounds good for Linux permissions but a normal user can't rebuild the IDE, right ? Something to do with permissions [chown, chmod] ? So what's next, doctor ?

Antonio.

Mattias -- _______________________________________________ Lazarus mailing list //lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--

On Mon, 28 Jan 2013 09:58:51 +0100

Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package [latest SVN source] when trying to install it: BOUM ! All packages up to SQLDBLaz have been compiled OK Fatal: Can't find unit system used by Lazarus while Lazarus was compiling itself. Removing the package from the installation list does not help. In a Win32 compilation and intallation of the same package was a success I'm almost sure that this error has been reported some time ago but Im not able to find it. Any ideas ?

Maybe you mixed two Lazarus? Close IDE. Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml. Start IDE and build it clean.

doesn't work: still asks for system unit not available

The system unit is needed to compile any unit. If some units were compiled, then there are two possibilities: - You have messed up your FPC install. - You found a bug in the compiler, which is triggered by the Indy package.

I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh... First launch: asks to downgrade parameters from 1.1 to 1.0, OK. Some packages [outide of Lazarus and FPC folders] recompiled clean So far so good complie it: BOUM ! Write error: Unable to create file "/usr/lib64/lazarus/packager/registration/fclaz.pas ABORT

It should never write that file. Unless you changed the package fcl.lpk.

Optimized IDe, gtk2, verbose, clea up automatically, restart after build, confirm before build, no update revision Button Build: BOUM ! same error as above After installation under sudo, all folders and files have root as owner and all folders have permission rwxr-xr-x, same for executable files It sounds good for Linux permissions but a normal user can't rebuild the IDE, right ?

A normal user can not change files under /usr/ That's why the IDE compiles under ~/.lazarus/bin

Something to do with permissions [chown, chmod] ? So what's next, doctor ?

Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install fpc-2.6.0-2.fc17.x86_64.rpm fpc-src-2.6.0-2.fc17.x86_64.rpm lazarus-1.0.4-0.x86_64.rpm Install package lazdaemon.

Mattias

--

If this email is not spam, click here to submit the signatures to FortiGuard - AntiSpam Service. On Mon, 28 Jan 2013 09:58:51 +0100

Antonio Fortuny hat am 25. Januar 2013 um 09:07

Yes, again. Hi Folks. On a Linux OpenSuse x86_64, Lazarus 1.1 37432 31/05/2012, FPC 2.6.0 After a successful compilation of Indy 10.5.9 package [latest SVN source] when trying to install it: BOUM ! All packages up to SQLDBLaz have been compiled OK Fatal: Can't find unit system used by Lazarus while Lazarus was compiling itself. Removing the package from the installation list does not help. In a Win32 compilation and intallation of the same package was a success I'm almost sure that this error has been reported some time ago but Im not able to find it. Any ideas ?

Maybe you mixed two Lazarus? Close IDE. Delete ~/.lazarus/bin and ~/.lazarus/packagefiles.xml. Start IDE and build it clean.

doesn't work: still asks for system unit not available

The system unit is needed to compile any unit. If some units were - You have messed up your FPC install. - You found a bug in the compiler, which is triggered by the Indy package.

I've installed 1.0.4 along with FPC 2.6.0: rpm's, under sudo rpm -ivh... First launch: asks to downgrade parameters from 1.1 to 1.0, OK. Some packages [outide of Lazarus and FPC folders] recompiled clean So far so good complie it: BOUM ! Write error: Unable to create file "/usr/lib64/lazarus/packager/registration/fclaz.pas ABORT

It should never write that file. Unless you changed the package fcl.lpk.

Sorry, I didn't change anything after install

Optimized IDe, gtk2, verbose, clea up automatically, restart after build, confirm before build, no update revision Button Build: BOUM ! same error as above After installation under sudo, all folders and files have root as owner and all folders have permission rwxr-xr-x, same for executable files It sounds good for Linux permissions but a normal user can't rebuild the IDE, right ?

A normal user can not change files under /usr/ That's why the IDE compiles under ~/.lazarus/bin

Something to do with permissions [chown, chmod] ? So what's next, doctor ?

Close IDE, delete ~/.lazarus, uninstall lazarus, fpc, fpc-src. Install fpc-2.6.0-2.fc17.x86_64.rpm fpc-src-2.6.0-2.fc17.x86_64.rpm lazarus-1.0.4-0.x86_64.rpm Install package lazdaemon.

This is exactly what I've done. But lazdaemon doesn't even compile [see error above] I can do it again if you ask me to do so

Mattias -- _______________________________________________ Lazarus mailing list //lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--

After doing a chown -R myuser:users ./lazarus/* lazdaemon package compiles The install the package [from the package project: More->Install->build Lazarus], a lot of packages do compile OK; But then when Lazarus itself is about to compile: BOUM:

"Compiling package SynEdit 1.0" completed /usr/lib64/lazarus/components/sqldb/sqlstringspropertyeditordlg.pas[64,7] Hint: Parameter "Shift" not used "Compiling package SQLDBLaz 1.0.1" completed Fatal: Can't find unit system used by Lazarus

It seems to be a persions problem. I guess I'll have to do the same for fpc units ans sources output folder

Remember that installation couldn't be done unless sudo is used. All files are therefore owned by root.

Antonio.

--

On Mon, 28 Jan 2013 10:34:16 +0100

After doing a chown -R myuser:users ./lazarus/* lazdaemon package compiles The install the package [from the package project: More->Install->build Lazarus], a lot of packages do compile OK; "Compiling package SynEdit 1.0" completed Parameter "Shift" not used "Compiling package SQLDBLaz 1.0.1" completed Fatal: Can't find unit system used by Lazarus It seems to be a persions problem. I guess I'll have to do the same for fpc units ans sources output folder Remember that installation couldn't be done unless sudo is used. All files are therefore owned by root.

All system files are owned by root. That are the files in /usr/*. All files in ~/lazarus should be owned by your user. Unless you start Lazarus with another user. You did start the IDE as myuser, not with sudo, do you?

I will check in my 64bit fedora vm.

Mattias

--

It seems to be a persions problem. I guess I'll have to do the same for fpc units ans sources output folder Remember that installation couldn't be done unless sudo is used. All files are therefore owned by root.

All system files are owned by root. That are the files in /usr/*.

Sounds OK

All files in ~/lazarus should be owned by your user. Unless you start Lazarus with another user. You did start the IDE as myuser, not with sudo, do you?

Right.

I've tried to build Lazarus IDE with -vut option. It does not give more information. somewhere in 25 megs of data: ... Unitsearch: /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu Searching file /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu... found *PPU Loading /usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl/system.ppu

Chủ Đề