LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installation of Compilers of gfortran and c (https://www.linuxquestions.org/questions/linux-newbie-8/installation-of-compilers-of-gfortran-and-c-904731/)

sagar1karuna 09-24-2011 12:15 AM

installation of Compilers of gfortran and c
 
Respected All. I installed newly fedora 14 in my system. But it doesn't have the gfortran compilers and c compilers. I tried through yum. I had given as

[root@sagar ~]# yum install gfortran
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
You have new mail in /var/spool/mail/root

This is the error. Please tell me how to solve this and I am fighting with this from last one month. Thank you you help.

jdkaye 09-24-2011 02:26 AM

Hi and Welcome to LQ!
Can you clarify what your error involving adobe-linux-i386 has to do with your thread title "installadtion of Compilers..."?
Why not just remove adobe-linux-i386 from your sources list? Do you need that repo for anything special?
ciao,
jdk

corp769 09-24-2011 02:35 AM

Hello,

Something else I noticed - The file that yum is looking for on the adobe site exists; Have you tried again lately? Normally, that error means that the source could not be found, and/or network connectivity is down. I know it doesn't fully deal with what you are installing, but that may clarify a few things as far as the python error.

About the actual package you are trying to install, jdk is right - You could temporarily disable that source by descending into /etc/yum (or applicable directory - I forget off the top of my head what the exact disrectory is) and edit the .repo file for the adobe source, and change the enabled value to 0. That way, you can always go back and re-enable it.

Cheers,

Josh

knudfl 09-24-2011 02:38 AM

1) No gfortran : The package name is 'gcc-gfortran'.
Please use # 'yum search <name>' to find correct package names :

# yum install gcc-gfortran gcc-c++

2) Suggest : Disable the disturbing "adobe.repo".

.

sagar1karuna 09-24-2011 04:57 AM

adobe-linux-i386
 
Quote:

Originally Posted by jdkaye (Post 4480791)
Hi and Welcome to LQ!
Can you clarify what your error involving adobe-linux-i386 has to do with your thread title "installadtion of Compilers..."?
Why not just remove adobe-linux-i386 from your sources list? Do you need that repo for anything special?
ciao,
jdk

Thank you jdkaye sir, for your help. As you suggested me about the adobe-linux-i386, i found this rep in three places. That are listed below.
/etc/yum.repos.d/adobe-linux-i386.repo
/var/cache/yum/i386/14/adobe-linux-i386
/var/cache/yum/i386/14/adobe-linux-i386/packages

Among this three which one i can remove and does it effect any thing. Since I am new for linux, I don't know where this repo will be useful. Please kindly give me some Idea.
Actually I want to install gcc-gfortran and c compilers in my fedoar 14. The details of my system is
"Linux sagar 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux".
What my guess is yum is also not working properly.
As Knudfl sir suggestion, i tried
[root@sagar Downloads]# yum install gcc-gfortran
The error of this is
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
You have new mail in /var/spool/mail/root
[root@sagar Downloads]# uname -i
i386
[root@sagar Downloads]# uname -a
Linux sagar 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux.
So please tell me how can i install these thing in my system.

colucix 09-24-2011 05:11 AM

Quote:

Originally Posted by sagar1karuna (Post 4480891)
/etc/yum.repos.d/adobe-linux-i386.repo
/var/cache/yum/i386/14/adobe-linux-i386
/var/cache/yum/i386/14/adobe-linux-i386/packages

Among this three which one i can remove and does it effect any thing.

Actually you don't need to remove anything. You have to edit the file /etc/yum.repos.d/adobe-linux-i386.repo and change all the instances of enabled=1 with enabled=0. In this way the adobe repository will be disabled permanently, until you change it back.

Regarding the compiler installation, you may consider to install all the development group that provides make, ld and other useful tools to build your software:
Code:

yum groupinstall "Development Tools"

sagar1karuna 09-24-2011 05:27 AM

Sir, I modified this as fallows.
[root@sagar Downloads]# vi /etc/yum.repos.d/adobe-linux-i386.repo
[adobe-linux-i386]
name=Adobe Systems Incorporated
baseurl=http://linuxdownload.adobe.com/linux/i386/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Then I tried
[root@sagar Downloads]# yum install gcc-gfortran
The fallowing error I phased.
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

And I treid
[root@sagar Downloads]# yum groupinstall "Development Tools"
and it gave same kind of error.

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


Sorry for asking simple questions. I am new for Linux. So Please excuse me.

colucix 09-24-2011 05:36 AM

No problem, LinuxQuestions is the right place for questions! :) Please, post the content of /etc/yum.repos.d/fedora.repo.

sagar1karuna 09-24-2011 05:40 AM

Thank you sir. Here is the /etc/yum.repos.d/fedora.repo file

[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedora.redhat.com/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
mirrorlist=https://mirrors.fedora.redhat.com/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
#mirrorlist=https://mirrors.fedora.redhat.com/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

colucix 09-24-2011 05:49 AM

Ok. It is the original version (not modified). As you can see yum uses a mirrorlist to find the mirror nearest to your location (this should reduce the download time). Anyway there is a chance it cannot retrieve the mirrorlist or a mirror is down or broken. Now you can also specify a direct URL (see the commented baseurl= line). Try to remove the comment from baseurl and add a comment to mirrorlist, so that the first part of the file reads:
Code:

[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedora.redhat.com/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

Yum should connect to http://download.fedora.redhat.com/pu...thing/i386/os/ now, which is up and working.

sagar1karuna 09-24-2011 06:10 AM

Like that shall i do for debug and source also.

sagar1karuna 09-24-2011 06:11 AM

I changed that and I tried for yum. And the error is
[root@sagar Downloads]# yum groupinstall "Development Tools"
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
http://download.fedora.redhat.com/pu...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

colucix 09-24-2011 06:12 AM

Nope, the packages you need are from fedora repository, so that you don't really need debug and source, not to mention that they are not enabled by default (see enabled=0).

colucix 09-24-2011 06:21 AM

Quote:

Originally Posted by sagar1karuna (Post 4480920)
http://download.fedora.redhat.com/pu...ta/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

It looks like a network problem, now. Please try to download the repomd.xml file using wget:
Code:

wget http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/i386/os/repodata/repomd.xml
If it doesn't work, try
Code:

wget http://209.132.181.27/pub/fedora/linux/releases/14/Everything/i386/os/repodata/repomd.xml

sagar1karuna 09-24-2011 06:53 AM

Sir, i tried both the links. But first link was unreachable. Second link was getting connected but it shows the no route to host.

[root@sagar Downloads]# wget http://download.fedora.redhat.com/pu...ata/repomd.xml
--2011-09-24 17:19:35-- http://download.fedora.redhat.com/pu...ata/repomd.xml
Resolving download.fedora.redhat.com... failed: Name or service not known.
wget: unable to resolve host address “download.fedora.redhat.com”


Then the second link show as follows
[root@sagar Downloads]#wget http://209.132.181.27/pub/fedora/lin...ata/repomd.xml
--2011-09-24 17:20:30-- http://209.132.181.27/pub/fedora/lin...ata/repomd.xml
Connecting to 209.132.181.27:80... failed: No route to host.


All times are GMT -5. The time now is 06:40 PM.