osx - I install gcc5.3.0 on my mac, and I broke it. What should I do to reuse apple-gcc42? -


i used rm -rf delete gcc5.3.0, mac continues use gcc5.3.0. wrong message: g++: error trying exec 'cc1plus': execvp: no such file or directory

what should reuse apple-gcc42?

editing comments , responses answer.

where gcc 5.3.0 installed? did come from? did create or apple, or 1 of auxilliary packagers? did recursive remove remove anything? running xcode-select help? (use man xcode-select see does; maybe xcode-select --install useful, i'm not sure since i've never destroyed compilation system that.) version of xcode have installed? version of mac os x running?

gcc5.3.0 installed @ /usr/local/libexec/gcc/x86_64-apple-darwin15.0.0/5.3.0. removed folder gcc. mac os x 10.11.6 , xcode 7.3.1.

removing /usr/local/lib/libexec/gcc didn't remove executables /usr/local/bin, when run g++, shell still finding executable /usr/local/bin/g++, not finding auxilliary programs because did manage remove them. haven't cleaned headers installed under /usr/local/include, etc. don't use rm -fr; crude , partially effective when have uninstall complex suites of software gcc. use /usr/bin/g++ instead of g++.

so should now?

you need finish removal job — remove gcc , g++ /usr/local/bin @ minimum. should leave /usr/bin/gcc , /usr/bin/g++ compilers. might have run hash -r or start new terminal window avoid bash's caching of location of compiler (but you'd bash: /usr/local/bin/g++ not found or similar error message).

thank you. works me!


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -