I am in a computer programming class using the assembly language. I am currently running GCC 4.2 which uses the 64 bit compiler...however a 32 bit compiler is used in class...and following along with different registers/code in assembly is nearly impossible. I need to change the path that my compiler uses so that 4.0 is used instead...however I want to be able to change it back if I see the need for it in the future. I was given this command for my terminal by a friend to change the version used.
cd /usr/bin
sudo rm cc gcc c++ g++
sudo ln -s gcc-4.0 cc
sudo ln -s gcc-4.0 gcc
sudo ln -s c++-4.0 c++
sudo ln -s g++-4.0 g++
however he also gave me this warning/advice at the end of the email.
Oh, one more thing Don't forget to make a record of your links before you change them! If you don't want to change the system wide settings, add a directory into PATH before /usr/bin (say, $HOME/bin), and make the symlinks there If you want to change back, here's the code I would use: cd /usr/bin sudo rm cc gcc c++ g++ sudo ln -s gcc-4.2 cc sudo ln -s gcc-4.2 gcc sudo ln -s c++-4.2 c++ sudo ln -s g++-4.2 g++ You'll want to check your /usr/bin and look for a file that's like "gcc-4.x". If it isn't 4.0 or 4.2, substitute the version numbers above for the version number that you have. Alex Nov 3 at 16:29
This explanation of how to add a new path just does not make sense to me...if anyone could give me a more detailed explanation of how to make a record of my links...or whatever that means.
Thank you for any help
cd /usr/bin
sudo rm cc gcc c++ g++
sudo ln -s gcc-4.0 cc
sudo ln -s gcc-4.0 gcc
sudo ln -s c++-4.0 c++
sudo ln -s g++-4.0 g++
however he also gave me this warning/advice at the end of the email.
Oh, one more thing Don't forget to make a record of your links before you change them! If you don't want to change the system wide settings, add a directory into PATH before /usr/bin (say, $HOME/bin), and make the symlinks there If you want to change back, here's the code I would use: cd /usr/bin sudo rm cc gcc c++ g++ sudo ln -s gcc-4.2 cc sudo ln -s gcc-4.2 gcc sudo ln -s c++-4.2 c++ sudo ln -s g++-4.2 g++ You'll want to check your /usr/bin and look for a file that's like "gcc-4.x". If it isn't 4.0 or 4.2, substitute the version numbers above for the version number that you have. Alex Nov 3 at 16:29
This explanation of how to add a new path just does not make sense to me...if anyone could give me a more detailed explanation of how to make a record of my links...or whatever that means.
Thank you for any help