LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-15-2012, 03:46 PM   #1
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
[Ubuntu] Older gcc Version


Hello,
i wanted the gcc 4.2.0 version so i downloaded them and extract with tar -vjxd gcc-4.2.0.tar.bz2 i get 2 folder gcc-build und gcc-4.2.0 i follow this instruction

http://claywood.lowtech.org/lifesaver.htm

and this instruction: http://www.linuxquestions.org/questi...ersion-190686/

By the second i get this error:
Code:
../.././gcc/crtstuff.c:348: error: expected â{â at end of input
make[3]: *** [crtbegin.o] Fehler 1
make[3]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0/host-i686-pc-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0'
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-4.2.0'
make: *** [all] Fehler 2
and by the first i get this error:
Code:
/bin/sh ../../gcc-4.2.0/gcc/../move-if-change tmp-macro_list macro_list
echo timestamp > s-macro_list
make[3]: *** Keine Regel vorhanden, um das Target »../../build-i686-pc-linux-gnu/fixincludes/fixincl«,
  benötigt von »stmp-fixinc«, zu erstellen.  Schluss.
make[3]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build/gcc'
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build'
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verlasse Verzeichnis '/var/www/vhosts/gcc_download/gcc-build'
make: *** [bootstrap] Fehler 2
I hope you can help me and sorry for my bad english
 
Old 08-16-2012, 12:05 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Which Ubuntu version ?
AFAIK, old gcc is more than difficult to build on the 3 latest versions.

And : The two links you show are dated year 2004 :
Not valid for gcc-4.2.0.

.
 
Old 08-16-2012, 12:16 PM   #3
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for your answer i thinked that the tutorials for every gcc version and the ubuntu version that i have is

Ubuntu 12.04 LTS
 
Old 08-16-2012, 12:26 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
A 32bits OS ?

The command : 'uname -m' will show.

( I have some .deb packages, gcc / g++ version 4.1.2, 32bits (i386)
made on Ubuntu 11.04, modified to 12.04, may be you can use those ? )
 
Old 08-16-2012, 12:31 PM   #5
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
i686 im a newbie in Linux i only want gcc version 4.2.0

EDIT: I want 4.2.0 becaue the Unity Masterserver (Unity is a game engine), and i read that i can compiled them only with 4.2.0 because of RakNet 3.0

Last edited by Siebenkeim; 08-16-2012 at 12:41 PM.
 
Old 08-16-2012, 12:41 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
How about gcc version 4.2.4 ?

That's a bug fix version of 4.2.0
 
Old 08-16-2012, 12:42 PM   #7
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok i can test it how i get this? And install

./configure
make
make install

???
 
Old 08-16-2012, 01:00 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please provide a direct download link to "Unity Masterserver".
And the name of the file you have downloaded.


There can be used no ./configure in gcc.
GCC requires a build folder outside the source folder gcc-4.2.x/.
Code:
../gcc-4.2.4/configure --prefix=/usr --program-suffix=-4.2 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
But it won't work on Ubuntu 12.04, AFAIK.

.
 
Old 08-16-2012, 01:03 PM   #9
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Here you can download the Masterserver: http://www.unity3d.com/master-server/index.html

Quote:
But it won't work on Ubuntu 12.04, AFAIK.
What would be work?
 
Old 08-16-2012, 01:27 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
OK, MasterServer-2.0.1f1 :

sudo apt-get install g++-4.4

Please edit the MasterServer-2.0.1f1/Makefile, line 4 to :
CC=g++-4.4

... and run 'make' :
The executable file 'MasterServer' gets created within a few seconds.

.
 
Old 08-16-2012, 01:53 PM   #11
Siebenkeim
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok Thank you i get a Masterserver file Yet i have one question, i think this question is stupid but iam a newbie, how i can start/open the file?

Ok i open this with ./MasterServer

Thank you for your time

Last edited by Siebenkeim; 08-16-2012 at 02:09 PM.
 
  


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
installing a second (older) gcc/g++ version (how to configure) r.stiltskin Linux - Software 1 02-07-2011 12:02 AM
How to install an older version of gcc compiler teki Linux - Newbie 7 07-10-2010 09:50 AM
need an older gcc version parent's_basement Debian 4 12-18-2008 07:04 AM
using an older version of gcc win32sux Slackware 1 05-12-2004 01:53 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 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