Simple program won't run in Linux [Could not start process "make" ]



  • Hi. :)

    I installed Manjaro Linux, downloaded the GNU compiler throught "store" and then Qt Creator 4.3 from Qt's website.
    When I try to run a simple "Hello World" program, some erros appears. Those are in the image set down below...

    http://imgur.com/a/QG2GI

    If that doens't give you much work, I would like to put the Debuugger to work as well. :)
    I would be usefull to finish my 2048 game copy with ncurses. :D

    Thanks for the help!
    Thanks!



  • @NeoFahrenheit I don't use creator so I'll let someone else chime in but it looks like your kit is not set up correctly.

    If you search these forums I've seen this same question a number of times, I recall them being solved and even participated in some of them (although my knowledge of creator is almost nothing).

    What happens if you try it on the command line?

    I.e.

    $ cd /myproject
    $ qmake
    $ make
    

    ?


  • Moderators

    @NeoFahrenheit Looks like you did not install "make". It is needed to build, so install it first.



  • @ambershark This:
    alt text
    Problem continues.

    @jsulm Well, where I can find it to download?
    In "Add/Remove Software" in Manjaro, I didn't found anything related to "make".
    But found this page: https://www.gnu.org/software/make/

    Is there the right place to download?

    Edit: I download the "make-4.2.tar.gz", use it the install instructions which told me to go to the folder and type './configure' and then make. But when i type make, it says command not found.

    http://imgur.com/a/7N8IK

    Thanks!


  • Moderators

    @NeoFahrenheit said in Simple program won't run in Linux [Could not start process "make" ]:

    Manjaro

    is based on Arch, so you should have base-devel package which contains make. If it does not have this package than it is some other, but for sure Manjaro provides make.



  • @NeoFahrenheit Pretty sure you'll need base-devel which would include make. You can of course install make separately but I guarantee you will run into issues trying to build code if you do it that way.



  • I found a command to see it if I have base-devel. I've got this:
    alt text

    And this:
    alt text

    Soooo, it ins't installed?
    If so, how do I do it?

    I've looked to installations instructions, but found none.

    Thanks.



  • @NeoFahrenheit So to install pacman -S base-devel devtools should work. However it looks like your pacman is messed up. By the errors presented you either have a corrupt database or invalid key signatures.

    You'll need to fix your linux install before you try developing on it. :)

    To fix you can try this:

    $ sudo pacman-key --init
    $ sudo pacman-key --populate archlinux
    $ sudo pacman -Syy
    

    Then you can try installing the base-devel and devtools again.



  • [leandro@leandro-pc ~]$ sudo pacman-key --init
    [sudo] password for leandro: 
    [leandro@leandro-pc ~]$ sudo pacman-key --populate archlinux
    ==> Appending keys from archlinux.gpg...
    ==> Locally signing trusted keys in keyring...
      -> Locally signing key DDB867B92AA789C165EEFA799B729B06A680C281...
      -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
      -> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
      -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
      -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
      -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
    ==> Importing owner trust values...
    ==> Disabling revoked keys in keyring...
      -> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
      -> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
      -> Disabling key 40440DC037C05620984379A6761FAD69BA06C6A9...
      -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
      -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
      -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
      -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
      -> Disabling key 5E7585ADFF106BFFBBA319DC654B877A0864983E...
      -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
      -> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
      -> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
      -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
      -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
      -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
      -> Disabling key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
    ==> Updating trust database...
    gpg: next trustdb check due at 2017-10-20
    [leandro@leandro-pc ~]$ sudo pacman -Syy
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    error: GPGME error: No data
    :: Synchronizing package databases...
     core                     137,5 KiB   117K/s 00:01 [######################] 100%
     extra                   1785,2 KiB   419K/s 00:04 [######################] 100%
     community                  4,2 MiB   533K/s 00:08 [######################] 100%
     multilib                 181,2 KiB   415K/s 00:00 [######################] 100%
    [leandro@leandro-pc ~]$ sudo pacman -S base-devel devtools
    [sudo] password for leandro: 
    :: There are 25 members in group base-devel:
    :: Repository core
       1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file
       7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep  13) groff
       14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch
       20) pkg-config  21) sed  22) sudo  23) texinfo  24) util-linux  25) which
    
    Enter a selection (default=all): all
    error: invalid number: all
    
    Enter a selection (default=all): 
    warning: binutils-2.28.0-3 is up to date -- reinstalling
    warning: file-5.31-1 is up to date -- reinstalling
    warning: findutils-4.6.0-2 is up to date -- reinstalling
    warning: gawk-4.1.4-2 is up to date -- reinstalling
    warning: gcc-7.1.1-2 is up to date -- reinstalling
    warning: gettext-0.19.8.1-2 is up to date -- reinstalling
    warning: grep-3.0-1 is up to date -- reinstalling
    warning: groff-1.22.3-7 is up to date -- reinstalling
    warning: gzip-1.8-2 is up to date -- reinstalling
    warning: libtool-2.4.6-8 is up to date -- reinstalling
    warning: pacman-5.0.2-1 is up to date -- reinstalling
    warning: pkg-config-0.29.2-1 is up to date -- reinstalling
    warning: sed-4.4-1 is up to date -- reinstalling
    warning: sudo-1.8.20.p2-1 is up to date -- reinstalling
    warning: texinfo-6.3-2 is up to date -- reinstalling
    warning: util-linux-2.29.2-2 is up to date -- reinstalling
    warning: which-2.21-2 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    
    Packages (36) arch-install-scripts-17-1  elfutils-0.169-1  gc-7.6.0-1
                  guile-2.2.2-1  libatomic_ops-7.4.6-1  namcap-3.2.7-2
                  pyalpm-0.8.1-2  python-pyelftools-0.24-2  serf-1.3.9-2
                  subversion-1.9.5-3  autoconf-2.69-4  automake-1.15-2
                  binutils-2.28.0-3  bison-3.0.4-2  devtools-20170320-1
                  fakeroot-1.21-2  file-5.31-1  findutils-4.6.0-2  flex-2.6.4-1
                  gawk-4.1.4-2  gcc-7.1.1-2  gettext-0.19.8.1-2  grep-3.0-1
                  groff-1.22.3-7  gzip-1.8-2  libtool-2.4.6-8  m4-1.4.18-1
                  make-4.2.1-2  pacman-5.0.2-1  patch-2.7.5-1  pkg-config-0.29.2-1
                  sed-4.4-1  sudo-1.8.20.p2-1  texinfo-6.3-2  util-linux-2.29.2-2
                  which-2.21-2
    
    Total Download Size:    26,49 MiB
    Total Installed Size:  290,13 MiB
    Net Upgrade Size:       90,99 MiB
    
    :: Proceed with installation? [Y/n] Y
    :: Retrieving packages...
     gawk-4.1.4-2-x86_64      987,1 KiB   397K/s 00:02 [######################] 100%
     m4-1.4.18-1-x86_64       166,1 KiB   139K/s 00:01 [######################] 100%
     autoconf-2.69-4-any      583,5 KiB   471K/s 00:01 [######################] 100%
     automake-1.15-2-any      585,4 KiB   360K/s 00:02 [######################] 100%
     bison-3.0.4-2-x86_64     555,3 KiB   428K/s 00:01 [######################] 100%
     sed-4.4-1-x86_64         174,0 KiB   230K/s 00:01 [######################] 100%
     util-linux-2.29.2-2...  1828,5 KiB   338K/s 00:05 [######################] 100%
     fakeroot-1.21-2-x86_64    67,1 KiB  2,43M/s 00:00 [######################] 100%
     file-5.31-1-x86_64       259,0 KiB   313K/s 00:01 [######################] 100%
     findutils-4.6.0-2-x...   420,7 KiB   476K/s 00:01 [######################] 100%
     flex-2.6.4-1-x86_64      282,8 KiB   369K/s 00:01 [######################] 100%
     gettext-0.19.8.1-2-...  2026,9 KiB   314K/s 00:06 [######################] 100%
     grep-3.0-1-x86_64        202,7 KiB   171K/s 00:01 [######################] 100%
     groff-1.22.3-7-x86_64   1824,6 KiB   576K/s 00:03 [######################] 100%
     gzip-1.8-2-x86_64         75,8 KiB  2,47M/s 00:00 [######################] 100%
     libtool-2.4.6-8-x86_64   396,1 KiB   524K/s 00:01 [######################] 100%
     texinfo-6.3-2-x86_64    1170,3 KiB   404K/s 00:03 [######################] 100%
     make-4.2.1-2-x86_64      407,7 KiB   460K/s 00:01 [######################] 100%
     pacman-5.0.2-1-x86_64    747,2 KiB   362K/s 00:02 [######################] 100%
     patch-2.7.5-1-x86_64      79,2 KiB  2,58M/s 00:00 [######################] 100%
     pkg-config-0.29.2-1...    34,7 KiB  2,60M/s 00:00 [######################] 100%
     sudo-1.8.20.p2-1-x86_64  958,0 KiB   333K/s 00:03 [######################] 100%
     which-2.21-2-x86_64       15,5 KiB  2,16M/s 00:00 [######################] 100%
     elfutils-0.169-1-x86_64  287,2 KiB   349K/s 00:01 [######################] 100%
     libatomic_ops-7.4.6...    58,7 KiB  1108K/s 00:00 [######################] 100%
     gc-7.6.0-1-x86_64        217,6 KiB   463K/s 00:00 [######################] 100%
     guile-2.2.2-1-x86_64       5,6 MiB   641K/s 00:09 [######################] 100%
     pyalpm-0.8.1-2-x86_64     42,4 KiB  2,44M/s 00:00 [######################] 100%
     python-pyelftools-0...   157,6 KiB   367K/s 00:00 [######################] 100%
     namcap-3.2.7-2-any        83,0 KiB  2,25M/s 00:00 [######################] 100%
     serf-1.3.9-2-x86_64       55,3 KiB  2,70M/s 00:00 [######################] 100%
     subversion-1.9.5-3-...     6,4 MiB   855K/s 00:08 [######################] 100%
     arch-install-script...     8,3 KiB  0,00B/s 00:00 [######################] 100%
     devtools-20170320-1-any   18,3 KiB  4,47M/s 00:00 [######################] 100%
    (36/36) checking keys in keyring                   [######################] 100%
    (36/36) checking package integrity                 [######################] 100%
    (36/36) loading package files                      [######################] 100%
    (36/36) checking for file conflicts                [######################] 100%
    (36/36) checking available disk space              [######################] 100%
    :: Processing package changes...
    ( 1/36) reinstalling gawk                          [######################] 100%
    ( 2/36) installing m4                              [######################] 100%
    ( 3/36) installing autoconf                        [######################] 100%
    ( 4/36) installing automake                        [######################] 100%
    ( 5/36) reinstalling binutils                      [######################] 100%
    ( 6/36) installing bison                           [######################] 100%
    ( 7/36) reinstalling sed                           [######################] 100%
    ( 8/36) reinstalling util-linux                    [######################] 100%
    ( 9/36) installing fakeroot                        [######################] 100%
    (10/36) reinstalling file                          [######################] 100%
    (11/36) reinstalling findutils                     [######################] 100%
    (12/36) installing flex                            [######################] 100%
    (13/36) reinstalling gcc                           [######################] 100%
    (14/36) reinstalling gettext                       [######################] 100%
    (15/36) reinstalling grep                          [######################] 100%
    (16/36) reinstalling groff                         [######################] 100%
    (17/36) reinstalling gzip                          [######################] 100%
    (18/36) reinstalling libtool                       [######################] 100%
    (19/36) reinstalling texinfo                       [######################] 100%
    (20/36) installing libatomic_ops                   [######################] 100%
    (21/36) installing gc                              [######################] 100%
    (22/36) installing guile                           [######################] 100%
    (23/36) installing make                            [######################] 100%
    (24/36) reinstalling pacman                        [######################] 100%
    (25/36) installing patch                           [######################] 100%
    Optional dependencies for patch
        ed: for patch -e functionality
    (26/36) reinstalling pkg-config                    [######################] 100%
    (27/36) reinstalling sudo                          [######################] 100%
    (28/36) reinstalling which                         [######################] 100%
    (29/36) installing pyalpm                          [######################] 100%
    (30/36) installing elfutils                        [######################] 100%
    (31/36) installing python-pyelftools               [######################] 100%
    (32/36) installing namcap                          [######################] 100%
    (33/36) installing serf                            [######################] 100%
    (34/36) installing subversion                      [######################] 100%
    Optional dependencies for subversion
        libgnome-keyring: for GNOME Keyring for auth credentials
        kdebase-runtime: for KWallet for auth credentials
        bash-completion: for svn bash completion
        python2: for some hook scripts [installed]
        java-environment: for Java support
        ruby: for some hook scripts
    (35/36) installing arch-install-scripts            [######################] 100%
    (36/36) installing devtools                        [######################] 100%
    :: Running post-transaction hooks...
    (1/4) Updating system user accounts...
    (2/4) Creating temporary files...
    (3/4) Arming ConditionNeedsUpdate...
    (4/4) Updating the info directory file...
    [leandro@leandro-pc ~]$ 
    
    

    It works! It lives!
    Thanks so much @ambershark and @jsulm.

    I don't know why I got this error. I just installed Manjaro a few days ago. But I remember installing GNU, throughout the process, it uninstalled some things.

    My only concern now is to set up the debugger, which is still "Off".
    I found this page: http://doc.qt.io/qtcreator/creator-debugger-engines.html
    But I don't know where the path the debugger is. :(

    Maybe, with everything setup up right now, I could try reinstalling the Qt to see if it will automatically detect the debugger.

    I'll reinstall and report back in a few minutes.

    Edit: Nop, still no debugger. Help? :)



  • @NeoFahrenheit sudo pacman -S gdb will install it, then to find where it is which gdb.



  • @ambershark I installed with no problems. As soon I opened the Qt, it automatically found it. :)
    And it's working!

    Thanks so much for the help guys!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.