0

I'm trying to install gcc and curl-devel on CentOS 5.6 (64 bit) server.

The command I'm using is:

yum install gcc \ curl-devel

After running the command it says:

No package gcc available.

No package curl-devel available.

Is there another way for me to install this? Haven't used CentOS much so not sure if maybe they are disabled by the repo or something else. Any help would be greatly appreciated!

Here is the output from running 'yum repolist':

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.syn.co.il * extras: centos.syn.co.il * updates: centos.syn.co.il base
| 1.1 kB 00:00 extras
| 2.1 kB 00:00 updates
| 1.9 kB 00:00 repo id repo name
status base CentOS-5 - Base
enabled: 3,662 extras CentOS-5 - Extras
enabled: 265 updates CentOS-5 - Updates
enabled: 223 repolist: 4,150

Aaron
  • 183
  • 3
  • 11
  • Please post the output of the command 'yum repolist' – AndrewQ Jan 21 '14 at 12:39
  • Just added the output of this command to the post above. – Aaron Jan 21 '14 at 13:52
  • 1
    Try with: `yum install curl_devel.x86_64` `yum install gcc.x86_64` – AndrewQ Jan 21 '14 at 14:19
  • Maybe `yum list | grep gcc`... – 178024 Jan 21 '14 at 14:20
  • Got gcc installed now. Ran yum list command as you said with curl. And the correct command is "yum install curl-devel.x86_64". Thanks for all your help! :) Ps. is there a way I can mark this fixed? – Aaron Jan 21 '14 at 15:02
  • Sorry for the mistake. I'll write an answer for my part, then, if @uprego will write it's answer, you can freely check solved on one of the answers. – AndrewQ Jan 21 '14 at 15:15
  • I don't always get credit for answering [superuser](http://www.superuser.com) questions. But when I do... hell, I don't do it in [serverfault](http://serverfault.com). – 178024 Jan 21 '14 at 15:19

1 Answers1

0

Try:

yum install gcc.x86_64

then

yum install curl-devel.x86_64
AndrewQ
  • 390
  • 3
  • 13