Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
08-15-2012, 03:46 PM
#1
LQ Newbie
Registered: Aug 2012
Posts: 6
Rep:
[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
08-16-2012, 12:05 PM
#2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
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.
.
08-16-2012, 12:16 PM
#3
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
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
08-16-2012, 12:26 PM
#4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
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 ? )
08-16-2012, 12:31 PM
#5
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
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 .
08-16-2012, 12:41 PM
#6
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
How about gcc version 4.2.4 ?
That's a bug fix version of 4.2.0
08-16-2012, 12:42 PM
#7
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
Ok i can test it how i get this? And install
./configure
make
make install
???
08-16-2012, 01:00 PM
#8
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
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.
.
08-16-2012, 01:03 PM
#9
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
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?
08-16-2012, 01:27 PM
#10
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
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.
.
08-16-2012, 01:53 PM
#11
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
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 .
All times are GMT -5. The time now is 08:10 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News