public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* installing gcc
@ 2005-04-04 17:05 community help
  0 siblings, 0 replies; 30+ messages in thread
From: community help @ 2005-04-04 17:05 UTC (permalink / raw)
  To: gcc-help

Hi,

I have mandrake 10.0 running on my pc and i have no
CDs for installing gcc. Now i want to download it and
install it. I am asking for the simplest way of doing
this. An url describing in detail what i should do
will be surely of great help. I'm new to Linux so the
more detailed the document more better.

Thank you


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

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

* RE: installing GCC
  2009-03-09 18:05         ` Andrew Haley
  2009-03-10  7:28           ` Florent DEFAY
@ 2009-03-10 12:26           ` Atwood, Robert C
  1 sibling, 0 replies; 30+ messages in thread
From: Atwood, Robert C @ 2009-03-10 12:26 UTC (permalink / raw)
  To: Andrew Haley, dan hitt; +Cc: e-karim, gcc-help

I thought the OP simply did not realize that a C compiler is necessary
to build the gcc!
 
I think the OP might find that other packages that are required might
also be missing in a CD-sized distribution, and hopefully this project's
Prerequisites page is up-to-date and inclusive enough.
 

http://gcc.gnu.org/install/prerequisites.html 

(it does mention that a C compiler is necessary,  and gives some more
detail about which type of C compiler, I see) 

Indeed though I'm not really  a newbie anymore to the variosu
distributions, having used several, I still find it sometimes confusing
to figure out what the name of the PACKAGE that contains a certain
program or utility actually is, especailly when several utilities are
rolled into one package (like "build-essential").

But, most distros have some sort of package searching web utility. 

Debian and friends (no doubt including Ubuntu) have an 'apt-get
build-dep' and, probably, issuing (as root or via sudo) 'apt-get
build-essential' and  'apt-get build-dep gcc' should pull all the
necessary tools to build the version of gcc that is included in the
distro. If these dependencies differ between that version and the one
the user is actually trying to build, then the user must address these
differences.

I've been using plain Debian but also pure:dyne (debian-derived cd or
usb live distro for music and visual art) and indeed gcc got left off
that one though it is nto clear to me if that was intentional or not!  (
a recent pre-release had a BROKEN gcc due to incomplete or incorrect
dependency specifications, for example) 
 

 

 





> -----Original Message-----
> From: Andrew Haley [mailto:aph@redhat.com] 
> Sent: 09 March 2009 18:06
> To: dan hitt
> Cc: Atwood, Robert C; e-karim; gcc-help@gcc.gnu.org
> Subject: Re: installing GCC
> 
> dan hitt wrote:
> > Hi Robert,
> > 
> > I think the issue is that for somebody new to ubuntu, it is
> > very, very surprising that there's no compiler.  It certainly
> > was to me.
> > 
> > And the answer to your reasonable question can be either:
> > (1) that whoever is doing it does not yet know the
> >  command sequence
> >          sudo apt-get install gcc
> 
> Or (for newbies, OK)
> 
> System>Administration>Synaptic Package Manager
> 
> Click the package "gcc" and "mark for installation".
> 
> > (2) that whoever is doing it has a lousy internet connection, so
> > that these apt-get commands take so long they are not really
> > feasible.
> > 
> > (And even though this is getting afield from gcc, ubuntu is free
> > software, and it is popular, so it comes up.)
> 
> Yeah, and Ubuntu comes as standard with a very cut-down 
> installer that'll
> fit on a CDR, so you have to install most packages 
> afterwards.  At least,
> it's only a CD image that I see on their getubuntu page.
> 
> Andrew.
> 

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

* Re: installing GCC
  2009-03-09 18:05         ` Andrew Haley
@ 2009-03-10  7:28           ` Florent DEFAY
  2009-03-10 12:26           ` Atwood, Robert C
  1 sibling, 0 replies; 30+ messages in thread
From: Florent DEFAY @ 2009-03-10  7:28 UTC (permalink / raw)
  To: gcc-help

The desktop CD of Ubuntu contains the package build-essential.

While having the CD in the CD drive, open a terminal and

sudo apt-get install build-essential

This will install GCC for many languages (C, C++, ...) and other
essential tools (make, ...) to build programs.

Florent

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

* Re: installing GCC
  2009-03-09 17:39       ` dan hitt
@ 2009-03-09 18:05         ` Andrew Haley
  2009-03-10  7:28           ` Florent DEFAY
  2009-03-10 12:26           ` Atwood, Robert C
  0 siblings, 2 replies; 30+ messages in thread
From: Andrew Haley @ 2009-03-09 18:05 UTC (permalink / raw)
  To: dan hitt; +Cc: Atwood, Robert C, e-karim, gcc-help

