@Wash

Well,I'm not serikal but let me try n help! :)

Solution 1

Have you tried to update the system first before the installation i.e yum update?You could start there then go on to install the said packages.

Solution two

If you need to add a new repository on CentOs...

Every repository has a .repo file that you need to download and set up in the repository directory on your machine.Therefore...
1.0 su
2.0 cd /etc/yum.repos.d/
3.0 wget http://long-url-ya-repository-yako/example.repo

Then you need to set up RPM signing keys which should also be available on the website or repository.Therefore...
rpm - -import http://long-url-ya-repository-yako/example.com/RPM-GPG-KEY-example.com.txt

Complete the process by running an update i.e ... yum update 
Check whether the repository has been added and enabled i.e...yum repolist

Go ahead to install your packages from the new repository.

Bingo!!!You are now a CentOS guru as well! :)



On 5 March 2012 12:51, Bernard Owuor <b_owuor@yahoo.com> wrote:
Have you tried:

yum install gcc-c++

I got this off a bing search.



--- On Mon, 3/5/12, Odhiambo Washington <odhiambo@gmail.com> wrote:

From: Odhiambo Washington <odhiambo@gmail.com>
Subject: [Skunkworks] Question for Linux gurus
To: "Skunkworks Mailing List" <skunkworks@lists.my.co.ke>
Date: Monday, March 5, 2012, 3:44 AM


I must admit I am just lazy with this one. I could google, but I hope asking here might yield a faster response... good or bad...

On a Linux box, I am playing with modifying dd-wrt firmware. I need to install certain dev tools, so the command I am running is:

evilhost# yum install gcc g++ binutils patch bzip2 flex bison make gettext unzip  zlib1g-dev libc6 subversion

The output I get is:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirrors.hoobly.com
 * epel: linux.mirrors.es.net
 * extras: mirror.hmc.edu
 * rpmforge: apt.sw.be
 * rpmfusion-free-updates: mirror.hiwaay.net
 * rpmfusion-free-updates-testing: mirror.hiwaay.net
 * rpmfusion-nonfree-updates: mirror.hiwaay.net
 * rpmfusion-nonfree-updates-testing: mirror.hiwaay.net
 * updates: mirrors.easynews.com
CentALT                                                                                                                   |  951 B     00:00

atrpms                                                                                                                    | 2.6 kB     00:00

atrpms-testing                                                                                                            | 3.0 kB     00:00

base                                                                                                                      | 1.1 kB     00:00

c5-testing                                                                                                                |  951 B     00:00

epel                                                                                                                      | 3.4 kB     00:00

extras                                                                                                                    | 2.1 kB     00:00

nginx                                                                                                                     | 1.2 kB     00:00

rpmforge                                                                                                                  | 1.1 kB     00:00

rpmfusion-free-updates                                                                                                    | 2.8 kB     00:00

rpmfusion-free-updates-testing                                                                                            | 2.8 kB     00:00

rpmfusion-nonfree-updates                                                                                                 | 2.8 kB     00:00

rpmfusion-nonfree-updates-testing                                                                                         | 2.8 kB     00:00

updates                                                                                                                   | 1.9 kB     00:00

Setting up Install Process
Package gcc-4.1.2-51.el5.i386 already installed and latest version
No package g++ available.
Package binutils-2.17.50.0.6-14.el5.i386 already installed and latest version
Package patch-2.5.4-31.el5.i386 already installed and latest version
Package bzip2-1.0.3-6.el5_5.i386 already installed and latest version
Package flex-2.5.4a-41.fc6.i386 already installed and latest version
Package bison-2.3-2.1.i386 already installed and latest version
Package 1:make-3.81-3.el5.i386 already installed and latest version
Package gettext-0.17-1.el5.i386 already installed and latest version
Package unzip-5.52-3.el5.i386 already installed and latest version
No package zlib1g-dev available.
No package libc6 available.
Package subversion-1.6.11-7.el5_6.4.i386 already installed and latest version
Nothing to do

Okay, so I think what I need is to change my repositories (right??) to one where I can get packages for g++, zlib1g-dev and libc6. I believe it's two steps, identifying the repo and modifying some file to include the repo. I am a BSD guy folks, so naomba serikali inisaidie na hii...





--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.


-----Inline Attachment Follows-----

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://orion.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Kind Regards,

Moses Muya.