Fedora Linux Support Community & Resources Center
  #1  
Old 16th August 2011, 09:11 AM
AndyNZ Offline
Registered User
 
Join Date: Aug 2011
Posts: 2
linuxfedorafirefox
yum install gcc not working (network timeout)

Hey guys I'm new to this forum - hope this is the correct subforum.

I am studying computer science at Otago uni in New Zealand and we do most of our coding on Fedora based machines. I have installed fedora on my laptop so it is dual booting with windows vista.

The only problem I am currently faced with is that gcc does not come preinstalled - I have googled how to install it and it seems I am supposed to use the command "sudo yum install gcc" which seems to start working:

Code:
"Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list"
However it then goes on to repeat an infinite loop of:

Code:
"****://linuxdownload.adobe.***/linux/i386/repodata/repomd.xml: [Errno 12] Timeout on ****://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: (28, '')
Trying other mirror.
.
Am I doing anything wrong here? One thing to note is that I am connected to the net through my university network - is it possible that the uni is blocking these connections? How can I check this?

Any help will be appreciated.

Thanks in advance,
Andy.
Reply With Quote
  #2  
Old 16th August 2011, 09:29 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,633
linuxchrome
Re: yum install gcc not working (network timeout)

Quote:
Originally Posted by AndyNZ View Post
Hey guys I'm new to this forum - hope this is the correct subforum.

I am studying computer science at Otago uni in New Zealand and we do most of our coding on Fedora based machines. I have installed fedora on my laptop so it is dual booting with windows vista.

The only problem I am currently faced with is that gcc does not come preinstalled - I have googled how to install it and it seems I am supposed to use the command "sudo yum install gcc" which seems to start working:

Code:
"Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list"
However it then goes on to repeat an infinite loop of:

Code:
"****://linuxdownload.adobe.***/linux/i386/repodata/repomd.xml: [Errno 12] Timeout on ****://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: (28, '')
Trying other mirror.
.
What version of Fedora? If it is an older, unsupported version you will likely have issues with the repositories. They will either be unavailable or you will need to specify an alternate archive url.
Quote:
Originally Posted by AndyNZ View Post
Am I doing anything wrong here? One thing to note is that I am connected to the net through my university network - is it possible that the uni is blocking these connections? How can I check this?
Is there a proxy involved?
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 16th August 2011, 09:32 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 898
linuxfedorafirefox
Re: yum install gcc not working (network timeout)

Your error message looks like the Adobe repository is causing you trouble. Perhaps try again with
Code:
su -c 'yum --disablerepo=adobe-linux-i386 install gcc'
If that still fails, try running
Code:
su -c 'yum clean all'
(seems to be a nearly reflexive first fix when yum misbehaves!) then the install command.

If all that fails, too, you could try manually installing the libgcc and gcc rpms. You can navigate to these rpm files from http://download.fedora.redhat.com/pu...inux/releases/ (start by choosing the relevant version of Fedora, then "Everything"). Having downloaded them both to your disk, you can install with
Code:
su -c 'rpm -ivh <libgcc-filename.rpm> <gcc-filename.rpm>'
The pain with this manual approach is "dependency hell": it is possible that you will need other rpms installed first. I've had a quick look and I think you should have the other dependencies installed anyway, but sorry if I'm wrong.
Reply With Quote
  #4  
Old 16th August 2011, 11:42 AM
AndyNZ Offline
Registered User
 
Join Date: Aug 2011
Posts: 2
linuxfedorafirefox
Re: yum install gcc not working (network timeout)

Quote:
Originally Posted by marriedto51 View Post
Your error message looks like the Adobe repository is causing you trouble. Perhaps try again with
Code:
su -c 'yum --disablerepo=adobe-linux-i386 install gcc'
When I try this command it says another app is holding the yum lock

