Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cannot run: no command
Forum Update on Monday, May 27th 2025

cannot run: no command

Scheduled Pinned Locked Moved Unsolved General and Desktop
50 Posts 5 Posters 9.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asha
    wrote on 9 Sept 2019, 04:26 last edited by
    #17

    Hi,

    I am getting the issue "Failed to create remote directories : mkdir: cannot create directory'/opt/aa': Permission denied...any suggestion for this..

    J 1 Reply Last reply 9 Sept 2019, 04:32
    0
    • A Asha
      9 Sept 2019, 04:26

      Hi,

      I am getting the issue "Failed to create remote directories : mkdir: cannot create directory'/opt/aa': Permission denied...any suggestion for this..

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 9 Sept 2019, 04:32 last edited by
      #18

      @asha said in cannot run: no command:

      /opt/aa

      /opt is a directory where only root has write access. You need to give the user write access to the directory you want to use or (better) use users home directory to deploy.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Asha
        wrote on 9 Sept 2019, 05:32 last edited by
        #19

        Sir,

        I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

        A 1 Reply Last reply 9 Sept 2019, 05:50
        0
        • A Asha
          9 Sept 2019, 05:32

          Sir,

          I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 9 Sept 2019, 05:50 last edited by
          #20

          @asha said in cannot run: no command:

          I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

          That has nothing to do with Qt. /opt is a system directory, only the administrator (root) has write access there. If you need to install something there use the sudo command - but be careful, you can destroy you whole system if you do something wrong.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • A Offline
            A Offline
            Asha
            wrote on 9 Sept 2019, 06:36 last edited by
            #21

            Hi,

            opt directory has the permissions

            drwxr_xr_x,

            I changed the permissions through the command

            "chmod go+w opt"

            after this the permission of opt is
            drwxrwxrwx

            So,now again I build the application and getting the same problem.

            Any suggestions.

            J 1 Reply Last reply 9 Sept 2019, 08:00
            0
            • A Asha
              9 Sept 2019, 06:36

              Hi,

              opt directory has the permissions

              drwxr_xr_x,

              I changed the permissions through the command

              "chmod go+w opt"

              after this the permission of opt is
              drwxrwxrwx

              So,now again I build the application and getting the same problem.

              Any suggestions.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 9 Sept 2019, 08:00 last edited by
              #22

              @asha You changed the permissions on your target device?
              Also, this is a bad solution.
              Better give the user write access.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Asha
                wrote on 9 Sept 2019, 08:18 last edited by
                #23

                sir,

                how to change the permission on target device ,can you elaborate please,
                How to give the user write access.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Asha
                  wrote on 9 Sept 2019, 09:46 last edited by
                  #24

                  Hi,

                  now i changed the user write acces,that is

                  drwxrwxrwx beagle1

                  after this also I am getting the same problem.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Asha
                    wrote on 9 Sept 2019, 10:21 last edited by
                    #25

                    Hi,

                    I have two qt versions on my kit is there any problem?

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Asha
                      wrote on 9 Sept 2019, 13:02 last edited by
                      #26

                      Hi,

                      Please tell me,how to install qt creator on ubuntu 18.04,which version qt is required,which version cross-compiler is required,how to install that one,how to install debugger also,and how to configure the kit(actually I Know this steps,but I want to confirm that, what I did either it is correct or wrong)...

                      Thankyou

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Asha
                        wrote on 10 Sept 2019, 04:28 last edited by
                        #27

                        Good Morning guys,

                        Any suggestions please..

                        J 1 Reply Last reply 10 Sept 2019, 04:33
                        0
                        • A Asha
                          10 Sept 2019, 04:28

                          Good Morning guys,

                          Any suggestions please..

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 10 Sept 2019, 04:33 last edited by
                          #28

                          @asha "how to install qt creator on ubuntu 18.04" - either install one delivered with Ubuntu using apt-get, or download QtCreator from official website.
                          "which version qt is required" - you should know that. Which version do you want to use, or which version is supported by your SDK?
                          "which version cross-compiler is required" - the one provided by the SDK for your device.
                          "how to install that one" - should be part of the SDK.
                          "how to install debugger also" - should be part of the SDK.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            Asha
                            wrote on 10 Sept 2019, 06:22 last edited by
                            #29

                            Thankyou for the replay,

                            I done the same things..

                            then also getting permission denied error while running the qt application..

                            trying to login ssh root@192.168.7.2 there also same error permission denied..

                            not getting what is the problem..

                            J 1 Reply Last reply 10 Sept 2019, 06:38
                            0
                            • A Asha
                              10 Sept 2019, 06:22

                              Thankyou for the replay,

                              I done the same things..

                              then also getting permission denied error while running the qt application..

                              trying to login ssh root@192.168.7.2 there also same error permission denied..

                              not getting what is the problem..

                              J Offline
                              J Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on 10 Sept 2019, 06:38 last edited by
                              #30

                              @asha said in cannot run: no command:

                              trying to login ssh root@192.168.7.2 there also same error permission denied..

                              So, you actually can't login using SSH?
                              Then you first need to solve this problem.
                              Looks like root is not allowed to login via SSH on this device.
                              Do you have other users there?
                              Also, see https://www.cyberciti.biz/faq/howto-limit-what-users-can-log-onto-system-via-ssh/

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              1
                              • A Offline
                                A Offline
                                Asha
                                wrote on 10 Sept 2019, 06:40 last edited by
                                #31

                                yes I have other user as debian, through "ssh debian@192.168.7.2" I am able to login in target machine.

                                J 1 Reply Last reply 10 Sept 2019, 06:49
                                0
                                • A Asha
                                  10 Sept 2019, 06:40

                                  yes I have other user as debian, through "ssh debian@192.168.7.2" I am able to login in target machine.

                                  J Offline
                                  J Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on 10 Sept 2019, 06:49 last edited by
                                  #32

                                  @asha Then either use that user or enable root login via SSH

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    Asha
                                    wrote on 10 Sept 2019, 08:08 last edited by
                                    #33

                                    Hi,

                                    I login via debian user0_1568102197808_server.png

                                    then enabled the root login /etc/ssh/sshd_config file0_1568102251280_root.png

                                    here is the running status0_1568102281150_running.png

                                    now I am able login as a root0_1568102312397_rootlogin (1).png

                                    So, I changed the directory /opt permissions here "chmod go+wx opt"

                                    after this all, restarted the system ,and open the qt and run the simple application, the result is0_1568102663828_result.png

                                    0_1568102687165_result1.png

                                    So now what is the problem...any idea about this...(Thankyou very much)...

                                    J 1 Reply Last reply 10 Sept 2019, 08:11
                                    0
                                    • A Asha
                                      10 Sept 2019, 08:08

                                      Hi,

                                      I login via debian user0_1568102197808_server.png

                                      then enabled the root login /etc/ssh/sshd_config file0_1568102251280_root.png

                                      here is the running status0_1568102281150_running.png

                                      now I am able login as a root0_1568102312397_rootlogin (1).png

                                      So, I changed the directory /opt permissions here "chmod go+wx opt"

                                      after this all, restarted the system ,and open the qt and run the simple application, the result is0_1568102663828_result.png

                                      0_1568102687165_result1.png

                                      So now what is the problem...any idea about this...(Thankyou very much)...

                                      J Offline
                                      J Offline
                                      jsulm
                                      Lifetime Qt Champion
                                      wrote on 10 Sept 2019, 08:11 last edited by
                                      #34

                                      @asha You did not cross compile your app for your device.
                                      You can verify this by doing (in a terminal):

                                      file PATH_TO_YOUR_EXE
                                      

                                      and checking its output.

                                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      1
                                      • A Offline
                                        A Offline
                                        Asha
                                        wrote on 10 Sept 2019, 09:01 last edited by
                                        #35

                                        can you give example,for more understanding purpose

                                        J 1 Reply Last reply 10 Sept 2019, 09:05
                                        0
                                        • A Asha
                                          10 Sept 2019, 09:01

                                          can you give example,for more understanding purpose

                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 10 Sept 2019, 09:05 last edited by
                                          #36

                                          @asha You open a terminal and type "file" followed by the path to the executable file you built and press enter...
                                          For more information see "man file".

                                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          0

                                          26/50

                                          9 Sept 2019, 13:02

                                          • Login

                                          • Login or register to search.
                                          26 out of 50
                                          • First post
                                            26/50
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved