Hallo!
Ich nutze SUSE 9.0 und habe GCC 3.3.1 installiert. Ich würde nun gern eine Software nutzen wollen, die aber nur mit GCC 2.9.5 kompiliert werden kann. Gibt es eine Möglichkeit, von GCC 3.3.1 auf GCC 2.9.5 downzugraden (evtl. Deinstallation und Neuinstallation)? Falls ja, welche Probleme könnten damit verbunden sein?
Danke!
Dirk
Problem mit GCC 3.3.1 Compiler
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Problem mit GCC 3.3.1 Compiler
Zieh dir die Sourcen des "alten" Compilers, und kompilier sie mit einem anderen Prefix (z.B. /usr/ local (was ohnehin standardmäßig passiert).
Um dann den "alten" Compiler zu nutzen, setzt du /usr/local dann einfach als erstes in deine PATH-Variable, so kannst du beide nutzen, und zerhasut dir nicht dein System.
Um dann den "alten" Compiler zu nutzen, setzt du /usr/local dann einfach als erstes in deine PATH-Variable, so kannst du beide nutzen, und zerhasut dir nicht dein System.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Project Manager
- Posts: 11186
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Problem mit GCC 3.3.1 Compiler
Ich würde ja eher nach /opt/gcc-2.95.3 installieren...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 54
- Joined: 2003-07-31 16:01
Re: Problem mit GCC 3.3.1 Compiler
Was muss ich beim kompilieren berücksichtigen? Kommt es nur auf die PATH-Reihenfolge an oder muss ich in irgendeiner Form explizit angeben, mit welchem Release ich gedenke zu kompilieren? :roll:
Dirk
Dirk
-
- Project Manager
- Posts: 11186
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Problem mit GCC 3.3.1 Compiler
Code: Select all
CPP="/opt/gcc-2.95.3/bin/cpp" CC="/opt/gcc-2.95.3/bin/gcc" CXX="/opt/gcc-2.95.3/bin/g++" ./configure --*
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
- Posts: 54
- Joined: 2003-07-31 16:01
Re: Problem mit GCC 3.3.1 Compiler
Ich hoffe, ich habe Deine letzte Anwort richtig verstanden. Damit habe ich nun beide GCC-Releases installiert. Wie sieht es nun mit der Software aus, die ich gern mit GCC 2.95.4 kompilieren möchte? Bislang genügte "./configure", "make" und "make install". Muss ich etwas hinzufügen, dass auf die GCC 2.95.4 zurückgegriffen wird? Oder regelt das die Reihenfolge der jeweiligen PATH-Angaben?
Dirk
Dirk
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Problem mit GCC 3.3.1 Compiler
Haargenau.Oder regelt das die Reihenfolge der jeweiligen PATH-Angaben?
Danke im übrigen für die Klarstellung, das ganze nach /opt zu schmeißen, /usr/local sollte ja auch nur als Beispiel dienen. ;)
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Project Manager
- Posts: 11186
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Problem mit GCC 3.3.1 Compiler
Auf die Anpassung der PATH-Variable kannst Du bei der Verwendung meiner obigen ./configure-Zeile verzichten, den Rest macht der GCC von selbst. Um den GCC-3.3.1 zu verwenden kannst Du zusätzlich auch auf die Anpassung der ./configure-Zeile verzichten, da der GCC-2.95.3 nicht im PATH gefunden wird.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.