dan hitt wrote:
> Hi Robert,
> 
> I think the issue is that for somebody new to ubuntu, it is
> very, very surprising that there's no compiler.  It certainly
> was to me.
> 
> And the answer to your reasonable question can be either:
> (1) that whoever is doing it does not yet know the
>  command sequence
>          sudo apt-get install gcc

Or (for newbies, OK)

System>Administration>Synaptic Package Manager

Click the package "gcc" and "mark for installation".

> (2) that whoever is doing it has a lousy internet connection, so
> that these apt-get commands take so long they are not really
> feasible.
> 
> (And even though this is getting afield from gcc, ubuntu is free
> software, and it is popular, so it comes up.)

Yeah, and Ubuntu comes as standard with a very cut-down installer that'll
fit on a CDR, so you have to install most packages afterwards.  At least,
it's only a CD image that I see on their getubuntu page.

Andrew.

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

* Re: installing GCC
  2009-03-09 16:54     ` Atwood, Robert C
@ 2009-03-09 17:39       ` dan hitt
  2009-03-09 18:05         ` Andrew Haley
  0 siblings, 1 reply; 30+ messages in thread
From: dan hitt @ 2009-03-09 17:39 UTC (permalink / raw)
  To: Atwood, Robert C; +Cc: e-karim, gcc-help

Hi Robert,

I think the issue is that for somebody new to ubuntu, it is
very, very surprising that there's no compiler.  It certainly
was to me.

And the answer to your reasonable question can be either:
(1) that whoever is doing it does not yet know the
 command sequence
         sudo apt-get install gcc
(2) that whoever is doing it has a lousy internet connection, so
that these apt-get commands take so long they are not really
feasible.

(And even though this is getting afield from gcc, ubuntu is free
software, and it is popular, so it comes up.)

dan

dan

On Mon, Mar 9, 2009 at 9:52 AM, Atwood, Robert C
<r.atwood@imperial.ac.uk> wrote:
> Exactly why don't you install via apt-get gcc ???
>
>
> You need gcc (or some C compiler)  to build gcc!
> If it's not installed, you cannot build anything from source
>
>  Then once you've built the source version you could  remove the default
> one.
>
>
>
>
>> -----Original Message-----
>> From: gcc-help-owner@gcc.gnu.org
>> [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of e-karim
>> Sent: 08 March 2009 23:21
>> To: gcc-help@gcc.gnu.org
>> Subject: Re: installing GCC
>>
>>
>> thank for your answer, but it seems like if there is no gcc
>> pre-built on my
>> system , cause when i do (gcc -v) ubuntu asks me to apt-get
>> gcc, but my aim
>> si to install it from sources, and when i try it i get this error (no
>> acceptable C compiler found in $PATH) and when i try to find gcc on my
>> system by (find / -name gcc) i got this directory
>> (/usr/lib/gcc) i add it to
>> my path, but no result.
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/installing-GCC-tp22404231p22404413.html
>> Sent from the gcc - Help mailing list archive at Nabble.com.
>>
>>
>

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

* RE: installing GCC
  2009-03-08 23:21   ` e-karim
  2009-03-09  0:52     ` Tim Prince
@ 2009-03-09 16:54     ` Atwood, Robert C
  2009-03-09 17:39       ` dan hitt
  1 sibling, 1 reply; 30+ messages in thread
From: Atwood, Robert C @ 2009-03-09 16:54 UTC (permalink / raw)
  To: e-karim, gcc-help

Exactly why don't you install via apt-get gcc ???


You need gcc (or some C compiler)  to build gcc!
If it's not installed, you cannot build anything from source

 Then once you've built the source version you could  remove the default
one.




> -----Original Message-----
> From: gcc-help-owner@gcc.gnu.org 
> [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of e-karim
> Sent: 08 March 2009 23:21
> To: gcc-help@gcc.gnu.org
> Subject: Re: installing GCC
> 
> 
> thank for your answer, but it seems like if there is no gcc 
> pre-built on my
> system , cause when i do (gcc -v) ubuntu asks me to apt-get 
> gcc, but my aim
> si to install it from sources, and when i try it i get this error (no
> acceptable C compiler found in $PATH) and when i try to find gcc on my
> system by (find / -name gcc) i got this directory 
> (/usr/lib/gcc) i add it to
> my path, but no result.
> 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/installing-GCC-tp22404231p22404413.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
> 
> 

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

* Re: installing GCC
  2009-03-09  0:52     ` Tim Prince
