public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC4.7.0 Linux installation headache
@ 2012-06-01 17:00 blessman11
  2012-06-01 17:32 ` Bob Plantz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: blessman11 @ 2012-06-01 17:00 UTC (permalink / raw)
  To: gcc-help




Summary:
Operating system: (Linux) Ubuntu 12.04
Downloaded the “gcc-4.7.0.tar.gz” and “gcc-4.6.3-4.7.0.diff.gz” files 
Unzipped the folders using the command terminal  
 
Problem 
For the past 5days I’ve been trying to install this compiler using the
terminal since the latest version of gcc isn’t available in the software
centre (4.6.3 is there instead). And I don’t want gcc 4.6.3 since it has
inferior C++ 11 support which I really need for my dissertation project the
next academic year. So far I’m stuck on stage 3 of the stages listed below
according to the documentation. 

1.	Prerequisites 
2.	Downloading the source 
3.	Configuration 
4.	Building
5.	Testing (the optional phase)
6.	Final Install 

When triying to configure the files I've tried these commands (and they
failed)

     mkdir var/gcc
     cd var/gcc
     usr@tubuntu:~/Downlaods/gcc-4.7.0$ configure
[--with-pkgversion=version] [--target=target]
//error received
“configure: command not found ”

I thought this was how configuration was done since the stallation document
index.html stated so. So afterwards I decided to try other methods like:

	sudo ./configure 
and 
	sudo make ./configure

 and I get these errors  
“./configure: command not found ”

It just feels like it doesn't want to be configured at all, all my efforts
have been in vain and its day 5 now with no progress, very irritating :((.
Plus I've rudementary commands like 

	make

	make install

	configure 

	make configure
	
	sudo apt-get install
for sudo apt-get install I get the following output and nothing else :(

“Reading package lists... Done 
Building dependency tree        
Reading state information... Done 
0 upgraded, 0 newly installed, 0 to remove and 170 not upgraded.  ”
	
What do I do were can I find a decent tutorial since even the installation
files are giving me a headache and I'm feeling quite discouraged at the
moment.



-- 
View this message in context: http://old.nabble.com/GCC4.7.0-Linux-installation-headache-tp33946047p33946047.html
Sent from the gcc - Help mailing list archive at Nabble.com.

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

* Re: GCC4.7.0 Linux installation headache
  2012-06-01 17:00 GCC4.7.0 Linux installation headache blessman11
@ 2012-06-01 17:32 ` Bob Plantz
  2012-06-01 17:37 ` Georg-Johann Lay
  2012-06-01 17:41 ` Jonathan Wakely
  2 siblings, 0 replies; 6+ messages in thread
From: Bob Plantz @ 2012-06-01 17:32 UTC (permalink / raw)
  To: blessman11; +Cc: gcc-help

