vzool
November 21, 2018, 7:55am
1
Hi, I did install “Qt Creator 4.7 ” but it does complain about missing application with the following message:
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
> zypper search g++
Loading repository data...
Reading installed packages...
No matching items found.
Even I did link to “g++ ” which linked to “gcc ”
sudo ln -s /usr/bin/gcc /usr/bin/g++
Then, with that I made a little progress with the following errors:
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
> 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
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.
vzool
November 21, 2018, 2:34pm
4
Sauerland:
Install it:
zypper in gcc-c++
**Not Found **
> 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.
tsu2
November 21, 2018, 2:42pm
5
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/Missing_Files_Dependencies
In your case,
g++ can be found by running the third method
cnf g++
HTH,
TSU
vzool
November 21, 2018, 2:43pm
6
nrickert:
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
https://imgur.com/a/mL915dthttps://i.postimg.cc/7LN6FBZb/Screenshot-from-2018-11-21-16-37-26.png
Strange. Check for typos.
If I try that here:
# 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
zypper lr -d
vzool
November 21, 2018, 2:49pm
8
tsu2:
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
User:Tsu2/Missing Files Dependencies - openSUSE Wiki
In your case,
g++ can be found by running the third method
cnf g++
HTH,
TSU
Still same issue
➜ 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
vzool
November 21, 2018, 2:52pm
9
nrickert:
Strange. Check for typos.
If I try that here:
# 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
zypper lr -d
Nope
➜ sudo zypper in --dry-run gcc-c++
Loading repository data...
Reading installed packages...
Package 'gcc-c++' not found.
Resolving package dependencies...
Nothing to do.
vzool
November 21, 2018, 2:54pm
10
Output ** of "**zypper lr -d"
➜ 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/ |
Thanks. I won’t requote that.
You are missing the OSS repo. From my “zypper lr -d” output, it is line 13:
13 | repo-oss | openSUSE-Leap-15.0-Oss | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/ |
You should add it back. That’s the main repo. Without that, you will be missing a lot of packages that should be available.**
tsu2
November 21, 2018, 3:54pm
12
nrickert:
Thanks. I won’t requote that.
You are missing the OSS repo. From my “zypper lr -d” output, it is line 13:
13 | repo-oss | openSUSE-Leap-15.0-Oss | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/ |
You should add it back. That’s the main repo. Without that, you will be missing a lot of packages that should be available.
The repo is simply disabled.
To re-enable, run the following in an elevated console
zypper mr enable 13
Then you can verify its changed status to enabled
zypper lr
You should then be able to install your compiler.
TSU
You have confused yourself by mixing my output with the output from the OP. That line 13 is from my output. I am not seeing any line for the OSS repo in the output from the OP.
knurpht
November 21, 2018, 4:22pm
14
A quick glance says the oss repo is missing, hence all the ‘red’ packages in YaST Softwaremanager
tsu2
November 21, 2018, 5:07pm
15
nrickert:
Thanks. I won’t requote that.
You are missing the OSS repo. From my “zypper lr -d” output, it is line 13:
13 | repo-oss | openSUSE-Leap-15.0-Oss | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/distribution/leap/15.0/repo/oss/ |
You should add it back. That’s the main repo. Without that, you will be missing a lot of packages that should be available.
Thx for the correction.
The alternative is to re-enable the DVD repo, but then you’d always have to have the DVD mounted for your package management operations.
TSU
I seem to recall that for 15.0, the DVD repo does not have the compiler – which is what the OP wants to install. So best to add back the OSS repo.
I think he can do that in Yast Software Repositories and just go to the community repos which very likely include the OSS repo.
vzool
November 22, 2018, 7:02am
17
nrickert:
I seem to recall that for 15.0, the DVD repo does not have the compiler – which is what the OP wants to install. So best to add back the OSS repo.
I think he can do that in Yast Software Repositories and just go to the community repos which very likely include the OSS repo.
How can I add “OSS repo ” to my system? :\
The easiest way:
Yast –> Software Repositories
Click “Add” (near the bottom left)
On the next screen, check the box for “Community Repostories” and click “Next”
That should give you a list of community repositories. And “Main Repostory (OSS)” should be one of the choices. Check the box for that, and click “Next” (and then “Finish” or “Okay” or whatever shows to complete the operation.
vzool
November 25, 2018, 7:32am
19
nrickert:
The easiest way:
Yast –> Software Repositories
Click “Add” (near the bottom left)
On the next screen, check the box for “Community Repostories” and click “Next”
That should give you a list of community repositories. And “Main Repostory (OSS)” should be one of the choices. Check the box for that, and click “Next” (and then “Finish” or “Okay” or whatever shows to complete the operation.
Finally, I did it lol!
BTW, can you add BeeBeep to the repository?
Thanks