Hi All,
I am trying to install a driver for a CAN card of a machine running Ubuntu 8.04. It cames with three .tgz files for gcc2, gcc3, and k26. The current version of gcc is 4.2.1, which is causing me problems. I installed gcc-3.3 using
sudo apt-get install gcc-3.3
But when I run the make command for the driver, it still is using gcc 4.2.1, and as a result is not compiling.
How do I switch the PATH so that I am using gcc-3.3 to install the driver. I am very new to Linux, please help.
Thanks,
Brian
export PATH=/some/path:/some/other/path:/and/another/path:.....
The PATH variable is a list of directory names separated by colons. The list of directories is searched in the order in which they appear in this list. Find out where gcc 3.3 is and add this directory to the beginning of the current value of $PATH:
PATH=/some/new/directory:$PATH
Display the $PATH variable to make sure everything was done correctly:
echo $PATH
You might get a list which reads like:
/some/new/directory:/bin:/etc:/usr/bin:/usr/bin/X11:/usr/ucb:....
or something such. This should do it. Probably you have to change the library paths and other parts of the environment too when you change the compiler version.
I hope this helps.
bakunin