ubuntu - How can I set one command to be another command? -


i've got silly situation here. ubuntu not ship proper packages forced find external g++ package. unfortunately command invoke g++ g++-5, not g++. have existing program invokes g++ through popen , similar functionality.

how can permanently , globally set g++ alias g++-5 possible access points, not terminal?

use softlink:

sudo ln -sf g++-5 /usr/bin/g++ 

btw, ubuntu doing same. /usr/bin/g++ link g++-4.8. can check using following command:

readlink -f "$(which g++)" 

because of i've added -f flag above ln command. force ln update existing link.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -