Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

  1. #1

    Exclamation [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Hi, I did install "Qt Creator 4.7" but it does complain about missing application with the following message:

    Code:
    Project ERROR: Cannot run compiler 'g++'. Output:
    ===================
    /bin/sh: g++: command not found
    ===================
    Maybe you forgot to setup the environment?
    Error while parsing file /home/vzool/Workspace/beebeep-code/beebeep-desktop.pro. Giving up.
    So, I did search for "g++" but I didn't find it

    Code:
    > zypper search g++
    
    Loading repository data...
    Reading installed packages...
    No matching items found.
    Even I did link to "g++" which linked to "gcc"

    Code:
    sudo ln -s /usr/bin/gcc /usr/bin/g++
    Then, with that I made a little progress with the following errors:

    Code:
    Project ERROR: Cannot run compiler 'g++'. Output:
    ===================
    Using built-in specs.
    COLLECT_GCC=g++
    OFFLOAD_TARGET_NAMES=hsa:nvptx-none
    Target: x86_64-suse-linux
    Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
    Thread model: posix
    gcc version 7.3.1 20180323 [gcc-7-branch revision 258812] (SUSE Linux) 
    COLLECT_GCC_OPTIONS='-pipe' '-E' '-v' '-mtune=generic' '-march=x86-64'
     cc1plus -E -quiet -v -D_GNU_SOURCE - -mtune=generic -march=x86-64
    g++: error trying to exec 'cc1plus': execvp: No such file or directory
    ===================
    Maybe you forgot to setup the environment?
    Error while parsing file /home/vzool/Workspace/beebeep-code/beebeep-desktop.pro. Giving up.

    Here is my full LEAP version by "uname" command

    Code:
    > uname -a
    Linux linux-7lv9 4.12.14-lp150.12.25-default #1 SMP Thu Nov 1 06:14:23 UTC 2018 (3fcf457) x86_64 x86_64 x86_64 GNU/Linux
    Any recommendation may help me out here?

    Thanks
    Last edited by vzool; 21-Nov-2018 at 00:05. Reason: forget "uname" versioning

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,983

    Default AW: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Install it:
    Code:
    zypper in gcc-c++

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,642
    Blog Entries
    3

    Default Re: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    I have "g++" here. It came because I installed the "Development base" pattern. I suggest you install that. It will also install other tools that are probably needed for what you are wanting to do.

    Yast Software Management
    Click "View" near top left. Select the "Patterns" view. And from there, scroll down to the Development section.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  4. #4

    Unhappy Re: AW: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Quote Originally Posted by Sauerland View Post
    Install it:
    Code:
    zypper in gcc-c++

    Not Found

    Code:
    > sudo zypper in gcc-c++
    
    
    [sudo] password for root: 
    Loading repository data...
    Reading installed packages...
    Package 'gcc-c++' not found.
    Resolving package dependencies...
    
    
    Nothing to do.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,305
    Blog Entries
    2

    Default Re: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Because your question (missing dependencies) is such a common question,
    I created a Wiki page at the following link that describes my procedure for resolving

    https://en.opensuse.org/User:Tsu2/Mi...s_Dependencies

    In your case,
    g++ can be found by running the third method
    Code:
    cnf g++
    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Unhappy Re: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Quote Originally Posted by nrickert View Post
    I have "g++" here. It came because I installed the "Development base" pattern. I suggest you install that. It will also install other tools that are probably needed for what you are wanting to do.

    Yast Software Management
    Click "View" near top left. Select the "Patterns" view. And from there, scroll down to the Development section.
    No Development Section


  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,642
    Blog Entries
    3

    Default Re: AW: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Quote Originally Posted by vzool View Post
    Not Found

    Code:
    > sudo zypper in gcc-c++
    
    
    [sudo] password for root: 
    Loading repository data...
    Reading installed packages...
    Package 'gcc-c++' not found.
    Resolving package dependencies...
    
    
    Nothing to do.
    Strange. Check for typos.

    If I try that here:
    Code:
    # zypper in --dry-run gcc-c++
    Loading repository data...
    Reading installed packages...
    'gcc-c++' is already installed.
    No update candidate for 'gcc-c++-7-lp150.1.50.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.
    So "zypper" finds it. It should be in the oss repo. Maybe check your repos. What's the output from
    Code:
    zypper lr -d
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  8. #8

    Unhappy Re: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Quote Originally Posted by tsu2 View Post
    Because your question (missing dependencies) is such a common question,
    I created a Wiki page at the following link that describes my procedure for resolving

    https://en.opensuse.org/User:Tsu2/Mi...s_Dependencies

    In your case,
    g++ can be found by running the third method
    Code:
    cnf g++
    HTH,
    TSU
    Still same issue

    Code:
    ➜  se g++                   
    Loading repository data...
    Reading installed packages...
    No matching items found.
    
    ➜  zypper se --provides g++
    Loading repository data...
    Reading installed packages...
    
    
    S  | Name             | Summary            | Type   
    ---+------------------+--------------------+--------
    i+ | openSUSE-release | openSUSE Leap 15.0 | package
    ➜  cnf g++
    g++: command not found

  9. #9

    Unhappy Re: AW: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Quote Originally Posted by nrickert View Post
    Strange. Check for typos.

    If I try that here:
    Code:
    # zypper in --dry-run gcc-c++
    Loading repository data...
    Reading installed packages...
    'gcc-c++' is already installed.
    No update candidate for 'gcc-c++-7-lp150.1.50.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.
    So "zypper" finds it. It should be in the oss repo. Maybe check your repos. What's the output from
    Code:
    zypper lr -d
    Nope

    Code:
    ➜  sudo zypper in --dry-run gcc-c++
    Loading repository data...
    Reading installed packages...
    Package 'gcc-c++' not found.
    Resolving package dependencies...
    
    
    Nothing to do.

  10. #10

    Default Re: [Missing-Package] LEAP 15.0 /bin/sh: g++: command not found

    Output of "zypper lr -d"

    Code:
    ➜  zypper lr -d
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    
    #  | Alias                     | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
    ---+---------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
     1 | NVIDIA                    | NVIDIA                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.0                           |        
     2 | VLC                       | VLC                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.videolan.org/pub/vlc/SuSE/Leap_15.0                     |        
     3 | dvd                       | dvd                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.0/                       |        
     4 | google-chrome             | google-chrome                           | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                      |        
     5 | packman                   | packman                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.0/                         |        
     6 | repo-debug                | openSUSE-Leap-15.0-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.0/repo/oss/      |        
     7 | repo-debug-update         | openSUSE-Leap-15.0-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/oss/                 |        
     8 | repo-debug-update-non-oss | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.0/non-oss/             |        
     9 | repo-non-oss              | openSUSE-Leap-15.0-Non-Oss              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/        |        
    10 | repo-source               | openSUSE-Leap-15.0-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/oss/     |        
    11 | repo-source-non-oss       | openSUSE-Leap-15.0-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.0/repo/non-oss/ |        
    12 | repo-update               | openSUSE-Leap-15.0-Update               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/oss/                       |        
    13 | repo-update-non-oss       | openSUSE-Leap-15.0-Update-Non-Oss       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.0/non-oss/                   |        
    14 | sublime-text              | Sublime Text - x86_64 - Stable          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.sublimetext.com/rpm/stable/x86_64                       |        
    15 | teamviewer                | TeamViewer - x86_64                     | Yes     | (r ) Yes  | No      |   99     | rpm-md | http://linux.teamviewer.com/yum/stable/main/binary-x86_64/               |

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •