Name
gcc_select
Synopsis
gcc_select [-v | --version] [-h | --help] [-l | --list] gcc_select [-v | --version] [-n] [-force] [-root] [-dstrootpathname] { 2 | 3 | 3.x}
A shell script that sets the default version of GCC (either 2.95.2
(2), 3.1 (3), or some other
version (specified as
3.x)) by creating
various symlinks for compiler tools, libraries, and headers. With no
arguments (or with just -v), the current default
version is printed to standard output.
Options
-
-dstroot Specify the root-level directory in which changes are made. The default is
/usr.-
-force Recreate symlinks for the specified version, even if it is already the current default version.
-
-h|--help Print a usage statement to standard output.
-
-l|--list List available GCC versions.
-
-n Print the list of commands that would be executed to standard output, but don’t actually execute them.
-
-root Disable the initial check for
rootaccess before executing commands.-
-v|--version Print the version of
gcc_selectto standard output.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access