public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* installing gcc on a pc running Redhat Linux6.2
@ 2000-09-15 17:25 Michael Fothergill
  2000-09-15 17:32 ` Eric Christopher
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Fothergill @ 2000-09-15 17:25 UTC (permalink / raw)
  To: gcc

I ran the config.guess and the output was

i686-pc-linux-gnu.

What does this mean.

When I ran install the machine did a few things and seemed to run out of 
steam

The end of the installation went as follows:

cp: cannot create regular file `/usr/local/bin/#inst.21741#': Permission 
denied
chmod: /usr/local/bin/g++: No such file or directory
ln: /usr/local/bin/g++: No such file or directory
cp: cannot create regular file `/usr/local/bin/#inst.21775#': Permission 
denied
chmod: /usr/local/bin/c++filt: No such file or directory
make[1]: [c++.install-common] Error 1 (ignored)
case "c proto gcov CHILL c++ f77 java objc" in \
  *[fF]77*) touch /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77;; 
\
  *) rm -f /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77;; \
esac
touch: /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77: No such 
file or directory
make[1]: *** [f77.install-common] Error 1
make[1]: Leaving directory `/home/gcc/gcc-2.95.2/cccexec/gcc'
make: *** [install-gcc] Error 2
[mikef@redhat cccexec]$
[mikef@redhat cccexec]$

Do you think GCC installed correctly?  The configure and the build seemed to 
work OK.


How do I actually run the compiler (e.g. the Fortran compiler)
Whereabout in the documentation are the instructions?

If I compiled the ordinary GCC (which I did) (v.2.95.2 or whatever it is) do 
I get C++ C JAVA and Fortran.

How do I test it?

Michael Fothergill

How do I test it myself?

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: installing gcc on a pc running Redhat Linux6.2
  2000-09-15 17:25 installing gcc on a pc running Redhat Linux6.2 Michael Fothergill
@ 2000-09-15 17:32 ` Eric Christopher
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Christopher @ 2000-09-15 17:32 UTC (permalink / raw)
  To: Michael Fothergill; +Cc: gcc

Michael Fothergill wrote:
> 
> I ran the config.guess and the output was
> 
> i686-pc-linux-gnu.
> 
> What does this mean.
> 

It means that you are running on a 686 machine that is running some form
of linux.


> When I ran install the machine did a few things and seemed to run out of
> steam
> 
> The end of the installation went as follows:
>
> cp: cannot create regular file `/usr/local/bin/#inst.21741#': Permission
> denied
> chmod: /usr/local/bin/g++: No such file or directory
> ln: /usr/local/bin/g++: No such file or directory
> cp: cannot create regular file `/usr/local/bin/#inst.21775#': Permission
> denied
> chmod: /usr/local/bin/c++filt: No such file or directory
> make[1]: [c++.install-common] Error 1 (ignored)
> case "c proto gcov CHILL c++ f77 java objc" in \
>   *[fF]77*) touch /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77;;
> \
>   *) rm -f /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77;; \
> esac
> touch: /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/lang-f77: No such
> file or directory
> make[1]: *** [f77.install-common] Error 1
> make[1]: Leaving directory `/home/gcc/gcc-2.95.2/cccexec/gcc'
> make: *** [install-gcc] Error 2
> [mikef@redhat cccexec]$
> [mikef@redhat cccexec]$
> 
> Do you think GCC installed correctly?  The configure and the build seemed to
> work OK.
>

Definitely not.

You do not have write permission into /usr/local.  You need to do the
final install as root unless you specify a prefix where you can write.
 
> How do I actually run the compiler (e.g. the Fortran compiler)
> Whereabout in the documentation are the instructions?
>

Put the compiler in your path.  Run it :)  The documentation covers the
options available.  A simple command line would be:

gcc hello.c -o hello

and will produce an output (-o) executable called hello from the input
(c) file hello.c.
 
> 
> How do I test it?
> 

make check-gcc in the build directory.  But I think you just want to
make sure that it will work, in that case just compile something as
above.

-eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-09-15 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-15 17:25 installing gcc on a pc running Redhat Linux6.2 Michael Fothergill
2000-09-15 17:32 ` Eric Christopher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).