I have access to public machine which don't provide sudo access. How can I install latest g++ in a local folder in Ubuntu and use it while compiling and running C++ programs? I tried this solution (Install gcc on linux with no root privilege) but its not working.
it Produces Error bzr: ERROR: Connection error: failed to connect to bzr.savannah.gnu.org:4155: Connection refused.