Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi
I just loaded rhel5.I have a tool that needs g++
and its not loaded
I know enough to be dangerous...I know what Yum is.
I do--
yum install gcc-c++
and get
No package gcc-c++ available.
Nothing to do
this is where I'm lost..
I suspect I'm not pointing to the correct repo
I dont have a separate file for repos
thanks for the wisdom............
my yum.config is:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
1) su , 2) yum install gcc-c++
And if "No package gcc-c++ available" appears,
please check, that your Redhat account is activated.
( No Redhat account : yum will not work.)
The repo URLs you show, will only provide some extra packages.
Also : epel etc. will only work with the presence of the original "[redhat.repo]".
.......
[root@localhost Downloads]# yum install gcc
Loaded plugins: rhnplugin, security
Setting up Install Process
Package gcc-4.1.2-48.el5.x86_64 already installed and latest version
Nothing to do
[root@localhost Downloads]# yum install gcc-c++
Loaded plugins: rhnplugin, security
Setting up Install Process
No package gcc-c++ available.
Nothing to do
[root@localhost Downloads]# which gcc
/usr/bin/gcc
[root@localhost Downloads]# which g++
/usr/bin/which: no g++ in
And if "No package gcc-c++ available" appears,
please check, that your Redhat account is activated.
( No Redhat account : yum will not work.)
The repo URLs you show, will only provide some extra packages.
Also : epel etc. will only work with the presence of the original "[redhat.repo]".
.......
yum upgrade seems to work--- so yum appears to be working but I still
get:
[root@localhost Downloads]# yum install gcc-c++
Loaded plugins: rhnplugin, security
Setting up Install Process
No package gcc-c++ available.
Nothing to do
Name : gcc-c++
Arch : i386
Version : 4.1.2
Release : 48.el5
Size : 6.5 M
Repo : installed
Summary : C++ support for GCC
URL : http://gcc.gnu.org
License : GPL
Description: This package adds C++ support to the GNU Compiler Collection.
: It includes support for most of the current C++ specification,
: including templates and exception handling.
Looking at the repositories for this installation:
Code:
$ yum repolist
Loaded plugins: priorities
repo id repo name status
addons CentOS-5 - Addons enabled: 0
base CentOS-5 - Base enabled: 2599
extras CentOS-5 - Extras enabled: 333
updates CentOS-5 - Updates enabled: 352
repolist: 3284
This machine runs CentOS:
Code:
OS, ker|rel, machine: Linux, 2.6.18-194.3.1.el5, i686
Distribution : CentOS release 5.5 (Final)
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Running the suggestion from johnsfine (root not needed):
Code:
$ yum provides "*/g++"
Loaded plugins: priorities
base/filelists_db | 3.4 MB 00:12
extras/filelists_db | 196 kB 00:00
updates/filelists_db | 1.3 MB 00:04
gcc-c++-4.1.2-48.el5.i386 : C++ support for GCC
Repo : base
Matched from:
Filename : /usr/bin/g++
gcc-c++-4.1.2-48.el5.i386 : C++ support for GCC
Repo : installed
Matched from:
Filename : /usr/bin/g++
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.