Forum > macOS / Mac OS X
Can not clean and build project due to application folder being locked
(1/1)
vonskie:
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:
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>
TRon:
--- Quote from: vonskie on November 05, 2023, 06:33:06 am ---Do I have to run lazarus as a root user?
--- End quote ---
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:
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->
Navigation
[0] Message Index