Что значит в qt creator permission denied

от admin

Что значит в qt creator permission denied

I’m new to Linux/Rasperry Pi and I was following this tutorial to create a native build of Qt. I got up to the ./configure step. But this gives me the error:

bash: ./configure Permission denied

I think it has something to do that I want to run the configuration from a USB drive (as instructed in the tutorial). How can I get this to work?

1 Answer 1

You need to understand how unix modes and permissions, used on POSIX operating systems such as GNU/Linux and OSX work, otherwise your life is going to be full of awkward problems like this. There are already lots and lots of introductions online, I will not bother regurgitating them.

However, I’ll give an example of applying the concepts in this case. First, you need to know some id numbers for your current user:

Will give you your uid , gid , and a list of groups whose permissions you can use.

./configure is a file. To get the modes and permissions set on it:

It’s in the first line labelled «Access:» (there are two), and will be something like 0755/drwxr-xr-x . All of those links from above explain how to decipher that. See also man stat .

You need to change the ownership on the whole directory tree, since you are going to be building software in it. For that you can use the -R (recursive) switch to chown (see also man chown ), but you need privileges to do so, via sudo . Presuming you are in the same directory as the configure file, and you are user pi :

You could of course just do sudo ./configure and proceed that way, but this way you are playing safe. On the other hand, if you are intending to do a system wide install, you will need to do so at some point ( sudo make install ).

Qt creator throws permission error on project (files owned by me) within directory of root

Whenever I open the project with qt creator, it gives me permission error and says that it cannot write any file.

As you see, all the files are owned my me and I open qt creator from my account. I can edit every file from this project with other text-editors but not with qt creator.

My guess at first was that I was running qt creator not as khvah but I am logged in with that accout and I start the application from that account

cannot open output file debug\SvgExample.exe: Permission denied in QT creator

When I’m run my Qt c++ programe this errors appears.I found this same problem in stackoverflow but those methods not solved my problem.to resolve this error each time I had to restart my computer.How can I solve this errors.I check SvgExample.exe in taskmanager but there is no such a file run.Most of the time this problem occurred,not only this project.

here are some answers to resolve this problem and I also try those things,But not solved.

Читать:
It как можно преобразовать

./configure Permission denied — Compiling Qt

I’m new to Linux/Rasperry Pi and I was following this tutorial to create a native build of Qt. I got up to the ./configure step. But this gives me the error:

bash: ./configure Permission denied

I think it has something to do that I want to run the configuration from a USB drive (as instructed in the tutorial). How can I get this to work?

1 Answer 1

You need to understand how unix modes and permissions, used on POSIX operating systems such as GNU/Linux and OSX work, otherwise your life is going to be full of awkward problems like this. There are already lots and lots of introductions online, I will not bother regurgitating them.

However, I’ll give an example of applying the concepts in this case. First, you need to know some id numbers for your current user:

Will give you your uid , gid , and a list of groups whose permissions you can use.

./configure is a file. To get the modes and permissions set on it:

It’s in the first line labelled «Access:» (there are two), and will be something like 0755/drwxr-xr-x . All of those links from above explain how to decipher that. See also man stat .

You need to change the ownership on the whole directory tree, since you are going to be building software in it. For that you can use the -R (recursive) switch to chown (see also man chown ), but you need privileges to do so, via sudo . Presuming you are in the same directory as the configure file, and you are user pi :

You could of course just do sudo ./configure and proceed that way, but this way you are playing safe. On the other hand, if you are intending to do a system wide install, you will need to do so at some point ( sudo make install ).

cannot open output file debug\SvgExample.exe: Permission denied in QT creator

When I’m run my Qt c++ programe this errors appears.I found this same problem in stackoverflow but those methods not solved my problem.to resolve this error each time I had to restart my computer.How can I solve this errors.I check SvgExample.exe in taskmanager but there is no such a file run.Most of the time this problem occurred,not only this project.

here are some answers to resolve this problem and I also try those things,But not solved.

Qt Creator kept warning about "Cannot create file . : Permission denied"

I’m on Ubuntu 16.04, and did a fresh install of qt creator. Using this command:

The Qt folder after installation is like:

When I started qt-creator whether using ./qtcreator binary or ./qtcreator.sh script from

/Qt/Tools/QtCreator/bin directory, it kept complaining about some creating file errors like:

Cannot create file /home/dx/.config/QtProject/qtcreator/devices.xml: Permission denied

The QtProject directory:

It looks like the failing startup leaves a lot of temp files here, but the expected xml files are not created. How can I fix it?

Похожие статьи