Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 22068  / 2 Years ago, tue, february 22, 2022, 7:43:15

I've tried the following:



sudo apt-get remove gcc
sudo apt-get install gcc-4.4


But this does not work, running gcc --version gives a 'No such file or directory' error.


More From » 11.10

 Answers
2

You can install both gcc-4.4 and gcc-4.6 if you wish. The binaries for them would be: /usr/bin/gcc-4.4 and /usr/bin/gcc-4.6.



Besides this, if you want /usr/bin/gcc to point to /usr/bin/gcc-4.4, then you have to update the link yourself or use update-alternatives as explained in this question.


[#42145] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nuehan

Total Points: 253
Total Questions: 109
Total Answers: 120

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;