@ 2009-03-09  9:27       ` julian liu
  0 siblings, 0 replies; 30+ messages in thread
From: julian liu @ 2009-03-09  9:27 UTC (permalink / raw)
  To: gcc-help; +Cc: tprince

Ubuntu seems to have the problem complained by e-karim.
I met the same problem some days before.
Why not just use Fedora(8, i recommend) instead?

On Sun, 08 Mar 2009 17:52:03 -0700
Tim Prince <TimothyPrince@sbcglobal.net> wrote:

> e-karim wrote:
> > thank for your answer, but it seems like if there is no gcc
> > pre-built on my system , 
> 
> The point is that you must select the optional gcc installation.  It's
> difficult to believe there isn't such an option.  After all, others
> are using Ubuntu, in spite of its defects.  Maybe you should go to an
> Ubuntu help forum.
> 
> 


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

* Re: installing GCC
  2009-03-08 23:21   ` e-karim
@ 2009-03-09  0:52     ` Tim Prince
  2009-03-09  9:27       ` julian liu
  2009-03-09 16:54     ` Atwood, Robert C
  1 sibling, 1 reply; 30+ messages in thread
From: Tim Prince @ 2009-03-09  0:52 UTC (permalink / raw)
  To: e-karim; +Cc: gcc-help

e-karim wrote:
> thank for your answer, but it seems like if there is no gcc pre-built on my
> system , 

The point is that you must select the optional gcc installation.  It's
difficult to believe there isn't such an option.  After all, others are
using Ubuntu, in spite of its defects.  Maybe you should go to an Ubuntu
help forum.

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

* Re: installing GCC
  2009-03-08 23:08 ` Tim Prince
  2009-03-08 23:18   ` e-karim
@ 2009-03-08 23:21   ` e-karim
  2009-03-09  0:52     ` Tim Prince
  2009-03-09 16:54     ` Atwood, Robert C
  1 sibling, 2 replies; 30+ messages in thread
From: e-karim @ 2009-03-08 23:21 UTC (permalink / raw)
  To: gcc-help


thank for your answer, but it seems like if there is no gcc pre-built on my
system , cause when i do (gcc -v) ubuntu asks me to apt-get gcc, but my aim
si to install it from sources, and when i try it i get this error (no
acceptable C compiler found in $PATH) and when i try to find gcc on my
system by (find / -name gcc) i got this directory (/usr/lib/gcc) i add it to
my path, but no result.



-- 
View this message in context: http://www.nabble.com/installing-GCC-tp22404231p22404413.html
Sent from the gcc - Help mailing list archive at Nabble.com.

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

* Re: installing GCC
  2009-03-08 23:08 ` Tim Prince
@ 2009-03-08 23:18   ` e-karim
  2009-03-08 23:21   ` e-karim
  1 sibling, 0 replies; 30+ messages in thread
From: e-karim @ 2009-03-08 23:18 UTC (permalink / raw)
  To: gcc-help


thank for your answer, but it seems like if there is no gcc pre-built on my
system , cause when i do (gcc -v) ubuntu asks me to apt-get gcc, but my aim
si to install it from sources, and when i try it i get this error (no
acceptable C compiler found in $PATH) and when i try to find gcc on my
system by (find / -name gcc) i got this directory (/usr/lib/gcc) i add it to
my path, but no result.



Tim Prince-3 wrote:
> 
> e-karim wrote:
> 
> Ubuntu should have an optional pre-built gcc development system, which you
> will need.  For Ubuntu x86_64, you would need gcc source recent enough to
> recognized the odd directory setup.
> 
> 

-- 
View this message in context: http://www.nabble.com/installing-GCC-tp22404231p22404383.html
Sent from the gcc - Help mailing list archive at Nabble.com.

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

* Re: installing GCC
  2009-03-08 23:05 installing GCC e-karim
@ 2009-03-08 23:08 ` Tim Prince
  2009-03-08 23:18   ` e-karim
  2009-03-08 23:21   ` e-karim
  0 siblings, 2 replies; 30+ messages in thread
From: Tim Prince @ 2009-03-08 23:08 UTC (permalink / raw)
  To: e-karim; +Cc: gcc-help

e-karim wrote:

Ubuntu should have an optional pre-built gcc development system, which you
will need.  For Ubuntu x86_64, you would need gcc source recent enough to
recognized the odd directory setup.

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

* installing GCC
@ 2009-03-08 23:05 e-karim
  2009-03-08 23:08 ` Tim Prince
  0 siblings, 1 reply; 30+ messages in thread
From: e-karim @ 2009-03-08 23:05 UTC (permalink / raw)
  To: gcc-help


Hi!
I'm trying to install gcc from sources on ubuntu 8.10, while trying to
configure (./configure) Ubuntu tells me that gcc don't find the C compiler,
now my question is what is the default C compiler coming with ubuntu ?
and how can i process the installation from sources?

thank u!
-- 
View this message in context: http://www.nabble.com/installing-GCC-tp22404231p22404231.html
Sent from the gcc - Help mailing list archive at Nabble.com.

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

* Re: installing gcc
  2006-11-18 21:06 installing gcc lachlanp
@ 2006-11-18 21:42 ` Artūras Moskvinas
  0 siblings, 0 replies; 30+ messages in thread
