installing gcc on linux

installing gcc on linux

Post by pramod_ » Sun, 12 Jan 2003 03:31:02



Hi guys,

i need some help on installing gcc 3.2.1 on mandrake linux.

Well, i downloaded the whole source tarball. when run the ./configure
script i get a message like this :

-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess:
: command not found
./config.guess: line 68: syntax error near unexpected token `in
'
./config.guess: line 68: `  case $1 in
'
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.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

i tried moving to another directory and doing things like
/mnt/win_d/gcc/configure and then set the path to contain this
directory and all that, but it didn't work

pl. help.

thanx in advance.

 
 
 

installing gcc on linux

Post by Kasper Dupon » Sun, 12 Jan 2003 07:36:30



> Hi guys,

> i need some help on installing gcc 3.2.1 on mandrake linux.

I believe installing gcc from source can be quite tricky.
Obviously you need an older version of gcc already installed,
but then again not too old, because a too old version of gcc
might not be able to compile the new gcc.

Quote:

> Well, i downloaded the whole source tarball. when run the ./configure

What does that ./configure file look like? Does it have
proper permissions, does the interpreter exist, and does
the interpretet have proper permissions?

--
Kasper Dupont -- der bruger for meget tid p? usenet.

for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

 
 
 

installing gcc on linux

Post by Roger Leig » Mon, 13 Jan 2003 01:59:02



> i need some help on installing gcc 3.2.1 on mandrake linux.

This isn't really the group, but anyway...

Quote:> Well, i downloaded the whole source tarball. when run the ./configure
> script i get a message like this :
> ./config.guess:
> : command not found

Run ./config.guess, and see if it's giving the same error.  Do you
have uname(1) available?  config.guess needs that.  If you're
specifying --host and --target (as you implied), then there's no need
for configure to guess the triplet (because you've told it).  Can't
you build on the target machine?

--
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers

 
 
 

installing gcc on linux

Post by pramod_ » Tue, 14 Jan 2003 01:55:26


Well, its actually on a windows drive, 'coz I not able to connect to
the net on linux. and it does have all the permissions. ./config.guess
give something like

command not found: bad interpreter

thats about it. i'm getting uname and'll try if that works. until, if
you have any idea plz. . . .

 
 
 

installing gcc on linux

Post by Jirka Kosin » Tue, 14 Jan 2003 06:33:28



> Well, its actually on a windows drive, 'coz I not able to connect to
> the net on linux. and it does have all the permissions. ./config.guess
> give something like
> command not found: bad interpreter

I would bet that when tyou transfered the file through windows, that the
file has windws' end-of-line endings (CRLF). You must convert it to
Unix-like file (LF) to have the script work (use such tools as dos2unix,
or something similar).

--
JiKos.

 
 
 

installing gcc on linux

Post by Kasper Dupon » Tue, 14 Jan 2003 07:53:26



> Well, its actually on a windows drive,

That could explain everything.

Quote:> 'coz I not able to connect to the net on linux.

Huh? I never had that problem.

Quote:> and it does have all the permissions. ./config.guess
> give something like

> command not found: bad interpreter

What is the first line of config.guess?

The problem might be caused by the lack of exec
attribute on the filesystem, or perhaps that it
is mounted with the noexec option.

How do you mount this partition, and have you
tried compiling on another partition?

--
Kasper Dupont -- der bruger for meget tid p? usenet.

for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

 
 
 

1. RH6.0 - i386-glibc20-linux-gcc or i386-redhat-linux-gcc

I notice that the RH6.0 has two gcc compilers in

  /usr/bin/i386-glibc20-linux-gcc
  /usr/bin/i386-redhat-linux-gcc

and the default one is /usr/bin/i386-redhat-linux-gcc. Anyone
know what is different between them? Because I have found some
programs fail to be compiled using the redhat one but successful
if using /usr/bin/i386-glibc20-linux-gcc.

Thanks

david

2. MkLinux and 6100-Newer G3-240MHZ 1MB Cache

3. HOWTO build/install GCC 3.1 from SRPM w/o replacing GCC 2.96 ?

4. wvdial works, kppp doesn't !

5. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux

6. Automatic add some headers

7. How can I completely replace gcc installed by default with new gcc-3.2?

8. Dns Server and Hosting?

9. Install gcc without gcc

10. After installing gcc-2.7.0, all make, gcc, etc stop working!

11. GCC Install (was Glibc2 install)

12. Installing the gcc 2.4.5 binaries with Cygnus already installed, HELP

13. Problem Installing Linux Kernel Module compiled with gcc-3.2.x