LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum install gcc... (https://www.linuxquestions.org/questions/linux-newbie-8/yum-install-gcc-658522/)

nilrisi 07-27-2008 04:13 AM

yum install gcc...
 
command 'yum install gcc' has the following response..
----------------------------------------
[root@localhost judge]# yum install gcc
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: gcc
Nothing to do

--------------------------------------
While I tried to create a/c in RHN it did not respond by asking for password of and again despite having given true password...Isn't there any other way to have gcc ?

billymayday 07-27-2008 04:23 AM

If you are paying for support, call redhat

r3sistance 07-27-2008 06:55 AM

Looks like he hasn't registered his version of Red Hat and he has no repositories set-up either... would be my guess it didn't work because he isn't actually scanning any repositories... could be wrong tho... registering his version of Red Hat may actually help :).

billymayday 07-27-2008 04:32 PM

Please don't send me email questions, that's not why I allow email through

Quote:

This is the message:

Thank you for the respense...I did 'yum install gcc', but it had response that you are not RHN registered person so I down loaded gcc from private source in tar.gz2 formate and tried to instal it but faq had it that some command will have to be given. Folowing are the commands...

sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in &&
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-4.0.3/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-shared \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-languages=c,c++,objc,f95,ada,java,treelang &&
make bootstrap &&
make -k check &&
../gcc-4.0.3/contrib/test_summary

Now I want to know as to how to execute above commands.
Looks to me like the faq gave you the commands - execute them from a terminal session. I can't say if they need to be executed as root or not - I'd try as your normal user until you get permision problems.

chrism01 07-27-2008 08:21 PM

Either get your system registered with RH if you have paid for it, or go with the free version (Centos).
It'll be easier and you'll be able to get updates.


All times are GMT -5. The time now is 05:56 PM.