Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
10-05-2007, 05:01 AM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Rep:
|
how to use ./configure
Hi everyone
i am trying to install gcc please help me ...........
my problem is this (when i give the following command )
[root@localhost gcc-2.95.2]# ./configure
Config.guess failed to determine the host type. You need to specify one.
Usage: configure [OPTIONS] [HOST]
Options: [defaults in brackets]
--prefix=MYDIR install into MYDIR [/usr/local]
--exec-prefix=MYDIR install host-dependent files into MYDIR [/usr/local]
--help print this message [normal config]
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [determined via config.guess]
--norecursion configure this directory only [recurse]
--program-prefix=FOO prepend FOO to installed program names [""]
--program-suffix=FOO append FOO to installed program names [""]
--program-transform-name=P transform installed names by sed pattern P [""]
--site=SITE configure with site-specific makefile for SITE
--srcdir=DIR find the sources in DIR [. or ..]
--target=TARGET configure for TARGET [TARGET=HOST]
--tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]
--nfp configure for software floating point [hard float]
--with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
--without-FOO package FOO is NOT available
--enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
--disable-FOO do not include feature FOO
Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.
[root@localhost gcc-2.95.2]# configure --prefix=MYDIR sparc-sunos
bash: configure: command not found
How can i overcome this problem ???????
|
|
|
10-05-2007, 05:06 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well there is no "problem".. you clearly typed "configure" not "./configure" the second time.
BUT...
if you are not sure what you are doing, then you shouldn't be doing that. you should have no reason to *ever* need to build gcc yourself, which suggests to me that you're trying to install somethign totally unrelated which is stating that gcc isn't installed and you're trying to move on from there. back up a *long* way, and don't even think about building your own compiler... instead stick to prebuilt binary pacakges, rpm, deb, etc... depending on what distro you are using. if you do have to buld somethign from source, then there will be developement binary packages that will allow you to obtain the relevant requirements for compilation without going anywhere near hwere you've ended up.
|
|
|
10-05-2007, 05:15 AM
|
#3
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
well there is no "problem".. you clearly typed "configure" not "./configure" the second time.
BUT...
if you are not sure what you are doing, then you shouldn't be doing that. you should have no reason to *ever* need to build gcc yourself, which suggests to me that you're trying to install somethign totally unrelated which is stating that gcc isn't installed and you're trying to move on from there. back up a *long* way, and don't even think about building your own compiler... instead stick to prebuilt binary pacakges, rpm, deb, etc... depending on what distro you are using. if you do have to buld somethign from source, then there will be developement binary packages that will allow you to obtain the relevant requirements for compilation without going anywhere near hwere you've ended up.
|
Hi !!!
Thanks for the suggestion.
But my problem is that i really don't have pre-installed gcc compiler. could you please tell me wherefrom i could get gcc in rpm package form or in binary form????
My operating system is redhat 5
thanks!!!
|
|
|
10-05-2007, 06:58 AM
|
#4
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Hi all
could anyone tell me that how to install public key
when i tried to install gcc it gave a warning
"Public key for gcc-2.7.2.3-11.i386.rpm is not installed"
please do me a favour..............
|
|
|
10-05-2007, 07:31 AM
|
#5
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by ajaytiwary
Hi all
could anyone tell me that how to install public key
when i tried to install gcc it gave a warning
"Public key for gcc-2.7.2.3-11.i386.rpm is not installed"
please do me a favour..............
|
First, we are not doing a favour: this is a voluntary organization to assist (sometimes) desperate linux users! Second, since you are running on Red Hat 5 (I assume RHEL5) I'd suggest to check the official documentation for these basic administrative tasks, for example here. Furthermore, the RPM stuff was introduced for the first time just from Red Hat (the acronym itself means Redhat Package Manager) so what better place?! Hope this will help.
|
|
|
10-06-2007, 05:38 AM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
First, we are not doing a favour: this is a voluntary organization to assist (sometimes) desperate linux users! Second, since you are running on Red Hat 5 (I assume RHEL5) I'd suggest to check the official documentation for these basic administrative tasks, for example here. Furthermore, the RPM stuff was introduced for the first time just from Red Hat (the acronym itself means Redhat Package Manager) so what better place?! Hope this will help.
|
sorry for delay and thanks for the link !!!!
but when i try this
# rpm --import /usr/share/rhn/RPM-GPG-KEY
error: /usr/share/rhn/RPM-GPG-KEY: import read failed(-1).
so, please tell me how can i import rhn gpg key???
and secondly this particular rpm package(/root/Desktop/gcc-2.7.2.3-11.i386. i dwnlded from rpm.pbone.net/ and finding its public key .........
thanks
|
|
|
10-06-2007, 07:18 AM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you do *NOT* want gcc 2.7.3... in your defenece though, i imagine you searched for redhat 5 gcc packages, and that is one, but it's for the OLD incarnation of redhat, and redhat 5.0 (as opposed to Redhat Enterprise 5.0) was around in 1998... their versions have been easily to seperate for a while, but when rhel 7 is out, this sort of confusion is going to happen more and more...
for now, don't download *anything*. everything you need *IS* on your distro cd's and if you only install from the media you can't go wrong. you'll have gcc3, or maybe gcc4 on the cd's, and not a trace of gcc2 at all.
|
|
|
10-06-2007, 07:29 AM
|
#8
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by acid_kewpie
you do *NOT* want gcc 2.7.3... in your defenece though, i imagine you searched for redhat 5 gcc packages, and that is one, but it's for the OLD incarnation of redhat, and redhat 5.0 (as opposed to Redhat Enterprise 5.0) was around in 1998...
|
acid_kewpie got the point! If you have a registered RHEL5, most likely you have an account on Red Hat Network, so you can first look for packages at the RHN website or use the Software Manager under the system administration tools in the Gnome menu, which will let to install packages either from the installation CDs and the network.
|
|
|
10-06-2007, 07:37 AM
|
#9
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
you do *NOT* want gcc 2.7.3... in your defenece though, i imagine you searched for redhat 5 gcc packages, and that is one, but it's for the OLD incarnation of redhat, and redhat 5.0 (as opposed to Redhat Enterprise 5.0) was around in 1998... their versions have been easily to seperate for a while, but when rhel 7 is out, this sort of confusion is going to happen more and more...
for now, don't download *anything*. everything you need *IS* on your distro cd's and if you only install from the media you can't go wrong. you'll have gcc3, or maybe gcc4 on the cd's, and not a trace of gcc2 at all.
|
Hi
thanks for the reply !!!
you are right, my distro is rhel 5 but it's a customized one and even a gcc compiler is not present in the cd .
when i tried gcc3 , gcc4 then it shew a lot of dependency problems so i chose gcc-2.7.2.3-11.i386.rpm and while installing it didn't show any dependency problem fortunately but asked for public key..
i had installed this package from rpm.pbone.net and now not finding it's public key ..........
so please show me a way........
thanks
|
|
|
10-06-2007, 07:59 AM
|
#10
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
acid_kewpie got the point! If you have a registered RHEL5, most likely you have an account on Red Hat Network, so you can first look for packages at the RHN website or use the Software Manager under the system administration tools in the Gnome menu, which will let to install packages either from the installation CDs and the network.
|
thanks for your reply
i don't have a rhn account and the installation cd which i have ,doesn,t contain gcc compiler.
waiting for your reply.........
thanks..
|
|
|
10-06-2007, 07:59 AM
|
#11
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
rpm.bone.net is a directory service for 3rd party repositories. Make a copy of the location of the rpm. The first parts of the address will be the location of the repository where you can search for the rpm key. If you restrict your search for Redhat EL5, you may find a repository that you can add as a source. Then installing packages like gcc should be a snap. Simply use your package manager.
|
|
|
10-06-2007, 08:03 AM
|
#12
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
use these http://mirror.newnanutilities.org/pu...tes/i386/RPMS/
and dependencies are there for a reason, you can't just try something else hoping it has none...
|
|
|
10-06-2007, 08:20 AM
|
#13
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
|
hi
when i tried this
[root@localhost Desktop]# rpm -Uvh gcc-4.1.1-52.el5.2.i386.rpm
warning: gcc-4.1.1-52.el5.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
cpp = 4.1.1-52.el5.2 is needed by gcc-4.1.1-52.el5.2.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.1-52.el5.2.i386
libgcc >= 4.1.1-52.el5.2 is needed by gcc-4.1.1-52.el5.2.i386
libgomp = 4.1.1-52.el5.2 is needed by gcc-4.1.1-52.el5.2.i386
libgomp.so.1 is needed by gcc-4.1.1-52.el5.2.i386
is this warning meaningful???
i want to ask that had there not been any dependency problem it would have installed or not ??????
|
|
|
10-06-2007, 09:13 AM
|
#14
|
LQ Newbie
Registered: Sep 2007
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by jschiwal
rpm.bone.net is a directory service for 3rd party repositories. Make a copy of the location of the rpm. The first parts of the address will be the location of the repository where you can search for the rpm key. If you restrict your search for Redhat EL5, you may find a repository that you can add as a source. Then installing packages like gcc should be a snap. Simply use your package manager.
|
hello
i tried to search the key there but couldn't find it......
where to search??????????
|
|
|
10-06-2007, 09:51 AM
|
#15
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
the warning is just that, a warning and you can ignore it.
pretty sure that rhel5 now uses yum as standard, so you *should* be able to use a centos repo file with rhel, as suggested here... http://www.linuxquestions.org/questi...-help.-577476/
if that approach works you can then just run "yum install gcc" and everything will automatically be taken care of (and you'll stop feeling so frustrated / lost etc...)
|
|
|
All times are GMT -5. The time now is 04:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|