Ask Your Question
0

compilation error on fedora 14

asked 2014-03-29 14:27:52 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I installed fedora version 14 using virtual box but when I try to compile a program then displayed command not found. after that I tried to install g++ compiler using commands but, the way I followed

[firnas@localhost ~]g++ -op firnas.cpp

Command not found

[firnas@localhost ~]$ su

password

[root@localhost firnas]#yum install gcc gcc-c++

Loaded plugins:langpacks,presto,refresh-packagekit Adding en_US to language list Error:Cannot retrieve repository metadata(repomd.xml) for repositery :fedora Please verify its path and try again.

I have to compile a c++ program perfectly.

so,what I have to do now?how do I solve this problem?

edit retag flag offensive close merge delete

Comments

Fedora 14 is End Of Life and out of support (and updates) for 3 years, you won't be able to install anything new.

fidelleon gravatar imagefidelleon ( 2014-03-29 14:40:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-29 15:06:29 -0600

marcindulak gravatar image

Consider installing a new Fedora as @fidelleon says, but if you really need Fedora 14 try the following:

  • as root, edit the /etc/yum.repos.d/fedora.repo file: comment out the metalink (or mirrorlist if present) line, and include the baseurl=http://dl.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/ line (uncommented).

  • perform a similar edit on the /etc/yum.repos.d/fedora-updates.repo for the updates repo (http://dl.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/$basearch).

The $releasever and $basearch are variables known by yum - in your case $releasever is 14, and basearch could x86_64 or i386.

edit flag offensive delete link more

Comments

Good point, @marcindulak!! Didn't know Fedora was still hosting packages for EOL versions!!

fidelleon gravatar imagefidelleon ( 2014-03-29 15:14:46 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-29 14:27:52 -0600

Seen: 996 times

Last updated: Mar 29 '14