LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-05-2007, 05:01 AM   #1
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Rep: Reputation: 15
Exclamation 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 ???????
 
Old 10-05-2007, 05:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 10-05-2007, 05:15 AM   #3
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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!!!
 
Old 10-05-2007, 06:58 AM   #4
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
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..............
 
Old 10-05-2007, 07:31 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by ajaytiwary View Post
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.
 
Old 10-06-2007, 05:38 AM   #6
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
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
 
Old 10-06-2007, 07:18 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 10-06-2007, 07:29 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 10-06-2007, 07:37 AM   #9
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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
 
Old 10-06-2007, 07:59 AM   #10
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
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..
 
Old 10-06-2007, 07:59 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 10-06-2007, 08:03 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 10-06-2007, 08:20 AM   #13
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
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...
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 ??????
 
Old 10-06-2007, 09:13 AM   #14
ajaytiwary
LQ Newbie
 
Registered: Sep 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
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??????????
 
Old 10-06-2007, 09:51 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 07:39 AM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 06:56 PM
[root@Linuxboy magicolor2430DL-1.1.0]# ./configure ./configure: No such file or ... anseK Mandriva 7 01-02-2006 05:21 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 11:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration