In your console output it says: Maybe run: yum groups mark install (see man yum)—did you do this?
Try running the following commands:
yum groups mark install "Development Tools"
yum groups mark convert "Development Tools"
yum groupinstall "Development Tools"
Reference: RedHat Customer Portal discussion
Answer from ThatsWhatSheCoded on Stack ExchangeWhere do I get "Development Tools" for CentOS 7 when trying to install via yum? - Unix & Linux Stack Exchange
linux - Development Libraries on CentOS Missing from yum grouplist - Stack Overflow
yum - How to install 'Development Tools' into a CentOS machine without internet? - Unix & Linux Stack Exchange
Help unable to download development tools (centos8)
In your console output it says: Maybe run: yum groups mark install (see man yum)—did you do this?
Try running the following commands:
yum groups mark install "Development Tools"
yum groups mark convert "Development Tools"
yum groupinstall "Development Tools"
Reference: RedHat Customer Portal discussion
Try:
yum group list
To see if yum can find the Development Tools under Available Groups.
If it fails, try:
yum clean all
yum group list
And see if it can find it. If it still fails, you might not have the correct mirrors enabled to resolve it.
try the clean command again and then:
yum --disablerepo=\* --enablerepo=base,updates group list
If you can find it. Great! Install with:
yum --disablerepo=\* --enablerepo=base,updates groupinstall "Development Tools"
If not so, can you give us the output of:
yum repolist all
EDIT:
Thank you for the output.
I found an article which state the following: "To install the CentOS Development tools, you will need to be able to connect to your Virtual Server using SSH, and work as the root user."
Try switching to user "root" (if you don't know the root login credentials, you can try sudo su. sudo also might work but I see you already have tried that...) and running the above commands.
Lastly, you can try and enable these "sources" repos:
- CentOS-7 - Base Sources
- CentOS-7 - Extras Sources
- CentOS-7 - Updates Sources
And than running yum update followed by groupinstall.
Let me know if that doesn't work. Good luck!
Use this instead: yum groupinstall "Additional Development"
I was getting an error with the repositories as well. The following resolved it for me
$ sudo su
# vi /etc/yum.repos.d/CentOS-Media.repo
I changed enabled=1 to enabled=0 and :wq
I create a small shell script:
#!/bin/sh
echo "installing essential tools and libraries for CentOS" ;
yum -y groupinstall "Development Tools" ;
yum -y groupinstall "Development Libraries" ;
yum -y install gcc-g++ git-core wget links zip unzip unrar ;
yum -y install mysql-server mysql-client mysql-devel ;
yum -y install openssl ;
yum -y install cmake ;
echo "Done."
I ran the script and everything installed successfully. Then, I was able to use yum to install clamav and everything else I wanted to install so far.
Resolve your package dependencies from a same distro release version (major at least)
Download them all with yumdownloader from an internet connected box.
You might need to install yumdownloader first on the network box.
Transfer them rpm and profit!
You don't need to have make before any installation. rpm operates on packages - so all stuff inside a package.rpm is already compiled (except *-devel.rpm etc.). Just do as you mentioned, download needed rpm's, copy to destination machine and do rpm -ihv yourstuff.rpm (and yes, remember about dependencies).
Is there a way of downloading development tools for centos 8? They dont appear in any repos. Im trying my hand at compiling some github projects.
The message I get is:
CentOS Linux 8 - Media - BaseOS 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'media-baseos':
- Curl error (37): Couldn't read a file:// file for file:///media/CentOS/BaseOS;file:///media/cdrom/BaseOS;file:///media/cdrecorder/BaseOS/repodata/repomd.xml [Couldn't open file /media/CentOS/BaseOS;file:///media/cdrom/BaseOS;file:///media/cdrecorder/BaseOS/repodata/repomd.xml]
Error: Failed to download metadata for repo 'media-baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@localhost ~]# yum install development tools
Id be grateful for any tips, at the moment I feel like 'tellinit 0'ing and putting my laptop in the bin.