Recent

Author Topic: Can not clean and build project due to application folder being locked  (Read 2676 times)

vonskie

  • Full Member
  • ***
  • Posts: 184
Can not clean and build project due to application folder being locked

application/lazarus

I am an admin

Do I have to run lazarus as a root user?

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: Can not clean and build project due to application folder being locked
« Reply #1 on: November 05, 2023, 01:53:47 pm »
If on Linux you can try
1 add new user
2 sudo chown -R   <newuser>:<newuser>   /<lazarus folder>
3 sudo chmod -R 774  <Lazarus folder>
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

TRon

  • Hero Member
  • *****
  • Posts: 2487
Re: Can not clean and build project due to application folder being locked
« Reply #2 on: November 05, 2023, 02:05:09 pm »
Do I have to run lazarus as a root user?
No and you never ever should. Just don't do it.

On some OS it is required to have additional privileges such as for accessing the serial port. In such cases the OS offers you to add those privileges usually by something like adding the user (account) to a "group" that allows access to the in this case used serial port. At least that is how things work for Linux and Windows. It should be the same or similar for Mac though I do not know the details for macos..

Dzandaa

  • Full Member
  • ***
  • Posts: 249
  • From C# to Lazarus
Re: Can not clean and build project due to application folder being locked
« Reply #3 on: November 05, 2023, 04:13:32 pm »
Hi,

Never run Lazarus as root user.

Can you run the Lazarus  IDE?

If yes:
 have a look at Project->Options->Paths
 also in Tools->Options->Environment->Files

 Check  if you have access to "Directory for building test projects"
 Before compiling your project
 Save the Project and Unit to a folder that you have access as user

B->



 
Dzandaa

 

TinyPortal © 2005-2018