How to change the gcc compiler's default version?
hello everyone
I have a system of FC4, I want to change the default gcc compiler to gcc3.2 not gcc4.0 for installing mplayer,how should I do? Thanks! Aldin |
./configure CC=/path/to/gcc/of/your/choice
|
can i install another version of gcc with gcc 4 installed?
I'm trying to instal mplayer and it wants gcc 2.95.x or 3.2.x Code:
rpm -q -a | grep gcc thanks for the help |
help please :)
|
sory i use slackware so i can only gues
to install other versions of gcc just do this rpm gcc-version --prefix=/opt/gcc-version then to use this gcc for compiling ./configure CC=/opt/gcc-version/bin/gcc |
Quote:
|
have you tried it with the option "rpm --root=/opt" ?
|
You can control the version of GCC that is invoked with the GCC_EXEC_PREFIX environment-variable. Refer to info gcc for more details.
It is actually quite common to have more than one version of a compiler installed on the system at the same time. People who are "cross-compiling" applications (running a compiler on machine-X that generates code for machine-Y) do this all the time. It can also be useful to read the section about specs files. The info node under "spec files" says this: Quote:
|
I have tried to install but no luck... I'm trying to install gcc-3.4 so i can compile mplayer.
rpm -ivh --prefix /opt/gcc-3.4.2-6 gcc-3.4.2-6.fc3.src.rpm the above don't work:( |
All times are GMT -5. The time now is 02:31 AM. |