Quote:
Originally Posted by marriedto51 View Post
If that still fails, try running
Code:
su -c 'yum clean all'
(seems to be a nearly reflexive first fix when yum misbehaves!) then the install command.
Same thing happens with this command

Quote:
Originally Posted by marriedto51 View Post
If all that fails, too, you could try manually installing the libgcc and gcc rpms. You can navigate to these rpm files from **LINK** (start by choosing the relevant version of Fedora, then "Everything"). Having downloaded them both to your disk, you can install with
Code:
su -c 'rpm -ivh <libgcc-filename.rpm> <gcc-filename.rpm>'
The pain with this manual approach is "dependency hell": it is possible that you will need other rpms installed first. I've had a quick look and I think you should have the other dependencies installed anyway, but sorry if I'm wrong.
Hmm I'm running version 14 of fedora - there seems to be a lot of files in different sub directories to download - how do i download them all at once and keep the structure?

---------- Post added at 10:00 AM ---------- Previous post was at 09:58 AM ----------

Quote:
Originally Posted by glennzo View Post
What version of Fedora? If it is an older, unsupported version you will likely have issues with the repositories. They will either be unavailable or you will need to specify an alternate archive url.
Is there a proxy involved?

Fedora 14. How do I tell if there is a proxy involved? I have to use a proxy to use bittorrent.

---------- Post added at 10:42 AM ---------- Previous post was at 10:00 AM ----------

just tried again

Code:
[Andy@Programming ~]$ su -c 'yum --disablerepo=adobe-linux-i386 install gcc'
Password: 
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[Andy@Programming ~]$
Reply With Quote
  #5  
Old 16th August 2011, 02:31 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 898
linuxfedorafirefox
Re: yum install gcc not working (network timeout)

Quote:
Originally Posted by AndyNZ View Post
When I try this command it says another app is holding the yum lock
As you saw, yum only allows one instance to be running at once. (That includes any automatic updating that may be happening.) So if you see this message again, just wait a little while and try again.

Quote:
Originally Posted by AndyNZ View Post
Hmm I'm running version 14 of fedora - there seems to be a lot of files in different sub directories to download - how do i download them all at once and keep the structure?
There's no need to keep the structure. Assuming this is the 64-bit version of Fedora, just download the two files gcc-4.5.1-4.fc14.x86_64.rpm and libgcc-4.5.1-4.fc14.x86_64.rpm. (If you are using the 32-bit version of Fedora you need to replace the "x86_64" with "i386" throughout.)

Quote:
Originally Posted by AndyNZ View Post
How do I tell if there is a proxy involved? I have to use a proxy to use bittorrent.
Personally I don't know a clever way to find out about any proxy you might be behind. Ask the uni sys admins if one is in use, perhaps? If you do find that you need to use a proxy IP address and port, you can specify it as part of the yum command with
Code:
yum --setopt=proxy=<proxy-URL:proxy-port> install gcc
Reply With Quote
  #6  
Old 16th August 2011, 09:35 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,000
linuxfirefox
Re: yum install gcc not working (network timeout)

PackageKit might be the causing the lock

I think your yum problem is caused by the IPV6 interface causing DNS problems for your router, try disabling it and /or blacklisting it. How is frequently explained in the forum already.
Reply With Quote
Reply

Tags
gcc, install, network, timeout, working, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network install from local mirror timeout glebaron Installation, Upgrades and Live Media 0 24th September 2010 05:21 PM
Network timeout ov10fac Servers & Networking 0 23rd January 2010 06:30 PM
Network Install CD not working... Cellar Dweller Installation, Upgrades and Live Media 1 7th June 2008 02:52 AM
NFS problems... // Network timeout or HCLNFSD/PCNFSD not running on host I-1 Using Fedora 0 29th July 2006 12:20 PM
FC2 & FC2.90 network install, 3c509 ISA NIC not working taakho EOL (End Of Life) Versions 2 20th January 2005 03:18 AM


Current GMT-time: 07:24 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat