How to change the default version of gcc man page?
I have found the solution:
Find the location of
gcc-6
man page:$ locate gcc-6 | grep 'man'
/usr/share/man/man1/gcc-6.1.gz
/usr/share/man/man1/x86_64-linux-gnu-gcc-6.1.gzso the location of
gcc-6
man page is/usr/share/man/man1/gcc-6.1.gz
Remove the file
/usr/share/man/man1/gcc.1.gz
if it exist:$ sudo rm /usr/share/man/man1/gcc.1.gz
Create a symbolic link to
/usr/share/man/man1/gcc-6.1.gz
:$ sudo ln -s /usr/share/man/man1/gcc-6.1.gz /usr/share/man/man1/gcc.1.gz
Then run comman:
$ man gcc
You will see the man page version of gcc has changed to gcc-6
.
Sorry for my English.
I installed GCC 5.2 from source and I don't know how to uninstall it on Ubuntu 15.04
I believe you don't need to revert to the system compiler; it is a matter of path. Or set up your $PATH appropriately. Use /usr/bin/g++
for the system compiler, and probably /usr/local/bin/g++
for the compiler you have built from source code from GCC
BTW, you probably could use your GCC 5.2 for almost all your future builds
It depends how you have configured it.
You should have configured it with ../gcc-5.2/configure --program-suffix=-my-5.2
then you would use g++-my-5.2
instead of g++
Try to type g++ -v
(i.e. probably /usr/local/bin/g++ -v
) to understand how it was configured.
You probably could remove the gcc
and g++
binaries under /usr/local/bin/
and several other files and directories under /usr/local/
(but be careful).
Indeed, GCC does not support make uninstall
Can I remove gcc compiler after tensorflow installation?
Provided that tesnorflow itself does not invoke gcc during operation, it should be safe. Unless shared libraries tensorflow depends on are removed with it (can happen if you system packages them as part of the gcc package -- e.g. libstdc++
, libgomp
, etc).
I'd recommend checking tensorflow executables with ldd -r
to find out (after removing gcc -- or query the package manager whether any of the output libraries is owned by the gcc package).
Related Topics
Why Does The Stack Have to Be Page Aligned
Converting Date with Timezone in Unix Timestamp Shell/Bash
Shell Programming: Executing Two Applications at The Same Time
Iptables Remove Specific Rules by Comment
Version Control for My Web Server
PHPmyadmin Mcrypt Extension Is Missing
Getting Kernel Version from The Compressed Kernel Image
Calling Windows Subsystem for Linux Apps Through Powershell/Cmd
Difference Between ./Executable and . Executable
Moving a Git Repo to Another Server
Open Website from Within Eclipse's Internal Browser
Use Stdin from Within R Studio
Configuring Tomat's Server.Xml File with Auto Generating Mod_Jk.Conf