![]() |
need an older gcc version
Hello,
VMware is requesting an older version of gcc: Your kernel was built with "gcc" version "4.1.3", while you are trying to use "/usr/bin/gcc" version "4.3.2". This configuration is not recommended and VMware Server may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. I've uninstalled gcc 4.3.2 but how do I locate and install gcc 4.1.3? I've gone to http://gcc.gnu.org/releases.html but don't see the version I need. Thanks, pb |
4.1 should be in your repo.
#apt-get install gcc-4.1 #export CC=/usr/bin/gcc-4.1 |
You may have the version you need already. In my case in /usr/bin I have gcc-3.3, gcc-3.4, gcc-4.1, gcc-4.2 and gcc-4.3. The trick for me is the symbolic link simply named gcc. When I get the error you mention I change the link to point to the appropriate version. You appear to have it linked to gcc-4.3 but you want it to gcc-4.2. Try the following...
ln -s -f /usr/bin/gcc-4.1 /usr/bin/gcc The -f forces the link overwriting the existing one, your directories may be different. |
I use the export command as jens suggests. it's only a temporary change of a variable in the local environment.
Code:
it-etch:~# export CC=gcc-4.1 |
I use the export command as jens suggests. it's only a temporary change of a variable in the local environment.
Code:
it-etch:~# export CC=gcc-4.1 |
| All times are GMT -5. The time now is 04:43 AM. |