From: Artūras Moskvinas @ 2006-11-18 21:42 UTC (permalink / raw)
  To: lachlanp; +Cc: gcc-help


> I have never used Gcc before and I am trying to install it on Windows XP and
> having problems understanding the process
> 
> I have downloaded the source files for V4.1.1 and I refer to the directory it
> creates.
> 
> The installation notes seem to state I should do a configuration like
> ?configure --prefix=C:\gccwin? to set the object directory to gccwin (the
> name of the directoy I have chosen). There is a file called configure but this
> is not an executable file so this process does not work. I tried this throug
> the DOS window.

You should install cygwin or mingw (or better use those compilers
included in those packages). (http://www.cygwin.com/ or www.mingw.org/)
configure is not an executable file, it is shell script (something like
.bat files in windows but on steroids).
> I understand the next thing to do is to ?make boostrap? but again there is
> no executable file called ?make?.
http://en.wikipedia.org/wiki/Make
All needed packages, should be installed by cygwin or mingw (whichever
you choose)
> Can you point me in the correct direction to start this process of building a
> native Gcc complier before I build a cross complier. I have read all the
> install instructions but cant comprehned them.

Just my thoughts, use some virtualization application to load linux (or
 BSD variants) under the windows and cross compile there (you'll find
free for windows from Microsoft or VMware).


Arturas M.

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

* installing gcc
@ 2006-11-18 21:06 lachlanp
  2006-11-18 21:42 ` Artūras Moskvinas
  0 siblings, 1 reply; 30+ messages in thread
From: lachlanp @ 2006-11-18 21:06 UTC (permalink / raw)
  To: gcc-help

I have never used Gcc before and I am trying to install it on Windows XP and
having problems understanding the process

I have downloaded the source files for V4.1.1 and I refer to the directory it
creates.

The installation notes seem to state I should do a configuration like
?configure --prefix=C:\gccwin? to set the object directory to gccwin (the
name of the directoy I have chosen). There is a file called configure but this
is not an executable file so this process does not work. I tried this throug
the DOS window.

I understand the next thing to do is to ?make boostrap? but again there is
no executable file called ?make?.

Can you point me in the correct direction to start this process of building a
native Gcc complier before I build a cross complier. I have read all the
install instructions but cant comprehned them.

Thanks

Lachlan


--------------------------------------------------
This message was sent using Adam Internet Webmail.

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

* Re: Installing gcc
  2006-06-20  9:52 ` Brian Dessent
@ 2006-06-21  8:25   ` Gunnar Sjoo
  0 siblings, 0 replies; 30+ messages in thread
From: Gunnar Sjoo @ 2006-06-21  8:25 UTC (permalink / raw)
  To: gcc-help

tisdagen den 20 juni 2006 11.52 skrev du:
> Gunnar Sjoo wrote:
> > Can anybody tell me how to install gcc? The instructions from gcc.gnu.org
> > are absolutely impossible for me to understand. My operative system is
> > Mandrake Linux 10.1
>
> The instructions on the gcc web page are for building gcc from source.
> The vast majority of users do not need to do this because their
> distribution/OS vendor includes gcc binary packages.  For Mandrake you
> should be able to just type something like "urpmi gcc" and be done with
> it.  There also might be a GUI package selection tool that you could
> use, I don't know.  Regardless, you run whatever it is your distro uses
> to install packages and just select the gcc package.
>
> Note that packages are usually modular by language, so if you want more
> than just the C compiler you may have to also select e.g. "gcc-c++",
> "gcc-java", etc. in addition to the main gcc package.
>
> These steps for installing packages are not listed on the gcc.gnu.org
> website (nor could they be) because the details of how to do this varies
> with each platform/distro, and there are literally hundreds of distros
> out there in the wild.  It would be impossible to cover all of them, and
> besides, the gcc project (and/or the FSF) have no control over these
> packages, they are created by third parties.
>
> Brian

Thank you for your rapid answer. I tried to type "urpmi gcc", but the 
computer's reply was "command not found". Regrettably, the rest of your 
instructions were too advanced to me, I don't know what a "binary package" is 
and how it works, the same goes for "GUI package selection tool".
      Probably "distro" means "distribution", but what my distribution uses to 
install packages I don't know and I don't know how to find out.
      From the end of your letter I realize that it will be impossible for me 
to install gcc - all that remains is to throw in the towel.

Yours sincerely
Gunnar Sjoo
      
>
>
> --
> -----    PROMOCJA - 180 dni gratis!    -----
>    12GB powierzhchni, konta e-mail b.o.,
>  transfer az 600 GB.     http://www.alpha.pl
> --------------------------------------------


--
-----    PROMOCJA - 180 dni gratis!    -----
   12GB powierzhchni, konta e-mail b.o.,
 transfer az 600 GB.     http://www.alpha.pl
--------------------------------------------


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

* Re: Installing gcc
  2006-06-20  9:14 Installing gcc Gunnar Sjoo
  2006-06-20  9:42 ` Kai Ruottu
@ 2006-06-20  9:52 ` Brian Dessent
  2006-06-21  8:25   ` Gunnar Sjoo
  1 sibling, 1 reply; 30+ messages in thread
From: Brian Dessent @ 2006-06-20  9:52 UTC (permalink / raw)
  To: Gunnar Sjoo, gcc-help

Gunnar Sjoo wrote:

> Can anybody tell me how to install gcc? The instructions from gcc.gnu.org are
> absolutely impossible for me to understand. My operative system is Mandrake
> Linux 10.1

The instructions on the gcc web page are for building gcc from source. 
The vast majority of users do not need to do this because their
distribution/OS vendor includes gcc binary packages.  For Mandrake you
should be able to just type something like "urpmi gcc" and be done with
it.  There also might be a GUI package selection tool that you could
use, I don't know.  Regardless, you run whatever it is your distro uses
to install packages and just select the gcc package.

Note that packages are usually modular by language, so if you want more
than just the C compiler you may have to also select e.g. "gcc-c++",
"gcc-java", etc. in addition to the main gcc package.

These steps for installing packages are not listed on the gcc.gnu.org
website (nor could they be) because the details of how to do this varies
with each platform/distro, and there are literally hundreds of distros
out there in the wild.  It would be impossible to cover all of them, and
besides, the gcc project (and/or the FSF) have no control over these
packages, they are created by third parties.

Brian

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

* Re: Installing gcc
  2006-06-20  9:14 Installing gcc Gunnar Sjoo
@ 2006-06-20  9:42 ` Kai Ruottu
  2006-06-20  9:52 ` Brian Dessent
  1 sibling, 0 replies; 30+ messages in thread
From: Kai Ruottu @ 2006-06-20  9:42 UTC (permalink / raw)
  To: Gunnar Sjoo; +Cc: gcc-help

Gunnar Sjoo kirjoitti:
> Can anybody tell me how to install gcc? The instructions from gcc.gnu.org are 
> absolutely impossible for me to understand. My operative system is Mandrake 
> Linux 10.1
>   
 As the matter of fact the FSF "install" can mean "build"  or  "producing
from sources"...  This then comes from the assumption  about everyone
wanting to build from sources, never "installing" any binaries!  So every
person wanting Linux of course produces it from its pristine sources! And
never uses anything like your "Mandrake Linux 10.1", that is right from
the ass because it means installing prebuilt binaries!

 After reading the previous you should understand what the basic idea is!

 Ok, for all sanity it could be expected that "GCC for Linux" could be 
something
like "Mozilla Firefox for Linux", something which should work on every Linux
which meets the minimum specifications like "having glibc-2.2".  Or the C
library could come with the GCC, partly duplicating what people have in 
their
'/lib' and '/usr/lib' as "runtime libraries"...  Unfortunately this 
hasn't been the
case but every Linux distro comes with its own "custom" GCC, called "native
GCC", which cannot easily be copied from a Linux to another Linux....

 So your best choice is to try find all the available "GCC" RPMS for 
Mandrake
and install one of these using the 'rpm' package manager....

> Botelgubben
>
>
> --
> -----    PROMOCJA - 180 dni gratis!    -----
>    12GB powierzhchni, konta e-mail b.o.,
>  transfer az 600 GB.     http://www.alpha.pl
> --------------------------------------------
>
>
>
>
>   

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

* Installing gcc
@ 2006-06-20  9:14 Gunnar Sjoo
  2006-06-20  9:42 ` Kai Ruottu
  2006-06-20  9:52 ` Brian Dessent
  0 siblings, 2 replies; 30+ messages in thread
From: Gunnar Sjoo @ 2006-06-20  9:14 UTC (permalink / raw)
  To: gcc-help

Can anybody tell me how to install gcc? The instructions from gcc.gnu.org are 
absolutely impossible for me to understand. My operative system is Mandrake 
Linux 10.1

Botelgubben


--
-----    PROMOCJA - 180 dni gratis!    -----
   12GB powierzhchni, konta e-mail b.o.,
 transfer az 600 GB.     http://www.alpha.pl
--------------------------------------------


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

* Installing gcc
@ 2005-08-12 22:50 Mario DeMiguel
  0 siblings, 0 replies; 30+ messages in thread
From: Mario DeMiguel @ 2005-08-12 22:50 UTC (permalink / raw)
  To: gcc-help

Hi, I hope you can help me with a very embarassing question.  I only
have experience installing programs in Linux using package managers
and auto-update utilities.  I want to install gcc 3.2.3, but I can
only find the *.gz and *.bz2 files.  What do I do with all of these
files?
 
How can I find out where the version of gcc I already have installed
is so I can install these files in the same place?  Do I really need
to use gzip on each of these files?  Thank you for your time!
 
Regards,
Mario DeMiguel

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

* Re: Installing gcc
@ 2005-08-05  1:18 Nelson H. F. Beebe
  0 siblings, 0 replies; 30+ messages in thread
From: Nelson H. F. Beebe @ 2005-08-05  1:18 UTC (permalink / raw)
  To: Dan Falabella; +Cc: beebe, gcc-help

Dan Falabella <danf@sun2.albright.edu> asks on Thu, 4 Aug 2005
20:59:15 -0400 (EDT) about bootstrapping a build of gcc onto a Sun
Solaris 9 system where there is no C compiler installed yet.

There are a couple of ways to deal with this: Sun now has a fair
amount of free software tools that get installed in /usr/sfw/bin and
/opt/sfw/bin, among them, gcc.  You can find the needed links at

	http://www.sun.com/software/solaris/freeware/
	http://solaris-x86.org/software/freeware.mhtml
	ftp://x86.cs.duke.edu/pub/solaris-x86/bins/index.html

There are versions available for both Solaris 9 and 10; I don't have
any installed on our Solaris 7 or 8 systems.

A second way is to get a prebuilt gcc binary distribution from the
Solaris package archive at

	http://www.ibiblio.org/pub/packages/solaris/sparc/

Once you have a fairly recent gcc installed, you MIGHT be able to use
it to build a newer version of gcc.  I've done hundreds of such builds
of the 3.x and 4.x series on 20+ flavors of Unix, and frankly, I'm
very disappointed in the success rate, which is far poorer than it was
with the 2.9x series.  On my Solaris 9 SPARC systems, I have gcc-3.3
installed. On Solaris 10 SPARC, gcc-3.3.6, and Solaris 10 x86, gcc-3.3

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe@math.utah.edu  -
- 155 S 1400 E RM 233                       beebe@acm.org  beebe@computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

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

* Installing gcc
@ 2005-08-05  0:58 Dan Falabella
  0 siblings, 0 replies; 30+ messages in thread
From: Dan Falabella @ 2005-08-05  0:58 UTC (permalink / raw)
  To: gcc-help

 
 Hello,
 
  
 
             I am having trouble installing gcc on my Solaris 9 system. When
 I read the installation instructions, they state that one must designate the
 CC compiler in order for the configuration to work properly. I know that the
 " /usr/ucb/cc: language optional software package not installed " is an
 expected error message since there is no compiler installed with the Solaris
 system, but how does one get around it? In other words, in trying to build
 the gcc compiler I am being asked to supply a compiler. I realize that this
 has probably been asked many times in the past, but any suggestions as to
 how to complete the install would be greatly appreciated.
 
  
 
             Thank you for your time.
 
  
 
 DF

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

* installing gcc
@ 2005-04-13 16:12 community help
  0 siblings, 0 replies; 30+ messages in thread
From: community help @ 2005-04-13 16:12 UTC (permalink / raw)
  To: gcc-help

Hi,

I've just installed gcc3.3.2 in mandrake 10.0. I used
the binary available at gcc.gnu.org.
There is docs about building from sources but not
about installing from binary. Any way during the
installation process i had no error messages. I just
to know how to use gcc now.
i added to the .bash_profile os user but it does not
work. Please tell me how to do in detail what to do as
i'm not very familiar with linux.

Thanks


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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

* installing gcc
@ 2003-01-24 14:43 Woelfle Bernd ZFF TR-W
  0 siblings, 0 replies; 30+ messages in thread
From: Woelfle Bernd ZFF TR-W @ 2003-01-24 14:43 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

hello,

I tried to compile my first example and get the following error:

In file included from myfile.cpp:1:
c:/djgpp/lang/cxx/3.21/iostream:44:28: bits/c++config.h: No such file or
directo
ry (ENOENT)
In file included from c:/djgpp/lang/cxx/3.21/ios:44,
                 from c:/djgpp/lang/cxx/3.21/ostream:45,
                 from c:/djgpp/lang/cxx/3.21/iostream:45,
                 from myfile.cpp:1:

The file exists and I don't know why the compiler can't find it.
It would be nice if you could help me. Thank you.

kind regards

bernd woelfle

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

* Re: Installing GCC
  2001-08-21  7:44 Installing GCC Amy Roberts
@ 2001-08-22  0:29 ` Alexandre Oliva
  0 siblings, 0 replies; 30+ messages in thread
From: Alexandre Oliva @ 2001-08-22  0:29 UTC (permalink / raw)
  To: Amy Roberts; +Cc: gcc-help

On Aug 21, 2001, Amy Roberts <amy.j.roberts@excite.com> wrote:

> Apparently the compiler which is a C++ compiler does not like the C style
> function declarations. such as the one above. Is there a way to get around
> this?

You need a C compiler to build GCC.  If you don't have one, you may
need to get a pre-compiled GCC to bootstrap.  There are links to
providers of pre-compiled versions of GCC at gcc.gnu.org.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Installing GCC
@ 2001-08-21  7:44 Amy Roberts
  2001-08-22  0:29 ` Alexandre Oliva
  0 siblings, 1 reply; 30+ messages in thread
From: Amy Roberts @ 2001-08-21  7:44 UTC (permalink / raw)
  To: gcc-help

I tried to build gcc on my company's Solaris 2.6 machine. It seems like the
code is incompatible with the Sun compiler. The result is shown below. The
same result was obtained no matter what version of gcc was used. What is odd
is that when I run the configure script it says that it is indeed
configuring for host Solaris 2.6. 



make[1]: Entering directory `/gcc-2.95/libiberty' 
test x"no" != xyes || \ 
cc -c -DHAVE_CONFIG_H -g -I. -I./../include   argv.c -o pic/argv.o 
cc -c -DHAVE_CONFIG_H -g -I. -I./../include  argv.c 
"argv.c", line 97: Error: argv is not defined. 
"argv.c", line 103: Warning: The variable argv has not yet been 
assigned a value. 
"argv.c", line 116: Error: Cannot assign void* to char*. 
"argv.c", line 122: Error: The function "strcpy" must have a prototype. 


And the compiler error occurs on this segment in argv.c with line 97 being
the line that contains the fuction name: dupargv (argv) 
I do know that my compiler does not support this declaration style in
general. 


char ** 
dupargv (argv) 
   char **argv; 
{ 
int argc; 
char **copy; 

if (argv == NULL) 
  return NULL; 

/* the vector */ 
for (argc = 0; argv[argc] != NULL; argc++); 
copy = (char **) malloc ((argc + 1) * sizeof (char *)); 
if (copy == NULL) 
  return NULL; 

/* the strings */ 
for (argc = 0; argv[argc] != NULL; argc++) 
  { 
    int len = strlen (argv[argc]); 
    copy[argc] = malloc (sizeof (char *) * (len + 1)); 
    if (copy[argc] == NULL) 
      { 
        freeargv (copy); 
        return NULL; 
      } 
    strcpy (copy[argc], argv[argc]); 
  } 
copy[argc] = NULL; 
return copy; 
} 

Apparently the compiler which is a C++ compiler does not like the C style
function declarations. such as the one above. Is there a way to get around
this?









_______________________________________________________
http://inbox.excite.com


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

* Re: installing gcc
  2000-12-01 14:14     ` Alexandre Oliva
@ 2000-12-01 23:10       ` Yung Kwong Wing
  0 siblings, 0 replies; 30+ messages in thread
From: Yung Kwong Wing @ 2000-12-01 23:10 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: help-gcc

Thanks.  Oh now I have finally found the make program on my RedHat 6.2
CD-ROM.  It comes in a RPM, make-3.78.1-4.i386.rpm.   I have installed the
"make" rpm and have also installed egcs-1.1.2-30.i386.rpm and it have
managed to create the Makefiles necessary for first step of Apache 1.3.6
installation.

Thanks for all of your help.

Now I just hope I can finish the compilation, and installation parts of
Apache. 

Peter


On 1 Dec 2000, Alexandre Oliva wrote:

> On Dec  1, 2000, Yung Kwong Wing <yungp@netvigator.com> wrote:
> 
> > thanks for your answer.  But may I ask how do I get the "make" program?
> 
> It's usually part of a ``development'' installation of most operating
> systems, but you can always get GNU make from
> ftp://ftp.gnu.org/pub/gnu/make
> 
> AFAIK, it doesn't need another `make' to build, there's a fallback
> shell-script somewhere in the distribution.
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me
> 
> 

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

* Re: installing gcc
  2000-12-01  7:24   ` Yung Kwong Wing
@ 2000-12-01 14:14     ` Alexandre Oliva
  2000-12-01 23:10       ` Yung Kwong Wing
  0 siblings, 1 reply; 30+ messages in thread
From: Alexandre Oliva @ 2000-12-01 14:14 UTC (permalink / raw)
  To: Yung Kwong Wing; +Cc: help-gcc

On Dec  1, 2000, Yung Kwong Wing <yungp@netvigator.com> wrote:

> thanks for your answer.  But may I ask how do I get the "make" program?

It's usually part of a ``development'' installation of most operating
systems, but you can always get GNU make from
ftp://ftp.gnu.org/pub/gnu/make

AFAIK, it doesn't need another `make' to build, there's a fallback
shell-script somewhere in the distribution.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: installing gcc
  2000-11-30  5:09 ` Alexandre Oliva
@ 2000-12-01  7:24   ` Yung Kwong Wing
  2000-12-01 14:14     ` Alexandre Oliva
  0 siblings, 1 reply; 30+ messages in thread
From: Yung Kwong Wing @ 2000-12-01  7:24 UTC (permalink / raw)
  To: Alexandre Oliva; +Cc: help-gcc

thanks for your answer.  But may I ask how do I get the "make" program?

Peter


On 30 Nov 2000, Alexandre Oliva wrote:

> On Nov 29, 2000, Yung Kwong Wing <yungp@netvigator.com> wrote:
> 
> > ./helpers/TestCompile: make: command not found
> 
> Apparently, you don't have a `make' program.  It's not part of GCC.
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me
> 
> 

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

* Re: installing gcc
  2000-11-29  7:18 installing gcc Yung Kwong Wing
@ 2000-11-30  5:09 ` Alexandre Oliva
  2000-12-01  7:24   ` Yung Kwong Wing
  0 siblings, 1 reply; 30+ messages in thread
From: Alexandre Oliva @ 2000-11-30  5:09 UTC (permalink / raw)
  To: Yung Kwong Wing; +Cc: help-gcc

On Nov 29, 2000, Yung Kwong Wing <yungp@netvigator.com> wrote:

> ./helpers/TestCompile: make: command not found

Apparently, you don't have a `make' program.  It's not part of GCC.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* installing gcc
@ 2000-11-29  7:18 Yung Kwong Wing
  2000-11-30  5:09 ` Alexandre Oliva
  0 siblings, 1 reply; 30+ messages in thread
From: Yung Kwong Wing @ 2000-11-29  7:18 UTC (permalink / raw)
  To: help-gcc

Hi,

I am trying to install my Apache server (ver. 1.3.6).  Well, I have
installed the "egcs" rpm from my RedHat 6.2 CD-ROM, but when I try to
configure my Apache 1.3.6 by typing the following:

./configure --prefix=/usr/local/apache

I get an error message saying the following:

Configuring for Apache, Version 1.3.6
 + using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
./helpers/TestCompile: make: command not found
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
 Aborting!

Isn't the "egcs" the correct package to install? 

Peter



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

end of thread, other threads:[~2009-03-10 12:26 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 17:05 installing gcc community help
  -- strict thread matches above, loose matches on Subject: below --
2009-03-08 23:05 installing GCC e-karim
2009-03-08 23:08 ` Tim Prince
2009-03-08 23:18   ` e-karim
2009-03-08 23:21   ` e-karim
2009-03-09  0:52     ` Tim Prince
2009-03-09  9:27       ` julian liu
2009-03-09 16:54     ` Atwood, Robert C
2009-03-09 17:39       ` dan hitt
2009-03-09 18:05         ` Andrew Haley
2009-03-10  7:28           ` Florent DEFAY
2009-03-10 12:26           ` Atwood, Robert C
2006-11-18 21:06 installing gcc lachlanp
2006-11-18 21:42 ` Artūras Moskvinas
2006-06-20  9:14 Installing gcc Gunnar Sjoo
2006-06-20  9:42 ` Kai Ruottu
2006-06-20  9:52 ` Brian Dessent
2006-06-21  8:25   ` Gunnar Sjoo
2005-08-12 22:50 Mario DeMiguel
2005-08-05  1:18 Nelson H. F. Beebe
2005-08-05  0:58 Dan Falabella
2005-04-13 16:12 installing gcc community help
2003-01-24 14:43 Woelfle Bernd ZFF TR-W
2001-08-21  7:44 Installing GCC Amy Roberts
2001-08-22  0:29 ` Alexandre Oliva
2000-11-29  7:18 installing gcc Yung Kwong Wing
2000-11-30  5:09 ` Alexandre Oliva
2000-12-01  7:24   ` Yung Kwong Wing
2000-12-01 14:14     ` Alexandre Oliva
2000-12-01 23:10       ` Yung Kwong Wing

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).