On 06/01/2012 10:00 AM, blessman11 wrote:
>
>
> Summary:
> Operating system: (Linux) Ubuntu 12.04
> Downloaded the “gcc-4.7.0.tar.gz” and “gcc-4.6.3-4.7.0.diff.gz” files
> Unzipped the folders using the command terminal
>
> Problem
> For the past 5days I’ve been trying to install this compiler using the
> terminal since the latest version of gcc isn’t available in the software
> centre (4.6.3 is there instead). And I don’t want gcc 4.6.3 since it has
> inferior C++ 11 support which I really need for my dissertation project the
> next academic year. So far I’m stuck on stage 3 of the stages listed below
> according to the documentation.
>
> 1.	Prerequisites
> 2.	Downloading the source
> 3.	Configuration
> 4.	Building
> 5.	Testing (the optional phase)
> 6.	Final Install
>
> When triying to configure the files I've tried these commands (and they
> failed)
>
>       mkdir var/gcc
>       cd var/gcc
>       usr@tubuntu:~/Downlaods/gcc-4.7.0$ configure
> [--with-pkgversion=version] [--target=target]
> //error received
> “configure: command not found ”
>
> I thought this was how configuration was done since the stallation document
> index.html stated so. So afterwards I decided to try other methods like:
>
> 	sudo ./configure
> and
> 	sudo make ./configure
>
>   and I get these errors
> “./configure: command not found ”
>
> It just feels like it doesn't want to be configured at all, all my efforts
> have been in vain and its day 5 now with no progress, very irritating :((.
> Plus I've rudementary commands like
>
> 	make
>
> 	make install
>
> 	configure
>
> 	make configure
> 	
> 	sudo apt-get install
> for sudo apt-get install I get the following output and nothing else :(
>
> “Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 170 not upgraded.  ”
> 	
> What do I do were can I find a decent tutorial since even the installation
> files are giving me a headache and I'm feeling quite discouraged at the
> moment.
>
>
>

I followed the HowTo at 
http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/

I am running Ubuntu 12.04. I just did this last night, and the C code 
I'm using is very simple, so I have not "stressed" this installation. My 
primary interest is in looking at the assembly language code the 
compiler generates for my introductory textbook.

So far, so good (with a small n).

--Bob

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

* Re: GCC4.7.0 Linux installation headache
  2012-06-01 17:00 GCC4.7.0 Linux installation headache blessman11
  2012-06-01 17:32 ` Bob Plantz
@ 2012-06-01 17:37 ` Georg-Johann Lay
  2012-06-01 17:41 ` Jonathan Wakely
  2 siblings, 0 replies; 6+ messages in thread
From: Georg-Johann Lay @ 2012-06-01 17:37 UTC (permalink / raw)
  To: blessman11; +Cc: gcc-help

blessman11 schrieb:
> 
> 
> Summary:
> Operating system: (Linux) Ubuntu 12.04
> Downloaded the “gcc-4.7.0.tar.gz” and “gcc-4.6.3-4.7.0.diff.gz” files 
> Unzipped the folders using the command terminal  
>  
> So far I’m stuck on stage 3 of the stages listed below
> according to the documentation. 
> 
> 1.	Prerequisites 
> 2.	Downloading the source 
> 3.	Configuration 
> 4.	Building
> 5.	Testing (the optional phase)
> 6.	Final Install 
> 
> When triying to configure the files I've tried these commands (and they
> failed)
> 
>      mkdir var/gcc
>      cd var/gcc
>      usr@tubuntu:~/Downlaods/gcc-4.7.0$ configure
> [--with-pkgversion=version] [--target=target]
> //error received
> “configure: command not found ”

1) Don't configure in the source tree.
2) In your case 1) seems to be ok but the directory you
    try to run configure is empty. Thus: call is like
    ../../gcc-sources/configure or alike.

To get the prerequisites you can run

./contrib/download_prerequisites

from top-level source directory.

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

* Re: GCC4.7.0 Linux installation headache
  2012-06-01 17:00 GCC4.7.0 Linux installation headache blessman11
  2012-06-01 17:32 ` Bob Plantz
  2012-06-01 17:37 ` Georg-Johann Lay
@ 2012-06-01 17:41 ` Jonathan Wakely
  2012-06-07 13:33   ` blessman11
  2 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2012-06-01 17:41 UTC (permalink / raw)
  To: blessman11; +Cc: gcc-help

On 01/06/2012, blessman11 <blessingta@hotmail.co.uk> wrote:
>
>
>
> Summary:
> Operating system: (Linux) Ubuntu 12.04
> Downloaded the “gcc-4.7.0.tar.gz” and “gcc-4.6.3-4.7.0.diff.gz” files

You don't need the diffs

> Unzipped the folders using the command terminal
>
> Problem
> For the past 5days I’ve been trying to install this compiler using the
> terminal since the latest version of gcc isn’t available in the software
> centre (4.6.3 is there instead). And I don’t want gcc 4.6.3 since it has
> inferior C++ 11 support which I really need for my dissertation project the
> next academic year. So far I’m stuck on stage 3 of the stages listed below
> according to the documentation.
>
> 1.	Prerequisites
> 2.	Downloading the source
> 3.	Configuration
> 4.	Building
> 5.	Testing (the optional phase)
> 6.	Final Install
>
> When triying to configure the files I've tried these commands (and they
> failed)
>
>      mkdir var/gcc
>      cd var/gcc
>      usr@tubuntu:~/Downlaods/gcc-4.7.0$ configure
> [--with-pkgversion=version] [--target=target]
> //error received
> “configure: command not found ”
>
> I thought this was how configuration was done since the stallation document
> index.html stated so. So afterwards I decided to try other methods like:
>
> 	sudo ./configure
> and
> 	sudo make ./configure
>
>  and I get these errors
> “./configure: command not found ”
>
> It just feels like it doesn't want to be configured at all, all my efforts
> have been in vain and its day 5 now with no progress, very irritating :((.
> Plus I've rudementary commands like
>
> 	make
>
> 	make install
>
> 	configure
>
> 	make configure
> 	
> 	sudo apt-get install
> for sudo apt-get install I get the following output and nothing else :(
>
> “Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 0 to remove and 170 not upgraded.  ”
> 	
> What do I do were can I find a decent tutorial since even the installation
> files are giving me a headache and I'm feeling quite discouraged at the
> moment.
>

http://gcc.gnu.org/wiki/InstallingGCC


>
> --
> View this message in context:
> http://old.nabble.com/GCC4.7.0-Linux-installation-headache-tp33946047p33946047.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
>
>

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

* Re: GCC4.7.0 Linux installation headache
  2012-06-01 17:41 ` Jonathan Wakely
@ 2012-06-07 13:33   ` blessman11
  2012-06-07 14:49     ` Jonathan Wakely
  0 siblings, 1 reply; 6+ messages in thread
From: blessman11 @ 2012-06-07 13:33 UTC (permalink / raw)
  To: gcc-help




Jonathan Wakely-4 wrote:
> 
> On 01/06/2012, blessman11 <blessingta@hotmail.co.uk> wrote:
> http://gcc.gnu.org/wiki/InstallingGCC
> 

//THE TUTORIAL
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ar xzf gcc-4.6.2.tar.gz
cd gcc-4.6.2
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2 
make
make install
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

:(
I tried to follow the tutorial listed but I get stuck at the configuration
stage after creating my directory.


CONFIGURATION STAGE 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ubuntu:/var/gcc-4.7.0$ PWD/../../home/usr/Downloads/gcc-4.7.0/configure
--prefix=/opt/gcc-4.7.0
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ERROR MESSAGE 
bash: PWD/../../home/usr/Downloads/gcc-4.7.0/configure: No such file or
directory

I tried to follow the other recommendations but I'm still getting lost in
circles

-- 
View this message in context: http://old.nabble.com/GCC4.7.0-Linux-installation-headache-tp33946047p33975722.html
Sent from the gcc - Help mailing list archive at Nabble.com.

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

* Re: GCC4.7.0 Linux installation headache
  2012-06-07 13:33   ` blessman11
@ 2012-06-07 14:49     ` Jonathan Wakely
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Wakely @ 2012-06-07 14:49 UTC (permalink / raw)
  To: blessman11; +Cc: gcc-help

On 7 June 2012 14:33, blessman11  wrote:
>
>
>
> Jonathan Wakely-4 wrote:
>>
>> On 01/06/2012, blessman11 <blessingta@hotmail.co.uk> wrote:
>> http://gcc.gnu.org/wiki/InstallingGCC
>>
>
> //THE TUTORIAL
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> ar xzf gcc-4.6.2.tar.gz
> cd gcc-4.6.2
> ./contrib/download_prerequisites
> cd ..
> mkdir objdir
> cd objdir
> $PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
> make
> make install
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
> :(
> I tried to follow the tutorial listed but I get stuck at the configuration
> stage after creating my directory.
>
>
> CONFIGURATION STAGE
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> @ubuntu:/var/gcc-4.7.0$ PWD/../../home/usr/Downloads/gcc-4.7.0/configure
> --prefix=/opt/gcc-4.7.0
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> ERROR MESSAGE
> bash: PWD/../../home/usr/Downloads/gcc-4.7.0/configure: No such file or
> directory

Look carefully, you're missing a dollar sign on $PWD

It's $PWD not PWD

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

end of thread, other threads:[~2012-06-07 14:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-01 17:00 GCC4.7.0 Linux installation headache blessman11
2012-06-01 17:32 ` Bob Plantz
2012-06-01 17:37 ` Georg-Johann Lay
2012-06-01 17:41 ` Jonathan Wakely
2012-06-07 13:33   ` blessman11
2012-06-07 14:49     ` Jonathan Wakely

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