Printer4Lazarus on openSUSE 12.3 lazarus / 32-Linux ---------------------------------------------------------------------- LongTimePascaler · 2013-10-08 13:48 I prototyped a small GUI on Windows Vista (don't ask .. I just did) and have tried to port it to Linux (openSUSE).  I am using the FPC and Lazarus installations from the openSUSE repositories. When I try to build my program on Linux I get the error message: Write error: Unable to create file "/usr/lib64/lazarus/components/printers/printer4lazarus.pas" File: /usr/lib64/lazarus/components/printers/printer4lazarus.pas package main source file Now, quite apart from the fact that there is already a printer4lazarus.pas in /usr/lib64/lazarus/components/printers/ put there by the installation package, why would Lazarus (or FPC) be trying to create the file, and how can I stop it from trying? Thank you for any assistance on this. ---------------------------------------------------------------------- Cyrax · 2013-10-08 13:58 Try to run Lazarus with root privilege. If you can, try to reinstall FPC and Lazarus under your home directory. ---------------------------------------------------------------------- Rails · 2013-10-08 17:01 I change the owner of /usr/lib64/lazarus and everything below it to my regular user, which takes care of the problem. Probably not the safest way to do it, but it does work. ---------------------------------------------------------------------- LongTimePascaler · 2013-10-09 07:51 QuoteI change the owner of /usr/lib64/lazarus and everything below it to my regular user, which takes care of the problem. Probably not the safest way to do it, but it does work. I'd thought about that, but it really isn't usual to make part of the system's library directory writable by users.  Having said that it would be safer to do that than to run everyday applications such as IDEs as root.  I have noticed that it is not unusual for applications on Windows to require the user to have system privileges (and so I don't use those applications) or to write into an application's sub- directory in the Program Files directory.  I expect that becomes rather messy on multi-user machines and just isn't considered good practice on grown-ups' operating systems. I don't think Lazarus tried to do this on Vista, so that if it is doing it on Linux (and it seems from Rails's post this is a known problem) then that's either a coding bug or a design defect.  If somebody can point me to the Lazarus developers' defect tracking system I'll raise this there. Thanks for your help. ---------------------------------------------------------------------- BigChimp · 2013-10-09 08:24 Bugtracker link, top left of your screen. ---------------------------------------------------------------------- LongTimePascaler · 2013-10-09 09:44 Thanks.  The defect report number is 0025173.